Using host libthread_db library "/lib/tls/libthread_db.so.1". Core was generated by `/usr/sbin/asterisk -g -U asterisk -vvv'. Program terminated with signal 11, Segmentation fault. #0 0x00b07a72 in SQLTablesW () from /usr/lib/libodbc.so.1 Thread 22 (process 15358): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x009841d4 in poll () from /lib/tls/libc.so.6 #2 0x08070d59 in monitor_sig_flags (unused=0x0) at asterisk.c:2707 #3 0x08072c65 in main (argc=5, argv=0xbfec9624) at asterisk.c:3291 Thread 21 (process 15379): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x009841d4 in poll () from /lib/tls/libc.so.6 #2 0x0806bed0 in listener (unused=0x0) at asterisk.c:1017 #3 0x0812223b in dummy_start (data=0x9412aa0) at utils.c:856 #4 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #5 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 20 (process 15391): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x009841d4 in poll () from /lib/tls/libc.so.6 #2 0x080d24ba in accept_thread (ignore=0x0) at manager.c:2516 #3 0x0812223b in dummy_start (data=0x9419778) at utils.c:856 #4 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #5 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 19 (process 15392): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00c4ab26 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0 #2 0x080a5c0e in __ast_cond_wait (filename=0x8156b74 "devicestate.c", lineno=352, func=0x815702c "do_devstate_changes", cond_name=0x815701c "&change_pending", mutex_name=0x8157040 "&state_changes.lock", cond=0x81874a0, t=0x817dbe8) at /usr/src/SMR-core/applications/asterisk-1.4.36-patched/include/asterisk/lock.h:616 #3 0x080a584b in do_devstate_changes (data=0x0) at devicestate.c:352 #4 0x0812223b in dummy_start (data=0x9419c98) at utils.c:856 #5 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #6 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 18 (process 15400): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x009841d4 in poll () from /lib/tls/libc.so.6 #2 0x004096a6 in shaun_of_the_dead (data=0x0) at res_agi.c:2281 #3 0x0812223b in dummy_start (data=0x94242c8) at utils.c:856 #4 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #5 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 17 (process 15425): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00986a41 in ___newselect_nocancel () from /lib/tls/libc.so.6 #2 0x0035c9c6 in ast_select (nfds=0, rfds=0xb7e88350, wfds=0x0, efds=0xb7e882d0, tvp=0x0) at /usr/src/SMR-core/applications/asterisk-1.4.36-patched/include/asterisk/channel.h:1410 #3 0x0035c983 in do_parking_thread (ignore=0x0) at res_features.c:2489 #4 0x0812223b in dummy_start (data=0x948d240) at utils.c:856 #5 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #6 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 16 (process 15429): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00c4d1de in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0 #2 0x00c49e47 in _L_mutex_lock_179 () from /lib/tls/libpthread.so.0 #3 0x0814e3c4 in __PRETTY_FUNCTION__.1 () #4 0x004a4564 in ?? () from /usr/lib/asterisk/modules/chan_sip.so #5 0x09646810 in ?? () #6 0xb7e0dfc0 in ?? () #7 0xb7e0d998 in ?? () #8 0x080a4dab in __ast_pthread_mutex_lock (filename=0x817dbe8 "\002", lineno=135621492, func=0x137 "", mutex_name=0x8156fa0 "ast_device_state_changed_literal", t=0x8157004) at /usr/src/SMR-core/applications/asterisk-1.4.36-patched/include/asterisk/lock.h:415 #9 0x080a4dab in __ast_pthread_mutex_lock ( filename=0x8156b74 "devicestate.c", lineno=311, func=0x8156fa0 "ast_device_state_changed_literal", mutex_name=0x8157004 "&(&state_changes)->lock", t=0x817dbe8) at /usr/src/SMR-core/applications/asterisk-1.4.36-patched/include/asterisk/lock.h:415 #10 0x080a5627 in ast_device_state_changed_literal ( device=0xb7e0d9f0 "SIP/467") at devicestate.c:311 #11 0x080a5708 in ast_device_state_changed (fmt=0x49643b "SIP/%s") at devicestate.c:331 #12 0x00441dc0 in update_call_counter (fup=0x99ed540, event=0) at chan_sip.c:3626 #13 0x00474182 in handle_response_invite (p=0x99ed540, resp=487, rest=0xb7e0e1e8 "Request Terminated", req=0xb7e0dfc0, seqno=102) at chan_sip.c:13455 #14 0x0047732e in handle_response (p=0x99ed540, resp=487, rest=0xb7e0e1e8 "Request Terminated", req=0xb7e0dfc0, seqno=102) at chan_sip.c:14014 #15 0x00482fd5 in handle_request (p=0x99ed540, req=0xb7e0dfc0, sin=0xb7e0dfb0, recount=0xb7e0df9c, nounlock=0xb7e0dfa0) at chan_sip.c:16859 #16 0x004847b6 in sipsock_read (id=0x9425cb0, fd=18, events=1, ignore=0x0) at chan_sip.c:17200 #17 0x080c1019 in ast_io_wait (ioc=0x9645f18, howlong=86) at io.c:279 #18 0x0048558f in do_monitor (data=0x0) at chan_sip.c:17438 #19 0x0812223b in dummy_start (data=0x965ad60) at utils.c:856 #20 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #21 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 15 (process 15430): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x009841d4 in poll () from /lib/tls/libc.so.6 #2 0x00d7155a in do_monitor (data=0x0) at chan_dahdi.c:7470 #3 0x0812223b in dummy_start (data=0x9655ee0) at utils.c:856 #4 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #5 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 14 (process 15431): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00c4dc86 in __nanosleep_nocancel () from /lib/tls/libpthread.so.0 #2 0x00fcedd2 in scan_thread (unused=0x0) at pbx_spool.c:462 #3 0x0812223b in dummy_start (data=0x964aaf0) at utils.c:856 #4 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #5 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 13 (process 15432): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00c4ab26 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0 #2 0x0050d7f6 in __ast_cond_wait (filename=0x51ef74 "app_queue.c", lineno=754, func=0x520d6b "device_state_thread", cond_name=0x520d92 "&device_state.cond", mutex_name=0x520d7f "&device_state.lock", cond=0x525860, t=0x525788) at /usr/src/SMR-core/applications/asterisk-1.4.36-patched/include/asterisk/lock.h:616 #3 0x0050d29b in device_state_thread (data=0x0) at app_queue.c:754 #4 0x0812223b in dummy_start (data=0x9425ab8) at utils.c:856 #5 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #6 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 12 (process 15536): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x009841d4 in poll () from /lib/tls/libc.so.6 #2 0x080d1c87 in get_input (s=0x951e020, output=0xb7d1dd60 "") at manager.c:2371 #3 0x080d1ee2 in do_message (s=0xb7d1e3b0) at manager.c:2408 #4 0x080d20c8 in session_do (data=0x951e020) at manager.c:2434 #5 0x0812223b in dummy_start (data=0x9648338) at utils.c:856 #6 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #7 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 11 (process 15545): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x009841d4 in poll () from /lib/tls/libc.so.6 #2 0x080d1c87 in get_input (s=0x951ff28, output=0xb7ce1d60 "") at manager.c:2371 #3 0x080d1ee2 in do_message (s=0xb7ce23b0) at manager.c:2408 #4 0x080d20c8 in session_do (data=0x951ff28) at manager.c:2434 #5 0x0812223b in dummy_start (data=0x951efb8) at utils.c:856 #6 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #7 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 10 (process 4657): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x009841d4 in poll () from /lib/tls/libc.so.6 #2 0x0808bfad in ast_waitfor_nandfds (c=0xb7ca0e30, n=9, fds=0x0, nfds=0, exception=0x0, outfd=0x0, ms=0xb7ca1e34) at channel.c:1892 #3 0x0808c309 in ast_waitfor_n (c=0xb7ca0e30, n=9, ms=0xb7ca1e34) at channel.c:1954 #4 0x00388ab1 in wait_for_answer (in=0x99b5c88, outgoing=0x99bd198, to=0xb7ca1e34, peerflags=0xb7ca1e70, sentringing=0xb7ca1b94, status=0xb7ca1ba0 "NOANSWER", statussize=256, busystart=0, nochanstart=0, congestionstart=0, priority_jump=0, result=0xb7ca1b88) at app_dial.c:476 #5 0x0038e538 in dial_exec_full (chan=0x99b5c88, data=0xb7ca3fe0, peerflags=0xb7ca1e70, continue_exec=0x0) at app_dial.c:1473 #6 0x003904ba in dial_exec (chan=0x99b5c88, data=0xb7ca3fe0) at app_dial.c:1958 #7 0x080d7c5c in pbx_exec (c=0x99b5c88, app=0x94a9e90, data=0xb7ca3fe0) at /usr/src/SMR-core/applications/asterisk-1.4.36-patched/include/asterisk/strings.h:36 #8 0x080db94a in pbx_extension_helper (c=0x99b5c88, con=0x0, context=0x99b5ec8 "user-01", exten=0x99b5f18 "800", priority=1, label=0x0, callerid=0x955b330 "401", action=E_SPAWN) at pbx.c:1887 #9 0x080dcd45 in ast_spawn_extension (c=0x99b5c88, context=0x99b5ec8 "user-01", exten=0x99b5f18 "800", priority=1, callerid=0x955b330 "401") at pbx.c:2309 #10 0x080dd1e2 in __ast_pbx_run (c=0x99b5c88) at pbx.c:2403 #11 0x080de176 in pbx_thread (data=0x99b5c88) at pbx.c:2631 #12 0x0812223b in dummy_start (data=0x99b6918) at utils.c:856 #13 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #14 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 9 (process 4658): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00950b86 in __nanosleep_nocancel () from /lib/tls/libc.so.6 #2 0x0098730a in usleep () from /lib/tls/libc.so.6 #3 0x0807a191 in autoservice_run (ign=0x0) at autoservice.c:123 #4 0x0812223b in dummy_start (data=0x9973c58) at utils.c:856 #5 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #6 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 8 (process 4659): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00c4d1de in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0 #2 0x00c49e3b in _L_mutex_lock_35 () from /lib/tls/libpthread.so.0 #3 0xb7bfdf68 in ?? () #4 0x00b1e12c in ?? () from /usr/lib/libodbc.so.1 #5 0xb7bfe088 in ?? () #6 0x0945ea70 in ?? () #7 0xb7bfdf68 in ?? () #8 0x00aff80a in SQLTablesW () from /usr/lib/libodbc.so.1 #9 0x00aff80a in SQLTablesW () from /usr/lib/libodbc.so.1 #10 0x00ac67ed in SQLAllocEnv () from /usr/lib/libodbc.so.1 #11 0x00ac74d3 in SQLAllocHandle () from /usr/lib/libodbc.so.1 #12 0x005c12b3 in generic_prepare (obj=0x9444e38, data=0xb7bfe550) at func_odbc.c:78 #13 0x0012d396 in ast_odbc_prepare_and_execute (obj=0x9444e38, prepare_cb=0x5c127b , data=0xb7bfe550) at res_odbc.c:96 #14 0x005c269f in acf_odbc_read (chan=0x99b87b0, cmd=0xb7bffde0 "ODBC_CST", s=0xb7bffde9 "SELECT * FROM bla", buf=0xb7bfedd0 "", len=4096) at func_odbc.c:278 #15 0x080dac41 in ast_func_read (chan=0x99b87b0, function=0xb7bffde0 "ODBC_CST", workspace=0xb7bfedd0 "", len=4096) at pbx.c:1578 #16 0x080db02c in pbx_substitute_variables_helper_full (c=0x99b87b0, headp=0x99b8bb4, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7c02fe9 "", count=8182) at pbx.c:1699 #17 0x080db4b4 in pbx_substitute_variables_helper (c=0x99b87b0, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7c02fe0 "VARIABLE=", count=8191) at pbx.c:1794 #18 0x080db5bd in pbx_substitute_variables (passdata=0xb7c02fe0 "VARIABLE=", datalen=8192, c=0x99b87b0, e=0x99341e0) at pbx.c:1812 #19 0x080db7b0 in pbx_extension_helper (c=0x99b87b0, con=0x0, context=0x99b89f0 "local", exten=0x99b8a40 "h", priority=1, label=0x0, callerid=0x99b9400 "401", action=E_SPAWN) at pbx.c:1865 #20 0x080dcd45 in ast_spawn_extension (c=0x99b87b0, context=0x99b89f0 "local", exten=0x99b8a40 "h", priority=1, callerid=0x99b9400 "401") at pbx.c:2309 #21 0x080dddb3 in __ast_pbx_run (c=0x99b87b0) at pbx.c:2555 #22 0x080de176 in pbx_thread (data=0x99b87b0) at pbx.c:2631 #23 0x0812223b in dummy_start (data=0x99b7c00) at utils.c:856 #24 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #25 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 7 (process 4660): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00c4d1de in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0 #2 0x00c49e3b in _L_mutex_lock_35 () from /lib/tls/libpthread.so.0 #3 0xb7bc1f68 in ?? () #4 0x00b1e12c in ?? () from /usr/lib/libodbc.so.1 #5 0xb7bc2088 in ?? () #6 0x0945ea70 in ?? () #7 0xb7bc1f68 in ?? () #8 0x00aff80a in SQLTablesW () from /usr/lib/libodbc.so.1 #9 0x00aff80a in SQLTablesW () from /usr/lib/libodbc.so.1 #10 0x00ac67ed in SQLAllocEnv () from /usr/lib/libodbc.so.1 #11 0x00ac74d3 in SQLAllocHandle () from /usr/lib/libodbc.so.1 #12 0x005c12b3 in generic_prepare (obj=0x9444e38, data=0xb7bc2550) at func_odbc.c:78 #13 0x0012d396 in ast_odbc_prepare_and_execute (obj=0x9444e38, prepare_cb=0x5c127b , data=0xb7bc2550) at res_odbc.c:96 #14 0x005c269f in acf_odbc_read (chan=0x99baac0, cmd=0xb7bc3de0 "ODBC_CST", s=0xb7bc3de9 "SELECT * FROM bla", buf=0xb7bc2dd0 "", len=4096) at func_odbc.c:278 #15 0x080dac41 in ast_func_read (chan=0x99baac0, function=0xb7bc3de0 "ODBC_CST", workspace=0xb7bc2dd0 "", len=4096) at pbx.c:1578 #16 0x080db02c in pbx_substitute_variables_helper_full (c=0x99baac0, headp=0x99baec4, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7bc6fe9 "", count=8182) at pbx.c:1699 #17 0x080db4b4 in pbx_substitute_variables_helper (c=0x99baac0, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7bc6fe0 "VARIABLE=", count=8191) at pbx.c:1794 #18 0x080db5bd in pbx_substitute_variables (passdata=0xb7bc6fe0 "VARIABLE=", datalen=8192, c=0x99baac0, e=0x99341e0) at pbx.c:1812 #19 0x080db7b0 in pbx_extension_helper (c=0x99baac0, con=0x0, context=0x99bad00 "local", exten=0x99bad50 "h", priority=1, label=0x0, callerid=0x96140a8 "401", action=E_SPAWN) at pbx.c:1865 #20 0x080dcd45 in ast_spawn_extension (c=0x99baac0, context=0x99bad00 "local", exten=0x99bad50 "h", priority=1, callerid=0x96140a8 "401") at pbx.c:2309 #21 0x080dddb3 in __ast_pbx_run (c=0x99baac0) at pbx.c:2555 #22 0x080de176 in pbx_thread (data=0x99baac0) at pbx.c:2631 #23 0x0812223b in dummy_start (data=0x9614630) at utils.c:856 #24 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #25 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 6 (process 4661): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00c4d1de in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0 #2 0x00c49e3b in _L_mutex_lock_35 () from /lib/tls/libpthread.so.0 #3 0xb7b85f68 in ?? () #4 0x00b1e12c in ?? () from /usr/lib/libodbc.so.1 #5 0xb7b86088 in ?? () #6 0x0945ea70 in ?? () #7 0xb7b85f68 in ?? () #8 0x00aff80a in SQLTablesW () from /usr/lib/libodbc.so.1 #9 0x00aff80a in SQLTablesW () from /usr/lib/libodbc.so.1 #10 0x00ac67ed in SQLAllocEnv () from /usr/lib/libodbc.so.1 #11 0x00ac74d3 in SQLAllocHandle () from /usr/lib/libodbc.so.1 #12 0x005c12b3 in generic_prepare (obj=0x9444e38, data=0xb7b86550) at func_odbc.c:78 #13 0x0012d396 in ast_odbc_prepare_and_execute (obj=0x9444e38, prepare_cb=0x5c127b , data=0xb7b86550) at res_odbc.c:96 #14 0x005c269f in acf_odbc_read (chan=0x9615880, cmd=0xb7b87de0 "ODBC_CST", s=0xb7b87de9 "SELECT * FROM bla", buf=0xb7b86dd0 "", len=4096) at func_odbc.c:278 #15 0x080dac41 in ast_func_read (chan=0x9615880, function=0xb7b87de0 "ODBC_CST", workspace=0xb7b86dd0 "", len=4096) at pbx.c:1578 #16 0x080db02c in pbx_substitute_variables_helper_full (c=0x9615880, headp=0x9615c84, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7b8afe9 "", count=8182) at pbx.c:1699 #17 0x080db4b4 in pbx_substitute_variables_helper (c=0x9615880, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7b8afe0 "VARIABLE=", count=8191) at pbx.c:1794 #18 0x080db5bd in pbx_substitute_variables (passdata=0xb7b8afe0 "VARIABLE=", datalen=8192, c=0x9615880, e=0x99341e0) at pbx.c:1812 #19 0x080db7b0 in pbx_extension_helper (c=0x9615880, con=0x0, context=0x9615ac0 "local", exten=0x9615b10 "h", priority=1, label=0x0, callerid=0x9616a40 "401", action=E_SPAWN) at pbx.c:1865 #20 0x080dcd45 in ast_spawn_extension (c=0x9615880, context=0x9615ac0 "local", exten=0x9615b10 "h", priority=1, callerid=0x9616a40 "401") at pbx.c:2309 #21 0x080dddb3 in __ast_pbx_run (c=0x9615880) at pbx.c:2555 #22 0x080de176 in pbx_thread (data=0x9615880) at pbx.c:2631 #23 0x0812223b in dummy_start (data=0x9616fc8) at utils.c:856 #24 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #25 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 5 (process 4663): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00c4d1de in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0 #2 0x00c49e3b in _L_mutex_lock_35 () from /lib/tls/libpthread.so.0 #3 0xb7b0df68 in ?? () #4 0x00b1e12c in ?? () from /usr/lib/libodbc.so.1 #5 0xb7b0e088 in ?? () #6 0x0945ea70 in ?? () #7 0xb7b0df68 in ?? () #8 0x00aff80a in SQLTablesW () from /usr/lib/libodbc.so.1 #9 0x00aff80a in SQLTablesW () from /usr/lib/libodbc.so.1 #10 0x00ac67ed in SQLAllocEnv () from /usr/lib/libodbc.so.1 #11 0x00ac74d3 in SQLAllocHandle () from /usr/lib/libodbc.so.1 #12 0x005c12b3 in generic_prepare (obj=0x9444e38, data=0xb7b0e550) at func_odbc.c:78 #13 0x0012d396 in ast_odbc_prepare_and_execute (obj=0x9444e38, prepare_cb=0x5c127b , data=0xb7b0e550) at res_odbc.c:96 #14 0x005c269f in acf_odbc_read (chan=0x99a1288, cmd=0xb7b0fde0 "ODBC_CST", s=0xb7b0fde9 "SELECT * FROM bla", buf=0xb7b0edd0 "", len=4096) at func_odbc.c:278 #15 0x080dac41 in ast_func_read (chan=0x99a1288, function=0xb7b0fde0 "ODBC_CST", workspace=0xb7b0edd0 "", len=4096) at pbx.c:1578 #16 0x080db02c in pbx_substitute_variables_helper_full (c=0x99a1288, headp=0x99a168c, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7b12fe9 "", count=8182) at pbx.c:1699 #17 0x080db4b4 in pbx_substitute_variables_helper (c=0x99a1288, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7b12fe0 "VARIABLE=", count=8191) at pbx.c:1794 #18 0x080db5bd in pbx_substitute_variables (passdata=0xb7b12fe0 "VARIABLE=", datalen=8192, c=0x99a1288, e=0x99341e0) at pbx.c:1812 #19 0x080db7b0 in pbx_extension_helper (c=0x99a1288, con=0x0, context=0x99a14c8 "local", exten=0x99a1518 "h", priority=1, label=0x0, callerid=0x99a2448 "401", action=E_SPAWN) at pbx.c:1865 #20 0x080dcd45 in ast_spawn_extension (c=0x99a1288, context=0x99a14c8 "local", exten=0x99a1518 "h", priority=1, callerid=0x99a2448 "401") at pbx.c:2309 #21 0x080dddb3 in __ast_pbx_run (c=0x99a1288) at pbx.c:2555 #22 0x080de176 in pbx_thread (data=0x99a1288) at pbx.c:2631 #23 0x0812223b in dummy_start (data=0x99a29d0) at utils.c:856 #24 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #25 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 4 (process 4664): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00c4afd9 in pthread_cond_signal@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0 #2 0x080a56ce in __ast_cond_signal (filename=0x8156b74 "devicestate.c", lineno=315, func=0x8156fa0 "ast_device_state_changed_literal", cond_name=0x815701c "&change_pending", cond=0x81874a0) at /usr/src/SMR-core/applications/asterisk-1.4.36-patched/include/asterisk/lock.h:555 #3 0x080a568a in ast_device_state_changed_literal ( device=0xb7ad4150 "SIP/466") at devicestate.c:315 #4 0x080a5708 in ast_device_state_changed (fmt=0x49643b "SIP/%s") at devicestate.c:331 #5 0x00441dc0 in update_call_counter (fup=0x99c9748, event=0) at chan_sip.c:3626 #6 0x00442904 in sip_hangup (ast=0x977c838) at chan_sip.c:3857 #7 0x0808b253 in ast_hangup (chan=0x977c838) at channel.c:1654 #8 0x0038848a in hanguptree (outgoing=0x99c9648, exception=0x0) at app_dial.c:339 #9 0x0039026c in dial_exec_full (chan=0x99a3c20, data=0xb7ad6fe0, peerflags=0xb7ad4e70, continue_exec=0x0) at app_dial.c:1937 #10 0x003904ba in dial_exec (chan=0x99a3c20, data=0xb7ad6fe0) at app_dial.c:1958 #11 0x080d7c5c in pbx_exec (c=0x99a3c20, app=0x94a9e90, data=0xb7ad6fe0) at /usr/src/SMR-core/applications/asterisk-1.4.36-patched/include/asterisk/strings.h:36 #12 0x080db94a in pbx_extension_helper (c=0x99a3c20, con=0x0, context=0x99a3e60 "local", exten=0x99a3eb0 "466", priority=1, label=0x0, callerid=0x99a4de0 "401", action=E_SPAWN) at pbx.c:1887 #13 0x080dcd45 in ast_spawn_extension (c=0x99a3c20, context=0x99a3e60 "local", exten=0x99a3eb0 "466", priority=1, callerid=0x99a4de0 "401") at pbx.c:2309 #14 0x080dd1e2 in __ast_pbx_run (c=0x99a3c20) at pbx.c:2403 #15 0x080de176 in pbx_thread (data=0x99a3c20) at pbx.c:2631 #16 0x0812223b in dummy_start (data=0x99a5368) at utils.c:856 #17 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #18 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 3 (process 4665): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00c4d1de in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0 #2 0x00c49e3b in _L_mutex_lock_35 () from /lib/tls/libpthread.so.0 #3 0xb7a95f68 in ?? () #4 0x00b1e12c in ?? () from /usr/lib/libodbc.so.1 #5 0xb7a96088 in ?? () #6 0x099dcd50 in ?? () #7 0xb7a95f68 in ?? () #8 0x00aff80a in SQLTablesW () from /usr/lib/libodbc.so.1 #9 0x00aff80a in SQLTablesW () from /usr/lib/libodbc.so.1 #10 0x00ac67ed in SQLAllocEnv () from /usr/lib/libodbc.so.1 #11 0x00ac74d3 in SQLAllocHandle () from /usr/lib/libodbc.so.1 #12 0x005c12b3 in generic_prepare (obj=0x9444e38, data=0xb7a96550) at func_odbc.c:78 #13 0x0012d396 in ast_odbc_prepare_and_execute (obj=0x9444e38, prepare_cb=0x5c127b , data=0xb7a96550) at res_odbc.c:96 #14 0x005c269f in acf_odbc_read (chan=0x99bbb48, cmd=0xb7a97de0 "ODBC_CST", s=0xb7a97de9 "SELECT * FROM bla", buf=0xb7a96dd0 "", len=4096) at func_odbc.c:278 #15 0x080dac41 in ast_func_read (chan=0x99bbb48, function=0xb7a97de0 "ODBC_CST", workspace=0xb7a96dd0 "", len=4096) at pbx.c:1578 #16 0x080db02c in pbx_substitute_variables_helper_full (c=0x99bbb48, headp=0x99bbf4c, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7a9afe9 "", count=8182) at pbx.c:1699 #17 0x080db4b4 in pbx_substitute_variables_helper (c=0x99bbb48, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7a9afe0 "VARIABLE=", count=8191) at pbx.c:1794 #18 0x080db5bd in pbx_substitute_variables (passdata=0xb7a9afe0 "VARIABLE=", datalen=8192, c=0x99bbb48, e=0x99341e0) at pbx.c:1812 #19 0x080db7b0 in pbx_extension_helper (c=0x99bbb48, con=0x0, context=0x99bbd88 "local", exten=0x99bbdd8 "h", priority=1, label=0x0, callerid=0x99bca50 "401", action=E_SPAWN) at pbx.c:1865 #20 0x080dcd45 in ast_spawn_extension (c=0x99bbb48, context=0x99bbd88 "local", exten=0x99bbdd8 "h", priority=1, callerid=0x99bca50 "401") at pbx.c:2309 #21 0x080dddb3 in __ast_pbx_run (c=0x99bbb48) at pbx.c:2555 #22 0x080de176 in pbx_thread (data=0x99bbb48) at pbx.c:2631 #23 0x0812223b in dummy_start (data=0x99bcfd8) at utils.c:856 #24 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #25 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 2 (process 4666): #0 0x008ad7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00c4d1de in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0 #2 0x00c49e3b in _L_mutex_lock_35 () from /lib/tls/libpthread.so.0 #3 0xb7a59f68 in ?? () #4 0x00b1e12c in ?? () from /usr/lib/libodbc.so.1 #5 0xb7a5a088 in ?? () #6 0x099dcd50 in ?? () #7 0xb7a59f68 in ?? () #8 0x00aff80a in SQLTablesW () from /usr/lib/libodbc.so.1 #9 0x00aff80a in SQLTablesW () from /usr/lib/libodbc.so.1 #10 0x00ac67ed in SQLAllocEnv () from /usr/lib/libodbc.so.1 #11 0x00ac74d3 in SQLAllocHandle () from /usr/lib/libodbc.so.1 #12 0x005c12b3 in generic_prepare (obj=0x9444e38, data=0xb7a5a550) at func_odbc.c:78 #13 0x0012d396 in ast_odbc_prepare_and_execute (obj=0x9444e38, prepare_cb=0x5c127b , data=0xb7a5a550) at res_odbc.c:96 #14 0x005c269f in acf_odbc_read (chan=0x99be1c0, cmd=0xb7a5bde0 "ODBC_CST", s=0xb7a5bde9 "SELECT * FROM bla", buf=0xb7a5add0 "", len=4096) at func_odbc.c:278 #15 0x080dac41 in ast_func_read (chan=0x99be1c0, function=0xb7a5bde0 "ODBC_CST", workspace=0xb7a5add0 "", len=4096) at pbx.c:1578 #16 0x080db02c in pbx_substitute_variables_helper_full (c=0x99be1c0, headp=0x99be5c4, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7a5efe9 "", count=8182) at pbx.c:1699 #17 0x080db4b4 in pbx_substitute_variables_helper (c=0x99be1c0, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7a5efe0 "VARIABLE=", count=8191) at pbx.c:1794 #18 0x080db5bd in pbx_substitute_variables (passdata=0xb7a5efe0 "VARIABLE=", datalen=8192, c=0x99be1c0, e=0x99341e0) at pbx.c:1812 #19 0x080db7b0 in pbx_extension_helper (c=0x99be1c0, con=0x0, context=0x99be400 "local", exten=0x99be450 "h", priority=1, label=0x0, callerid=0x99bf380 "401", action=E_SPAWN) at pbx.c:1865 #20 0x080dcd45 in ast_spawn_extension (c=0x99be1c0, context=0x99be400 "local", exten=0x99be450 "h", priority=1, callerid=0x99bf380 "401") at pbx.c:2309 #21 0x080dddb3 in __ast_pbx_run (c=0x99be1c0) at pbx.c:2555 #22 0x080de176 in pbx_thread (data=0x99be1c0) at pbx.c:2631 #23 0x0812223b in dummy_start (data=0x99bf908) at utils.c:856 #24 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #25 0x0098dffe in clone () from /lib/tls/libc.so.6 Thread 1 (process 4662): #0 0x00b07a72 in SQLTablesW () from /usr/lib/libodbc.so.1 #1 0x00ac67f5 in SQLAllocEnv () from /usr/lib/libodbc.so.1 #2 0x00ac74d3 in SQLAllocHandle () from /usr/lib/libodbc.so.1 #3 0x005c12b3 in generic_prepare (obj=0x9444e38, data=0xb7b4a550) at func_odbc.c:78 #4 0x0012d396 in ast_odbc_prepare_and_execute (obj=0x9444e38, prepare_cb=0x5c127b , data=0xb7b4a550) at res_odbc.c:96 #5 0x005c269f in acf_odbc_read (chan=0x9618218, cmd=0xb7b4bde0 "ODBC_CST", s=0xb7b4bde9 "SELECT * FROM bla", buf=0xb7b4add0 "", len=4096) at func_odbc.c:278 #6 0x080dac41 in ast_func_read (chan=0x9618218, function=0xb7b4bde0 "ODBC_CST", workspace=0xb7b4add0 "", len=4096) at pbx.c:1578 #7 0x080db02c in pbx_substitute_variables_helper_full (c=0x9618218, headp=0x961861c, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7b4efe9 "", count=8182) at pbx.c:1699 #8 0x080db4b4 in pbx_substitute_variables_helper (c=0x9618218, cp1=0x9934148 "VARIABLE=${ODBC_CST(SELECT * FROM bla)}", cp2=0xb7b4efe0 "VARIABLE=", count=8191) at pbx.c:1794 #9 0x080db5bd in pbx_substitute_variables (passdata=0xb7b4efe0 "VARIABLE=", datalen=8192, c=0x9618218, e=0x99341e0) at pbx.c:1812 #10 0x080db7b0 in pbx_extension_helper (c=0x9618218, con=0x0, context=0x9618458 "local", exten=0x96184a8 "h", priority=1, label=0x0, callerid=0x96193d8 "401", action=E_SPAWN) at pbx.c:1865 #11 0x080dcd45 in ast_spawn_extension (c=0x9618218, context=0x9618458 "local", exten=0x96184a8 "h", priority=1, callerid=0x96193d8 "401") at pbx.c:2309 #12 0x080dddb3 in __ast_pbx_run (c=0x9618218) at pbx.c:2555 #13 0x080de176 in pbx_thread (data=0x9618218) at pbx.c:2631 #14 0x0812223b in dummy_start (data=0x9619700) at utils.c:856 #15 0x00c48371 in start_thread () from /lib/tls/libpthread.so.0 #16 0x0098dffe in clone () from /lib/tls/libc.so.6