stephen.hindmarch at bt.com
2007-Oct-02 17:10 UTC
[asterisk-users] Segmentation fault in app_voicemail (ODBC/PSQL problem)
I have been testing with asterisk 1.4.11 and have found a segmentation fault while using voicemail. It happens when I try to forward a voicemail. As soon as I press the option the server crashes. I ran asterisk up inside gdb and got the following stack trace ===================================================================Program received signal SIGSEGV, Segmentation fault. 0x00140adf in CI_read_fields () from /usr/lib/libodbcpsql.so (gdb) bt #0 0x00140adf in CI_read_fields () from /usr/lib/libodbcpsql.so #1 0x001594dc in QR_fetch_tuples () from /usr/lib/libodbcpsql.so #2 0x0014255e in CC_send_query () from /usr/lib/libodbcpsql.so #3 0x0015c87c in SC_execute () from /usr/lib/libodbcpsql.so #4 0x0014bd60 in PG_SQLExecute () from /usr/lib/libodbcpsql.so #5 0x0014bf4d in SQLExecute () from /usr/lib/libodbcpsql.so #6 0x00356cf7 in SQLExecute () from /usr/lib/libodbc.so.1 #7 0x00128e76 in ast_odbc_prepare_and_execute (obj=0x86e76e0, prepare_cb=0x113120 <custom_prepare>, data=0xb7d83794) at res_odbc.c:96 #8 0x00113511 in realtime_odbc (database=0xb7d838ec "asterisk", table=0xb7d837ec "miniminder.voicemail_users", ap=0xb7d83a04 "C???B") at res_config_odbc.c:148 #9 0x0808c4c7 in ast_load_realtime (family=0x42b12d "voicemail") at config.c:1327 #10 0x0041de88 in find_user (ivm=0xb7d8df60, context=0xb7d8e3cb "miniminder", mailbox=0xb7d8e3c4 "123456") at app_voicemail.c:717 #11 0x0041e5b3 in leave_voicemail (chan=0x878be98, ext=0xb7d9005a "123456 at miniminder", options=0xb7d900fc) at app_voicemail.c:2804 #12 0x00425b13 in advanced_options (chan=0x878be98, vmu=0xb7d972c8, vms=0xb7d90208, msg=0, option=1, record_gain=0 '\0') at app_voicemail.c:8111 #13 0x00429ab4 in vm_execmain (chan=0x878be98, data=0xb7d9bf28) at app_voicemail.c:6630 #14 0x080c587e in pbx_extension_helper (c=0x878be98, con=0x0, context=0x878c018 "miniminder", exten=0x878c068 "2000", priority=1, label=0x0, callerid=0x878c358 "123456", action=E_SPAWN) at pbx.c:532 #15 0x080c7566 in __ast_pbx_run (c=0x878be98) at pbx.c:2288 #16 0x080c850e in pbx_thread (data=0x878be98) at pbx.c:2603 #17 0x080f3dbb in dummy_start (data=0x878c8b0) at utils.c:775 #18 0x007d945b in start_thread () from /lib/libpthread.so.0 #19 0x0067c23e in clone () from /lib/libc.so.6 (gdb) step Single stepping until exit from function CI_read_fields, which has no line number information. [Stepped over thread exit] Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. =================================================================== Which suggests to me that the problem is in libodbcpgsql, although it might be that asterisk is passing it a bad request. I am using version 2.2.11 of unixODBC and version 8.01.0200 of postgresql-odbc. Can anybody suggest how to take this further? Steve Hindmarch -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071002/a0906d05/attachment.htm
Maybe Matching Threads
- [asterisk users] asterisk realtime - database driven dialplan
- asterisk realtime SIP configuration
- shake rattle() and roll
- shared libraries on FreeBSD 4.*
- *** buffer overflow detected ***: /usr/lib64/R/bin/exec/R terminated on R 2.6.2 to 2.8.0: logging a bug?