!!! !!! Stopped asterisk after it did the "thank you" bit and hung. So this is what !!! we were at for a while (>10 seconds) while the line was still up and asterisk !!! seemed to be waiting for... well, *something*. (gdb) thread apply all bt Thread 15 (Thread -1222722640 (LWP 25862)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb8131 in select () from /lib/tls/i686/cmov/libc.so.6 #2 0xb745bff1 in ssl_getdata (stream=0x81d5990) at osdep.c:737 #3 0xb745ce6f in ssl_getline_work (stream=0xfffffdfe, size=0x0, contd=0xb71d6174) at osdep.c:656 #4 0xb745cf97 in ssl_getline (stream=0x81d5990) at osdep.c:617 #5 0xb7491125 in imap_reply (stream=0x81cedd8, tag=0xb71d6796 "00000ff7") at imap4r1.c:3555 #6 0xb749130c in imap_sout (stream=0x81cedd8, tag=0xb71d6796 "00000ff7", base=0x81cef8c "", s=0xb71d67a8) at imap4r1.c:3518 #7 0xb7492bf5 in imap_send (stream=0x81cedd8, cmd=0xb7531485 "APPEND", args=0xb71d6c10) at imap4r1.c:3129 #8 0xb749475a in imap_append (stream=0x81cedd8, mailbox=0xb71d71ac "{imap.cynic.org:143/imap/novalidate-cert/user=voicemail}INBOX", af=0xb7465000 , data=0xb71d708c) at imap4r1.c:2503 #9 0xb74723a5 in mail_append_multiple (stream=0x81cedd8, mailbox=0xb71d71ac "{imap.cynic.org:143/imap/novalidate-cert/user=voicemail}INBOX", af=0xb7465000 , data=0xb71d708c) at mail.c:2613 #10 0xb747259a in mail_append_full (stream=0x81cedd8, mailbox=0xb71d71ac "{imap.cynic.org:143/imap/novalidate-cert/user=voicemail}INBOX", flags=0x0, date=0x0, message=0xb71d7134) at mail.c:2571 #11 0xb743e8f7 in imap_store_file ( dir=0xb71de3d0 "/var/spool/asterisk/voicemail/vm-cynics/main/INBOX", mailboxuser=0xb71d897c "main", mailboxcontext=0xb71d892c "vm-cynics", msgnum=13, chan=0x81e70c8, vmu=0xb71d892c, fmt=0xb71d70e0 "wav", duration=94, vms=0x81ca7f8) at app_voicemail.c:1300 #12 0xb744664a in leave_voicemail (chan=0x81e70c8, ext=0xb71d8e70 "main", options=0xb71e1820) at app_voicemail.c:4033 #13 0xb74536d4 in vm_exec (chan=0x81e70c8, data=0xb71e3998) at app_voicemail.c:7600 #14 0x080bd4d4 in pbx_exec (c=0x81e70c8, app=0x81b4138, data=0xb71e3998) at pbx.c:537 #15 0x080c08ec in pbx_extension_helper (c=0x81e70c8, con=0x0, context=0x81e7248 "macro-voicemail", exten=0x81e7298 "s", priority=3, label=0x0, callerid=0x81cef20 "4083787798", action=E_SPAWN) at pbx.c:1862 #16 0x080c199e in ast_spawn_extension (c=0x81e70c8, context=0x81e7248 "macro-voicemail", exten=0x81e7298 "s", priority=3, callerid=0x81cef20 "4083787798") at pbx.c:2317 #17 0xb75e31d6 in _macro_exec (chan=0x81e70c8, data=0xb71e8a78, exclusive=0) at app_macro.c:308 #18 0xb75e3eef in macro_exec (chan=0x81e70c8, data=0xb71e8a78) at app_macro.c:486 #19 0x080bd4d4 in pbx_exec (c=0x81e70c8, app=0x81a4138, data=0xb71e8a78) at pbx.c:537 #20 0x080c08ec in pbx_extension_helper (c=0x81e70c8, con=0x0, context=0x81e7248 "macro-voicemail", exten=0x81e7298 "s", priority=8, label=0x0, callerid=0x81cef20 "4083787798", action=E_SPAWN) at pbx.c:1862 #21 0x080c199e in ast_spawn_extension (c=0x81e70c8, context=0x81e7248 "macro-voicemail", exten=0x81e7298 "s", priority=8, callerid=0x81cef20 "4083787798") at pbx.c:2317 #22 0x080c1da4 in __ast_pbx_run (c=0x81e70c8) at pbx.c:2406 #23 0x080c2c82 in ast_pbx_run (c=0x81e70c8) at pbx.c:2662 #24 0xb73eb39d in ss_thread (data=0x81e70c8) at chan_dahdi.c:6683 #25 0x0810055f in dummy_start (data=0x81efc48) at utils.c:912 #26 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #27 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 11 (Thread -1210111056 (LWP 25841)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb58f3 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0x0806b401 in listener (unused=0x0) at asterisk.c:1000 #3 0x0810055f in dummy_start (data=0x817f190) at utils.c:912 #4 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 10 (Thread -1210356816 (LWP 25842)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb58f3 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0x08100784 in ast_wait_for_input (fd=6, ms=-1) at utils.c:972 #3 0x080a91a6 in http_root (data=0x0) at http.c:526 #4 0x0810055f in dummy_start (data=0x81803d8) at utils.c:912 #5 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 9 (Thread -1210602576 (LWP 25843)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb58f3 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0x080b952f in accept_thread (ignore=0x0) at manager.c:2408 #3 0x0810055f in dummy_start (data=0x81803e8) at utils.c:912 #4 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 8 (Thread -1210848336 (LWP 25844)): #0 0xffffe410 in __kernel_vsyscall () ---Type to continue, or q to quit--- #1 0xb7fa6e16 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x08097778 in ast_cond_wait (cond=0x8159820, t=0x8152108) at /files/src/asterisk-1.4.22/include/asterisk/lock.h:787 #3 0x0809775b in do_devstate_changes (data=0x0) at devicestate.c:352 #4 0x0810055f in dummy_start (data=0x8180ee0) at utils.c:912 #5 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 7 (Thread -1213932624 (LWP 25845)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb8131 in select () from /lib/tls/i686/cmov/libc.so.6 #2 0xb7a571d8 in ast_select (nfds=0, rfds=0xb7a4d31c, wfds=0x0, efds=0xb7a4d29c, tvp=0x0) at /files/src/asterisk-1.4.22/include/asterisk/channel.h:1320 #3 0xb7a57195 in do_parking_thread (ignore=0x0) at res_features.c:1908 #4 0x0810055f in dummy_start (data=0x8191f10) at utils.c:912 #5 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 6 (Thread -1216234576 (LWP 25846)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb58f3 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0x080ac0b6 in ast_io_wait (ioc=0x8196ca8, howlong=1000) at io.c:266 #3 0xb7829038 in do_monitor (data=0x0) at chan_mgcp.c:3514 #4 0x0810055f in dummy_start (data=0x8198198) at utils.c:912 #5 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 5 (Thread -1217082448 (LWP 25847)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb58f3 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0x080ac0b6 in ast_io_wait (ioc=0x8198618, howlong=1000) at io.c:266 #3 0xb77a67ea in do_monitor (data=0x0) at chan_sip.c:16149 #4 0x0810055f in dummy_start (data=0x819dd10) at utils.c:912 #5 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 4 (Thread -1217737808 (LWP 25848)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7e81ab6 in nanosleep () from /lib/tls/i686/cmov/libc.so.6 #2 0xb7e818db in sleep () from /lib/tls/i686/cmov/libc.so.6 #3 0xb76afc3d in scan_thread (unused=0x0) at pbx_spool.c:451 #4 0x0810055f in dummy_start (data=0x819e348) at utils.c:912 #5 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 3 (Thread -1220940880 (LWP 25849)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb58f3 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0xb73ec670 in do_monitor (data=0x0) at chan_dahdi.c:6999 #3 0x0810055f in dummy_start (data=0x819f9e0) at utils.c:912 #4 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 2 (Thread -1222431824 (LWP 25850)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7fa982b in __read_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0806ffdc in monitor_sig_flags (unused=0x0) at asterisk.c:2622 #3 0x0810055f in dummy_start (data=0x81ca6b0) at utils.c:912 #4 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 1 (Thread -1210107040 (LWP 25839)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7fa982b in __read_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x08109ae1 in read_char (el=0x8176be8, cp=0xbfa1695b "\n") at read.c:296 #3 0x08104c52 in el_getc (el=0x8176be8, cp=0xbfa1695b "\n") at read.c:347 #4 0x0810505b in el_gets (el=0x8176be8, nread=0xbfa16d54) at read.c:243 #5 0x08071a98 in main (argc=2, argv=0xbfa16fb4) at asterisk.c:3159 #6 0xb7e08ea8 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #7 0x08057fe1 in ?? () at ../sysdeps/i386/elf/start.S:119 !!! !!! Okay, so I continued asterisk and went to hit at the asterisk console. !!! Whereupon we almost immediately hit abort(): !!! (gdb) c Continuing. [Switching to Thread -1222722640 (LWP 25862)] Breakpoint 1, 0xb7e1deb6 in abort () from /lib/tls/i686/cmov/libc.so.6 (gdb) info threads * 15 Thread -1222722640 (LWP 25862) 0xb7e1deb6 in abort () from /lib/tls/i686/cmov/libc.so.6 11 Thread -1210111056 (LWP 25841) 0xffffe410 in __kernel_vsyscall () 10 Thread -1210356816 (LWP 25842) 0xffffe410 in __kernel_vsyscall () 9 Thread -1210602576 (LWP 25843) 0xffffe410 in __kernel_vsyscall () 8 Thread -1210848336 (LWP 25844) 0xffffe410 in __kernel_vsyscall () 7 Thread -1213932624 (LWP 25845) 0xffffe410 in __kernel_vsyscall () 6 Thread -1216234576 (LWP 25846) 0xffffe410 in __kernel_vsyscall () 5 Thread -1217082448 (LWP 25847) 0xffffe410 in __kernel_vsyscall () 4 Thread -1217737808 (LWP 25848) 0xffffe410 in __kernel_vsyscall () 3 Thread -1220940880 (LWP 25849) 0xffffe410 in __kernel_vsyscall () 2 Thread -1222431824 (LWP 25850) 0xffffe410 in __kernel_vsyscall () 1 Thread -1210107040 (LWP 25839) 0xffffe410 in __kernel_vsyscall () (gdb) thread apply all bt Thread 15 (Thread -1222722640 (LWP 25862)): #0 0xb7e1deb6 in abort () from /lib/tls/i686/cmov/libc.so.6 #1 0xb745b080 in fatal (string=0xb74d0966 "Unlock when not locked") at ftl_unix.c:38 #2 0xb7492c02 in imap_send (stream=0x81cedd8, cmd=0xb7531485 "APPEND", args=0xb71d6c10) at imap4r1.c:3130 #3 0xb749475a in imap_append (stream=0x81cedd8, mailbox=0xb71d71ac "{imap.cynic.org:143/imap/novalidate-cert/user=voicemail}INBOX", af=0xb7465000 , data=0xb71d708c) at imap4r1.c:2503 #4 0xb74723a5 in mail_append_multiple (stream=0x81cedd8, mailbox=0xb71d71ac "{imap.cynic.org:143/imap/novalidate-cert/user=voicemail}INBOX", af=0xb7465000 , data=0xb71d708c) at mail.c:2613 #5 0xb747259a in mail_append_full (stream=0x81cedd8, mailbox=0xb71d71ac "{imap.cynic.org:143/imap/novalidate-cert/user=voicemail}INBOX", flags=0x0, date=0x0, message=0xb71d7134) at mail.c:2571 #6 0xb743e8f7 in imap_store_file ( dir=0xb71de3d0 "/var/spool/asterisk/voicemail/vm-cynics/main/INBOX", mailboxuser=0xb71d897c "main", mailboxcontext=0xb71d892c "vm-cynics", msgnum=13, chan=0x81e70c8, vmu=0xb71d892c, fmt=0xb71d70e0 "wav", duration=94, vms=0x81ca7f8) at app_voicemail.c:1300 #7 0xb744664a in leave_voicemail (chan=0x81e70c8, ext=0xb71d8e70 "main", options=0xb71e1820) at app_voicemail.c:4033 #8 0xb74536d4 in vm_exec (chan=0x81e70c8, data=0xb71e3998) at app_voicemail.c:7600 #9 0x080bd4d4 in pbx_exec (c=0x81e70c8, app=0x81b4138, data=0xb71e3998) at pbx.c:537 #10 0x080c08ec in pbx_extension_helper (c=0x81e70c8, con=0x0, context=0x81e7248 "macro-voicemail", exten=0x81e7298 "s", priority=3, label=0x0, callerid=0x81cef20 "4083787798", action=E_SPAWN) at pbx.c:1862 #11 0x080c199e in ast_spawn_extension (c=0x81e70c8, context=0x81e7248 "macro-voicemail", exten=0x81e7298 "s", priority=3, callerid=0x81cef20 "4083787798") at pbx.c:2317 #12 0xb75e31d6 in _macro_exec (chan=0x81e70c8, data=0xb71e8a78, exclusive=0) at app_macro.c:308 #13 0xb75e3eef in macro_exec (chan=0x81e70c8, data=0xb71e8a78) at app_macro.c:486 #14 0x080bd4d4 in pbx_exec (c=0x81e70c8, app=0x81a4138, data=0xb71e8a78) at pbx.c:537 #15 0x080c08ec in pbx_extension_helper (c=0x81e70c8, con=0x0, context=0x81e7248 "macro-voicemail", exten=0x81e7298 "s", priority=8, label=0x0, callerid=0x81cef20 "4083787798", action=E_SPAWN) at pbx.c:1862 #16 0x080c199e in ast_spawn_extension (c=0x81e70c8, context=0x81e7248 "macro-voicemail", exten=0x81e7298 "s", priority=8, callerid=0x81cef20 "4083787798") at pbx.c:2317 #17 0x080c1da4 in __ast_pbx_run (c=0x81e70c8) at pbx.c:2406 #18 0x080c2c82 in ast_pbx_run (c=0x81e70c8) at pbx.c:2662 #19 0xb73eb39d in ss_thread (data=0x81e70c8) at chan_dahdi.c:6683 #20 0x0810055f in dummy_start (data=0x81efc48) at utils.c:912 #21 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #22 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 11 (Thread -1210111056 (LWP 25841)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb58f3 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0x0806b401 in listener (unused=0x0) at asterisk.c:1000 #3 0x0810055f in dummy_start (data=0x817f190) at utils.c:912 #4 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 10 (Thread -1210356816 (LWP 25842)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb58f3 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0x08100784 in ast_wait_for_input (fd=6, ms=-1) at utils.c:972 #3 0x080a91a6 in http_root (data=0x0) at http.c:526 #4 0x0810055f in dummy_start (data=0x81803d8) at utils.c:912 #5 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 9 (Thread -1210602576 (LWP 25843)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb58f3 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0x080b952f in accept_thread (ignore=0x0) at manager.c:2408 #3 0x0810055f in dummy_start (data=0x81803e8) at utils.c:912 #4 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 8 (Thread -1210848336 (LWP 25844)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7fa6e16 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x08097778 in ast_cond_wait (cond=0x8159820, t=0x8152108) at /files/src/asterisk-1.4.22/include/asterisk/lock.h:787 #3 0x0809775b in do_devstate_changes (data=0x0) at devicestate.c:352 #4 0x0810055f in dummy_start (data=0x8180ee0) at utils.c:912 #5 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 ---Type to continue, or q to quit--- Thread 7 (Thread -1213932624 (LWP 25845)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb8131 in select () from /lib/tls/i686/cmov/libc.so.6 #2 0xb7a571d8 in ast_select (nfds=0, rfds=0xb7a4d31c, wfds=0x0, efds=0xb7a4d29c, tvp=0x0) at /files/src/asterisk-1.4.22/include/asterisk/channel.h:1320 #3 0xb7a57195 in do_parking_thread (ignore=0x0) at res_features.c:1908 #4 0x0810055f in dummy_start (data=0x8191f10) at utils.c:912 #5 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 6 (Thread -1216234576 (LWP 25846)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb58f3 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0x080ac0b6 in ast_io_wait (ioc=0x8196ca8, howlong=1000) at io.c:266 #3 0xb7829038 in do_monitor (data=0x0) at chan_mgcp.c:3514 #4 0x0810055f in dummy_start (data=0x8198198) at utils.c:912 #5 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 5 (Thread -1217082448 (LWP 25847)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb58f3 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0x080ac0b6 in ast_io_wait (ioc=0x8198618, howlong=1000) at io.c:266 #3 0xb77a67ea in do_monitor (data=0x0) at chan_sip.c:16149 #4 0x0810055f in dummy_start (data=0x819dd10) at utils.c:912 #5 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 4 (Thread -1217737808 (LWP 25848)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7e81ab6 in nanosleep () from /lib/tls/i686/cmov/libc.so.6 #2 0xb7e818db in sleep () from /lib/tls/i686/cmov/libc.so.6 #3 0xb76afc3d in scan_thread (unused=0x0) at pbx_spool.c:451 #4 0x0810055f in dummy_start (data=0x819e348) at utils.c:912 #5 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 3 (Thread -1220940880 (LWP 25849)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7eb58f3 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0xb73ec670 in do_monitor (data=0x0) at chan_dahdi.c:6999 #3 0x0810055f in dummy_start (data=0x819f9e0) at utils.c:912 #4 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 2 (Thread -1222431824 (LWP 25850)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7fa982b in __read_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0806ffdc in monitor_sig_flags (unused=0x0) at asterisk.c:2622 #3 0x0810055f in dummy_start (data=0x81ca6b0) at utils.c:912 #4 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 1 (Thread -1210107040 (LWP 25839)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7fa982b in __read_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x08109ae1 in read_char (el=0x8176be8, cp=0xbfa1695b "\n") at read.c:296 #3 0x08104c52 in el_getc (el=0x8176be8, cp=0xbfa1695b "\n") at read.c:347 #4 0x0810505b in el_gets (el=0x8176be8, nread=0xbfa16d54) at read.c:243 #5 0x08071a98 in main (argc=2, argv=0xbfa16fb4) at asterisk.c:3159 #6 0xb7e08ea8 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #7 0x08057fe1 in ?? () at ../sysdeps/i386/elf/start.S:119 #0 0xb7e1deb6 in abort () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt full #0 0xb7e1deb6 in abort () from /lib/tls/i686/cmov/libc.so.6 No symbol table info available. #1 0xb745b080 in fatal (string=0xb74d0966 "Unlock when not locked") at ftl_unix.c:38 No locals. #2 0xb7492c02 in imap_send (stream=0x81cedd8, cmd=0xb7531485 "APPEND", args=0xb71d6c10) at imap4r1.c:3130 datetmp = " ?\034\b(c\035??KI?\210o\035?\200?S?\000\000\000\000\000\000\000\000\r\n\000\000\000\000\000\000hg\035?L\215F?\210o\035?", '\0' , "\n", '\0' , "\200?S?\fd\035?\000\000\000\000?c\035?!?F??q\035?\fd\035?q\036S?\200?S?,d\035?\fd\035??g\035???F??g\035?\216f\035?q\036S?imap.cynic.org", '\0' , "imap.cynic.org", '\0' , "voicemail", '\0' ... elt = {msgno = 0, lockcount = 0, rfc822_size = 0, private = {uid = 0, mod = 0, special = {offset = 0, text = {data = 0x0, size = 0}}, msg = {env = 0x0, body = 0x0, full = {offset = 0, text = {data = 0x0, size = 0}}, lines = 0x0, header = { offset = 0, text = {data = 0x0, size = 0}}, text = {offset = 0, text = { data = 0x0, size = 0}}}, spare = {data = 0, ptr = 0x0}, sequence = 0, dirty = 0, filter = 0, ghost = 0}, day = 0, month = 0, year = 0, hours = 0, minutes = 0, seconds = 0, zoccident = 0, zhours = 0, zminutes = 0, seen = 0, deleted = 0, flagged = 0, answered = 0, draft = 0, recent = 0, valid = 0, searched = 0, sequence = 0, spare = 0, spare2 = 0, spare3 = 0, spare4 = 0, spare5 = 0, spare6 = 0, spare7 = 0, spare8 = 0, sparep = 0x0, user_flags = 0} es = {data = 0x0, data1 = 0, size = 0, chunk = 0x0, chunksize = 0, offset = 0, curpos = 0x0, cursize = 1835597824, dtb = 0x7061} reply = (IMAPPARSEDREPLY *) 0x81cef34 arg = (IMAPARG *) 0x0 arglst = (IMAPARG **) 0xb71d6c1c spg = list = st = {data = 0xb71d67fc "INBOX", size = 5} map = i = 0 a = c = s = 0x81cef8c "" t = tag = "00000ff7\000" #3 0xb749475a in imap_append (stream=0x81cedd8, mailbox=0xb71d71ac "{imap.cynic.org:143/imap/novalidate-cert/user=voicemail}INBOX", af=0xb7465000 , data=0xb71d708c) at imap4r1.c:2503 args = {0xb71d6c24, 0xb71d6c1c, 0x0} ambx = {type = 3, text = 0xb71d67fc} amap = {type = 13, text = 0xb71d6bfc} reply = map = {af = 0xb7465000 , data = 0xb71d708c, flags = 0x0, date = 0x0, message = 0x0} tmp = "INBOX\000\035?\030n\035?_??, "????\020\000\000\000v?L?s?L?Dm\035?\000\000\000\000?n\035?", '\0' , "????=\000\000\000?\224L??\224L?\204m\035?\001", '\0' , " s\005", '\0' , "4083787798", '\0' , "t?L?", '\0' , "????", '\0' ... debug = 0 ret = 136132816 #4 0xb74723a5 in mail_append_multiple (stream=0x81cedd8, mailbox=0xb71d71ac "{imap.cynic.org:143/imap/novalidate-cert/user=voicemail}INBOX", af=0xb7465000 , data=0xb71d708c) at mail.c:2613 __a0 = __a1 = __a2 = s = tmp = "{imap.cynic.org:143/imap/novalidate-cert/user=voicemail}inbox\000\035??\017?\000\000\000\000\000\000\000\000\rn??l\035?\210o\035?\207p\035?\fn\035??\017??l\035?\210o\035??m\035?\201\017??l\035??\224L?\020n\035?\210o\035?\000\000\000\000\214m\035??\000\000\000\001\200??\210o\035?\210o\035?\210o\035?\210o\035??o\035?\207p\035?\210o\035?\207p\035?", '\0' , "2744\000\000\000\000?\025"... d = (struct driver *) 0x2019 ret = #5 0xb747259a in mail_append_full (stream=0x81cedd8, mailbox=0xb71d71ac "{imap.cynic.org:143/imap/novalidate-cert/user=voicemail}INBOX", flags=0x0, date=0x0, message=0xb71d7134) at mail.c:2571 ap = {flags = 0x0, date = 0x0, message = 0x0} #6 0xb743e8f7 in imap_store_file ( dir=0xb71de3d0 "/var/spool/asterisk/voicemail/vm-cynics/main/INBOX", mailboxuser=0xb71d897c "main", mailboxcontext=0xb71d892c "vm-cynics", msgnum=13, chan=0x81e70c8, vmu=0xb71d892c, fmt=0xb71d70e0 "wav", duration=94, vms=0x81ca7f8) at app_voicemail.c:1300 myserveremail = 0xb753cec0 "voicemail@cynic.org" fn = "/var/spool/asterisk/voicemail/vm-cynics/main/INBOX/msg0013\000main/tmp/cXaZIA\000\000\000\000\000\000\000\000\000\000G\001???@?\221?]` ?\036\b ?\036\b?u\035?-?\035\b-?\035\b\000\000\000\000P?\036\b??\036\b\000\000\000\000o?\201^[?gɬ?m?? Lk", '\0' to continue, or q to quit--- 2 times>, "\024\232?", '\0' , "\002\000\000\000?(??&?", '\0' , "?$?i\000"... mailbox = "{imap.cynic.org:143/imap/novalidate-cert/user=voicemail}INBOX\000\035??\005\006\b?p\036\b\000\000\000\000?r\035??\000\000\000\000\000\000\000??\035?\000\000\000\000\200\000\000\000\210\023\000\000\000\000\000\000\000\000\000\000??L?2?\024\b\032\026\000\0002?\024\b??L?\001", '\0' , "\200q\035??\225L???L??\202\035??\204E??p\036\b\000\000\000\000?r\035??\000\000\000\200\222\035???\035?\200\000\000\000\210\023\000\000\000\000\000\000?"... stringp = 0xb71d70e4 "gsm" p = (FILE *) 0x81f5e20 tmp = "/tmp/astmail-8nFaFh", '\0' len = 1974730 buf = (void *) 0xb6fcd008 tempcopy = 1 str = {data = 0xb6fcd008, data1 = 0, size = 1974730, chunk = 0xb6fcd008 "Date: Sun, 19 Oct 2008 14:18:33 -0700\r\nFrom: Asterisk PBX \r\nTo: \"Cynics\" \r\nSubject: Voicemail from \"KIEHTREIBER AUD\" <4083787798>\r\nMessage-ID: , "?y??L????????\006\036?\223?\017\b\001\000\000\000\204?\n\b", '\0' , "?\210\036\b", '\0' , "?\210\036\b?\006\036?m?\017\b?=\025\b\204", '\0' , "?\210\036\b", '\0' , "?\210\036\bH\n\036??\025\v\b?=\025\b\200", '\0' , "X\030\036?K?\v\b"... tmptxtfile = "/var/spool/asterisk/voicemail/vm-cynics/main/tmp/cXaZIA", '\0' , "\027`??", '\0' , "\004e^??\a\036???\031\b??\035?m?\v\b@q\036\b??\031\bh?\035?Q?\v\b@q\036\b\r?\031\b?\017\000\0000?\035?@q\036\b\000\000\000\000h?\035?K?\v\bVM_BOX\000Y", '\0' , "\004\000\000\000\201?\023\b?\a\036??\a\036???\035?", '\0' , "\ft\036\b?"... callerid = "\"KIEHTREIBER AUD\" <4083787798>", '\0' txt = (FILE *) 0x81e7a50 date = "Sun Oct 19 02:16:57 PM PDT 2008", '\0' txtdes = 19 res = 0 msgnum = 13 duration = 94 ausemacro = 1 ousemacro = 0 ouseexten = 0 dir = "/var/spool/asterisk/voicemail/vm-cynics/main/INBOX", '\0' tmpdir = "/var/spool/asterisk/voicemail/vm-cynics/main/tmp", '\0' dest = "/var/spool/asterisk/voicemail/vm-cynics/main/temp", '\0' fn = "/var/spool/asterisk/voicemail/vm-cynics/main/INBOX/msg0013", '\0' prefile = '\0' tempfile = "/var/spool/asterisk/voicemail/vm-cynics/main/temp", '\0' ext_context = "main@vm-cynics", '\0' fmt = "wav|gsm", '\0' context = 0xb71d8e75 "vm-cynics" ecodes = "#*", '\0' tmp = "main\000vm-cynics", '\0' tmpptr = 0x0 vmu = (struct ast_vm_user *) 0xb71d892c svm = {context = "vm-cynics", '\0' , mailbox = "main", '\0' , password = "150995008", '\0' , fullname = "Cynics", '\0' , email = "voicemail", '\0' , pager = '\0' , serveremail = '\0' , mailcmd = '\0' , language = '\0' , zonetag = '\0' , callback = '\0' , dialout = '\0' , uniqueid = '\0' , exit = '\0' , attachfmt = '\0' , flags = 2096, saydurationm = 2, maxmsg = 100, imapuser = "voicemail", '\0' , imappassword = '\0' , volgain = 20, list = {next = 0x0}} category = 0x0 __PRETTY_FUNCTION__ = "leave_voicemail" #8 0xb74536d4 in vm_exec (chan=0x81e70c8, data=0xb71e3998) at app_voicemail.c:7600 res = 0 u = (struct ast_module_user *) 0x81d81d8 ---Type to continue, or q to quit--- tmp = 0xb71e1680 "main@vm-cynics" leave_options = {flags = 0, record_gain = 0 '\0'} flags = {flags = 0} opts = {0x50
, 0x8144b97 "%c[%d;%sm%s%c[0;%d;%dm"} args = {argc = 1, argv = 0xb71e180c, argv0 = 0xb71e1680 "main@vm-cynics", argv1 = 0x0} deprecate_warning = 0 __PRETTY_FUNCTION__ = "vm_exec" #9 0x080bd4d4 in pbx_exec (c=0x81e70c8, app=0x81b4138, data=0xb71e3998) at pbx.c:537 res = -1222755944 saved_c_appl = 0x81a414c "Macro" saved_c_data = 0xb71e8a78 "voicemail" #10 0x080c08ec in pbx_extension_helper (c=0x81e70c8, con=0x0, context=0x81e7248 "macro-voicemail", exten=0x81e7298 "s", priority=3, label=0x0, callerid=0x81cef20 "4083787798", action=E_SPAWN) at pbx.c:1862 e = (struct ast_exten *) 0x81af380 app = (struct ast_app *) 0x81b4138 res = 135983920 q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x81e7248 "macro-voicemail"} passdata = "main@vm-cynics", '\0' matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #11 0x080c199e in ast_spawn_extension (c=0x81e70c8, context=0x81e7248 "macro-voicemail", exten=0x81e7298 "s", priority=3, callerid=0x81cef20 "4083787798") at pbx.c:2317 No locals. #12 0xb75e31d6 in _macro_exec (chan=0x81e70c8, data=0xb71e8a78, exclusive=0) at app_macro.c:308 c = (struct ast_context *) 0x81ab840 e = (struct ast_exten *) 0x81af380 s = 0x0 tmp = 0xb71e5c30 "voicemail" cur = 0x0 rest = 0x0 macro = 0xb71e5c30 "voicemail" fullmacro = "macro-voicemail\000?=\025\b\204\000\000\000?h\036??i\036??\211\036?\200\000\000\000xh\036??i\036??\211\036??h\036?xi\036??\037\v\b\005\000\000\000?Y\023\b\210\003\000\0007r\023\b" varname = "?{???h\036?xh\036???\006\b`;߷\027\000\000\000M?\036\b1\223\022\b?i\036??\211\036?Hh\036?\000\000\000\000\032\026\000\000\033[1;30;40m -- \033[0;37;40m" runningapp = "Voicemail\000巠\023?????\205\000\000\000?g\036?\033\220????\036\b4=??\017?\023򷰻\036??g\036??\017?\023??g\036??g\036?\027\000\000\000?d\000" runningdata = "${VM_BOX}\000}\000\001\200??tu\036\btu\036\btu\036\b?y??\006\000\000\000~\212\036??c\036?\223?\017\b\001\000\000\000\204?\n\b", '\0' , "pu\036\b\030d\036?P\000\000\000P\00040pu\036\b(d\036?m?\017\b?=\025\b\204\000\000\000\000\220??P\000\000\000?\023?pu\036\bDd\036?\2053巠\023?pu\036\b\230g\036??\025\v\b?=\025\b\200\000\000\000?\017?P\000\000\000?\023?Pd\036?\0376?????\024d?\016?巠\023??\017?\000\000\000\000\000\000\000\000\rn"... oldargs = {0x0 } argc = 1 x = 1667594309 res = 0 oldexten = "s", '\0' oldpriority = 8 gosub_level = 0 pc = "8\000\036?\001\000\000\000(g\036?_??Lg\036??h\036?\001\000\000\000\000\000\000\000????\030\000\000\000\224f\036?\035?? f\036?\001\000\000\000\000g\036?\000\000\000\000\000\000\000\000Pr\023\b\000\000\000\000\203_?" depthc = "1\000\036?\001\000\000\000?\017?" oldcontext = "incoming-pots", '\0' inhangupc = 0x0 offset = 0 depth = 0 maxdepth = 7 setmacrocontext = 1 autoloopflag = 512 dead = 0 inhangup = 0 save_macro_exten = 0x0 save_macro_context = 0x0 save_macro_priority = 0x0 save_macro_offset = 0x0 u = (struct ast_module_user *) 0x81ee878 __PRETTY_FUNCTION__ = "_macro_exec" #13 0xb75e3eef in macro_exec (chan=0x81e70c8, data=0xb71e8a78) at app_macro.c:486 No locals. #14 0x080bd4d4 in pbx_exec (c=0x81e70c8, app=0x81a4138, data=0xb71e8a78) at pbx.c:537 res = 8183 saved_c_appl = 0x0 saved_c_data = 0x0 ---Type to continue, or q to quit--- #15 0x080c08ec in pbx_extension_helper (c=0x81e70c8, con=0x0, context=0x81e7248 "macro-voicemail", exten=0x81e7298 "s", priority=8, label=0x0, callerid=0x81cef20 "4083787798", action=E_SPAWN) at pbx.c:1862 e = (struct ast_exten *) 0x81acdc8 app = (struct ast_app *) 0x81a4138 res = 0 q = {incstack = {0x819e52c "incoming-pots", 0x0 }, stacklen = 1, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x819e5cd "incoming"} passdata = "voicemail", '\0' matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #16 0x080c199e in ast_spawn_extension (c=0x81e70c8, context=0x81e7248 "macro-voicemail", exten=0x81e7298 "s", priority=8, callerid=0x81cef20 "4083787798") at pbx.c:2317 No locals. #17 0x080c1da4 in __ast_pbx_run (c=0x81e70c8) at pbx.c:2406 dst_exten = "\b\t\n\v\f\r\016\017\020\021\022\023\024\025\026\027\030\031\032\033?$?\020\000\000\000?$?()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\003\000\000\000`abcdefghijklmno?\217?tuvwxyz{|}~\177?\017??$?\\?\032?\000\000\000\000???$?\v\000\000\000?\017?\v\000\000\000\\?\032?ح\036?\226????\036\b\\?\032?\v\000\000\000L???\000\000\000\000\000\000\000\000\030?\036?9?\017\b"... pos = 0 digit = 0 found = 1 res = 0 autoloopflag = 0 error = 0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #18 0x080c2c82 in ast_pbx_run (c=0x81e70c8) at pbx.c:2662 res = AST_PBX_SUCCESS #19 0xb73eb39d in ss_thread (data=0x81e70c8) at chan_dahdi.c:6683 chan = (struct ast_channel *) 0x81e70c8 p = (struct dahdi_pvt *) 0x81b8f78 exten = '\0' exten2 = '\0' buf = "????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????", '\0' , "\024\232?", '\0' , "?(?" dtmfcid = '\0' dtmfbuf = '\0' cs = (struct callerid_state *) 0xb717f008 name = 0xb71af41c "" number = 0xb71af45c "" distMatches = 0 curRingData = {0, 0, 0} receivedRingT = 0 counter1 = 0 counter = 0 samples = 8480 smdi_msg = (struct ast_smdi_md_message *) 0x0 flags = 0 i = 1 timeout = 136213008 getforward = 0 s1 = 0xa0
s2 = 0x81e8968 "\237???\r+Jj{\215?????\016'A\\x\225???\003\025(, __arg = 0xb71ebbb0, __canceltype = -1209009666, __prev = 0x0} ret = (void *) 0x1 a = {start_routine = 0xb73e6c23 , data = 0x81e70c8, name = 0x81e74c0 "ss_thread", ' ' , "started at [ 6812] chan_dahdi.c handle_init_event()"} #21 0xb7fa4240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 No symbol table info available. #22 0xb7ebf49e in clone () from /lib/tls/i686/cmov/libc.so.6 No symbol table info available. (gdb) kill Kill the program being debugged? (y or n) y (gdb) q