Core was generated by `asterisk -vvv -c'. Program terminated with signal 11, Segmentation fault. #0 0xb7a2818a in __sip_destroy (p=0x823aca8, lockowner=1, lockdialoglist=1) at chan_sip.c:4276 4276 if (p->stimer->st_active == TRUE && p->stimer->st_schedid > -1) (gdb) bt full #0 0xb7a2818a in __sip_destroy (p=0x823aca8, lockowner=1, lockdialoglist=1) at chan_sip.c:4276 cur = (struct sip_pvt *) 0x8239600 prev = (struct sip_pvt *) 0x0 cp = (struct sip_pkt *) 0xb7cba311 __PRETTY_FUNCTION__ = "__sip_destroy" #1 0xb7a28fba in sip_destroy (p=0x823aca8) at chan_sip.c:4451 __PRETTY_FUNCTION__ = "sip_destroy" #2 0xb7a21207 in __sip_autodestruct (data=0x823aca8) at chan_sip.c:2876 p = (struct sip_pvt *) 0x823aca8 __PRETTY_FUNCTION__ = "__sip_autodestruct" #3 0x08131c98 in ast_sched_runq (con=0x81ee348) at sched.c:365 current = (struct sched *) 0x8218ca0 tv = {tv_sec = 1203765839, tv_usec = 104225} numevents = 1 res = 0 __PRETTY_FUNCTION__ = "ast_sched_runq" #4 0xb7a6ca09 in do_monitor (data=0x0) at chan_sip.c:18449 res = 0 dialog = (struct sip_pvt *) 0x829b988 t = 1203765838 reloading = 0 __PRETTY_FUNCTION__ = "do_monitor" #5 0x08146025 in dummy_start (data=0x8218aa0) at utils.c:857 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {-1211338764, 0, -1214825584, -1214827576, 1652353169, 1688473582}, __mask_was_saved = 0}}, __pad = {0xb7973480, 0x0, 0x0, 0x0}} __cancel_routine = (void (*)(void *)) 0x806e52c __cancel_arg = (void *) 0xb7973b90 not_first_call = 0 ret = (void *) 0x0 a = {start_routine = 0xb7a6c56c , data = 0x0, name = 0x8218ed0 "do_monitor", ' ' , "started at [18477] chan_sip.c restart_monitor()"} lock_info = (struct thr_lock_info *) 0x8218fc8 mutex_attr = {__size = "\001\000\000", __align = 1} #6 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 No symbol table info available. #7 0xb7da046e in clone () from /lib/i686/libc.so.6 No symbol table info available. (gdb) thread apply all bt Thread 17 (process 2855): #0 0xffffe410 in ?? () #1 0xbfd58858 in ?? () #2 0x00000001 in ?? () #3 0xbfd588de in ?? () #4 0xb7d9022b in read () from /lib/i686/libc.so.6 #5 0x0814eebb in read_char (el=0x81e2cd8, cp=0xbfd588de "\a") at read.c:296 #6 0x0814efb4 in el_getc (el=0x81e2cd8, cp=0xbfd588de "\a") at read.c:347 #7 0x0814ed65 in read_getcmd (el=0x81e2cd8, cmdnum=0xbfd588df "", ch=0xbfd588de "\a") at read.c:243 #8 0x0814f201 in el_gets (el=0x81e2cd8, nread=0xbfd58c00) at read.c:443 #9 0x08077f63 in main (argc=3, argv=0xbfd58e84) at asterisk.c:3298 #10 0xb7ce4390 in __libc_start_main () from /lib/i686/libc.so.6 #11 0x0805c341 in SSL_accept () Thread 16 (process 32656): #0 0xffffe410 in ?? () #1 0xb7c652a8 in ?? () #2 0x00000335 in ?? () #3 0x00000080 in ?? () #4 0xb7cbc4e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0 #5 0xb7dacf9d in pthread_cond_wait () from /lib/i686/libc.so.6 #6 0x080b8ac4 in __ast_cond_wait (filename=0x818a99c "event.c", lineno=762, func=0x818aea0 "ast_event_dispatcher", cond_name=0x818aca6 "&event_thread.cond", mutex_name=0x818ac93 "&event_thread.lock", cond=0x81b5800, t=0x81b5830) at /root/src/asterisk-r104045/include/asterisk/lock.h:563 #7 0x080b8537 in ast_event_dispatcher (unused=0x0) at event.c:762 #8 0x08146025 in dummy_start (data=0x81e4d60) at utils.c:857 #9 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 #10 0xb7da046e in clone () from /lib/i686/libc.so.6 Thread 15 (process 32657): #0 0xffffe410 in ?? () #1 0xb7c29288 in ?? () #2 0xffffffff in ?? () #3 0x00000001 in ?? () #4 0xb7d95f97 in poll () from /lib/i686/libc.so.6 #5 0x080710e1 in listener (unused=0x0) at asterisk.c:1039 #6 0x08146025 in dummy_start (data=0x81e6938) at utils.c:857 #7 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 #8 0xb7da046e in clone () from /lib/i686/libc.so.6 Thread 14 (process 32658): #0 0xffffe410 in ?? () #1 0xb7bed2b8 in ?? () #2 0x00000d03 in ?? () #3 0x00000080 in ?? () #4 0xb7cbc4e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0 #5 0xb7dacf9d in pthread_cond_wait () from /lib/i686/libc.so.6 #6 0x080e0a6b in __ast_cond_wait (filename=0x819310c "logger.c", lineno=881, func=0x8194bc3 "logger_thread", cond_name=0x8194bf1 "&logcond", mutex_name=0x8194be3 "&logmsgs.lock", cond=0x81cfe20, t=0x81b8108) at /root/src/asterisk-r104045/include/asterisk/lock.h:563 #7 0x080e0249 in logger_thread (data=0x0) at logger.c:881 #8 0x08146025 in dummy_start (data=0x81e6948) at utils.c:857 #9 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 #10 0xb7da046e in clone () from /lib/i686/libc.so.6 Thread 13 (process 32659): #0 0xffffe410 in ?? () #1 0xb7bb10b8 in ?? () #2 0xffffffff in ?? () #3 0x00000002 in ?? () #4 0xb7d95f97 in poll () from /lib/i686/libc.so.6 #5 0x08070eaf in netconsole (vconsole=0x81d6780) at asterisk.c:992 #6 0x08146025 in dummy_start (data=0x81e85a0) at utils.c:857 #7 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 #8 0xb7da046e in clone () from /lib/i686/libc.so.6 Thread 12 (process 32660): #0 0xffffe410 in ?? () #1 0xb7b752b8 in ?? () #2 0x00000333 in ?? () #3 0x00000080 in ?? () #4 0xb7cbc4e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0 #5 0xb7dacf9d in pthread_cond_wait () from /lib/i686/libc.so.6 #6 0x080aa0b2 in __ast_cond_wait (filename=0x81884bb "devicestate.c", lineno=527, func=0x8188960 "do_devstate_changes", cond_name=0x818889c "&change_pending", mutex_name=0x8188974 "&state_changes.lock", cond=0x81cf080, t=0x81b5248) at /root/src/asterisk-r104045/include/asterisk/lock.h:563 #7 0x080a9d4b in do_devstate_changes (data=0x0) at devicestate.c:527 #8 0x08146025 in dummy_start (data=0x81ebde8) at utils.c:857 #9 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 #10 0xb7da046e in clone () from /lib/i686/libc.so.6 Thread 11 (process 32661): #0 0xffffe410 in ?? () #1 0xb7b392b8 in ?? () #2 0x00000337 in ?? () #3 0x00000080 in ?? () #4 0xb7cbc4e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0 #5 0xb7dacf9d in pthread_cond_wait () from /lib/i686/libc.so.6 #6 0x080f8628 in __ast_cond_wait (filename=0x81987d4 "pbx.c", lineno=2927, func=0x819ce4b "device_state_thread", cond_name=0x819ce38 "&device_state.cond", mutex_name=0x819ce25 "&device_state.lock", cond=0x81bab20, t=0x81baa48) at /root/src/asterisk-r104045/include/asterisk/lock.h:563 #7 0x080f824f in device_state_thread (data=0x0) at pbx.c:2927 #8 0x08146025 in dummy_start (data=0x81eccc8) at utils.c:857 #9 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 #10 0xb7da046e in clone () from /lib/i686/libc.so.6 Thread 10 (process 32662): #0 0xffffe410 in ?? () #1 0xb7afcf48 in ?? () #2 0x00000000 in ?? () Thread 9 (process 32663): #0 0xffffe410 in ?? () #1 0xb79eb2b8 in ?? () #2 0xffffffff in ?? () #3 0x00000001 in ?? () #4 0xb7d95f97 in poll () from /lib/i686/libc.so.6 #5 0x0814634f in ast_wait_for_input (fd=13, ms=-1) at utils.c:943 #6 0x081383a9 in server_root (data=0xb7a91f20) at tcptls.c:124 #7 0x08146025 in dummy_start (data=0x81ee0c0) at utils.c:857 #8 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 #9 0xb7da046e in clone () from /lib/i686/libc.so.6 Thread 8 (process 32664): #0 0xffffe410 in ?? () #1 0xb79af2b8 in ?? () #2 0xffffffff in ?? () #3 0x00000001 in ?? () #4 0xb7d95f97 in poll () from /lib/i686/libc.so.6 #5 0x0814634f in ast_wait_for_input (fd=14, ms=-1) at utils.c:943 #6 0x081383a9 in server_root (data=0xb7a91fa0) at tcptls.c:124 #7 0x08146025 in dummy_start (data=0x8217328) at utils.c:857 #8 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 #9 0xb7da046e in clone () from /lib/i686/libc.so.6 Thread 7 (process 32666): #0 0xffffe410 in ?? () #1 0xb78d2e78 in ?? () #2 0x000003e8 in ?? () #3 0x00000000 in ?? () Thread 6 (process 32667): #0 0xffffe410 in ?? () #1 0xb7888198 in ?? () #2 0xb7e0dff4 in ?? () from /lib/i686/libc.so.6 #3 0xb7888184 in ?? () #4 0xb7d60556 in nanosleep () from /lib/i686/libc.so.6 #5 0xb7d60337 in sleep () from /lib/i686/libc.so.6 #6 0xb788b8d6 in scan_thread (unused=0x0) at pbx_spool.c:433 #7 0x08146025 in dummy_start (data=0x8231b18) at utils.c:857 #8 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 #9 0xb7da046e in clone () from /lib/i686/libc.so.6 Thread 5 (process 32668): #0 0xffffe410 in ?? () #1 0xb76ce318 in ?? () #2 0xffffffff in ?? () #3 0x00000001 in ?? () #4 0xb7d95f97 in poll () from /lib/i686/libc.so.6 #5 0x0807615f in monitor_sig_flags (unused=0x0) at asterisk.c:2705 #6 0x08146025 in dummy_start (data=0x82443c8) at utils.c:857 #7 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 #8 0xb7da046e in clone () from /lib/i686/libc.so.6 Thread 4 (process 32669): #0 0xffffe410 in ?? () #1 0xb768f8b8 in ?? () #2 0xffffffff in ?? () #3 0x00000001 in ?? () #4 0xb7d95f97 in poll () from /lib/i686/libc.so.6 #5 0x0814634f in ast_wait_for_input (fd=17, ms=-1) at utils.c:943 #6 0xb7a1cf56 in _sip_tcp_helper_thread (pvt=0x0, ser=0x8245408) at chan_sip.c:2184 #7 0xb7a1cd5b in sip_tcp_worker_fn (data=0x8245408) at chan_sip.c:2144 #8 0x081398e2 in ast_make_file_from_fd (data=0x8245408) at tcptls.c:463 #9 0x08146025 in dummy_start (data=0x82452c8) at utils.c:857 #10 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 #11 0xb7da046e in clone () from /lib/i686/libc.so.6 Thread 3 (process 32670): #0 0xffffe410 in ?? () #1 0x0000025a in ?? () #2 0x0000025a in ?? () #3 0x08262440 in ?? () #4 0xb7d902ab in write () from /lib/i686/libc.so.6 #5 0xb7eb09d4 in SSL_accept () from /usr/lib/libcrypto.so.0.9.8 #6 0xb7eae8f8 in BIO_write () from /usr/lib/libcrypto.so.0.9.8 #7 0xb7f910ec in ssl3_write_pending () from /usr/lib/libssl.so.0.9.8 #8 0xb7f9146b in SSL_accept () from /usr/lib/libssl.so.0.9.8 #9 0xb7f9174f in ssl3_write_bytes () from /usr/lib/libssl.so.0.9.8 #10 0xb7f8ebda in ssl3_write () from /usr/lib/libssl.so.0.9.8 #11 0xb7f9f869 in SSL_write () from /usr/lib/libssl.so.0.9.8 #12 0x0813824d in ssl_write (cookie=0x825aeb0, buf=0xb7650694 "SIP/2.0 200 OK\r\nVia: SIP/2.0/TLS 85.216.201.137:0;branch=z9hG4bK3256148c;received=85.216.201.137;rport=49314\r\nFrom: \"asterisk\" ;tag=as34896031\r\nTo: ;ta"..., len=527) at tcptls.c:72 #13 0x08138344 in server_write (ser=0x825b600, buf=0xb7650694, count=527) at tcptls.c:105 #14 0xb7a1f4a9 in __sip_xmit (p=0x829b988, data=0xb7650694 "SIP/2.0 200 OK\r\nVia: SIP/2.0/TLS 85.216.201.137:0;branch=z9hG4bK3256148c;received=85.216.201.137;rport=49314\r\nFrom: \"asterisk\" ;tag=as34896031\r\nTo: ;ta"..., len=527) at chan_sip.c:2515 #15 0xb7a21f35 in send_response (p=0x829b988, req=0xb7650470, reliable=XMIT_UNRELIABLE, seqno=0) at chan_sip.c:3044 #16 0xb7a369ef in transmit_response_with_allow (p=0x829b988, msg=0xb7a8068a "200 OK", req=0xb7652f58, reliable=XMIT_UNRELIABLE) at chan_sip.c:7532 #17 0xb7a61421 in handle_request_options (p=0x829b988, req=0xb7652f58) at chan_sip.c:15932 #18 0xb7a6ab20 in handle_incoming (p=0x829b988, req=0xb7652f58, sin=0x825b614, recount=0xb76518cc, nounlock=0xb76518c8) at chan_sip.c:17953 #19 0xb7a6b6d8 in handle_request_do (req=0xb7652f58, sin=0x825b614) at chan_sip.c:18125 #20 0xb7a1d2dc in _sip_tcp_helper_thread (pvt=0x0, ser=0x825b600) at chan_sip.c:2220 #21 0xb7a1cd5b in sip_tcp_worker_fn (data=0x825b600) at chan_sip.c:2144 #22 0x081398e2 in ast_make_file_from_fd (data=0x825b600) at tcptls.c:463 #23 0x08146025 in dummy_start (data=0x825c250) at utils.c:857 #24 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 #25 0xb7da046e in clone () from /lib/i686/libc.so.6 Thread 2 (process 32672): #0 0xffffe410 in ?? () #1 0xb75d8a38 in ?? () #2 0x000001f4 in ?? () #3 0x00000000 in ?? () Thread 1 (process 32665): #0 0xb7a2818a in __sip_destroy (p=0x823aca8, lockowner=1, lockdialoglist=1) at chan_sip.c:4276 #1 0xb7a28fba in sip_destroy (p=0x823aca8) at chan_sip.c:4451 #2 0xb7a21207 in __sip_autodestruct (data=0x823aca8) at chan_sip.c:2876 #3 0x08131c98 in ast_sched_runq (con=0x81ee348) at sched.c:365 #4 0xb7a6ca09 in do_monitor (data=0x0) at chan_sip.c:18449 #5 0x08146025 in dummy_start (data=0x8218aa0) at utils.c:857 #6 0xb7cb84e2 in start_thread () from /lib/i686/libpthread.so.0 #7 0xb7da046e in clone () from /lib/i686/libc.so.6 (gdb) quit