(gdb) bt #0 0x080f3ecc in ast_copy_string (dst=0x0, src=0xb74bb795 "INBOX", size=80) at /home/patrick/asterisk-1.4.4/include/asterisk/strings.h:160 #1 0xb743f16d in imap_mailbox_name (spec=0xb6cc1d90 "o?È·¬#̶\"Ä\022\b\022", vms=0x0, box=0, use_folder=1) at app_voicemail.c:4614 #2 0xb743746a in imap_store_file (dir=0xb6cc30cc "/var/spool/asterisk/voicemail/default/2500/unavail", mailboxuser=0xb6cc42d4 "2500", mailboxcontext=0xb6cc4284 "default", msgnum=-1, chan=0x82246b8, vmu=0xb6cc4284, fmt=0xb6cc1cc0 "gsm", duration=2, vms=0x0) at app_voicemail.c:2426 #3 0xb744b936 in play_record_review (chan=0x82246b8, playfile=0xb74bce60 "vm-rec-unv", recordfile=0xb6cc30cc "/var/spool/asterisk/voicemail/default/2500/unavail", maxtime=0, fmt=0xb752bc60 "gsm", outsidecaller=0, vmu=0xb6cc4284, duration=0xb6cc416c, unlockdir=0x0, record_gain=0 '\0', vms=0x0) at app_voicemail.c:8018 #4 0xb744374d in vm_options (chan=0x82246b8, vmu=0xb6cc4284, vms=0xb6cc4788, fmtc=0xb752bc60 "gsm", record_gain=0 '\0') at app_voicemail.c:5833 #5 0xb74467e5 in vm_execmain (chan=0x82246b8, data=0xb6ccb008) at app_voicemail.c:6668 #6 0x080b5ee1 in pbx_exec (c=0x82246b8, app=0x81d61a8, data=0xb6ccb008) at pbx.c:532 #7 0x080b9327 in pbx_extension_helper (c=0x82246b8, con=0x0, context=0x8224838 "sip-internal", exten=0x8224888 "7777", priority=1, label=0x0, callerid=0x8202180 "2400", action=E_SPAWN) at pbx.c:1833 #8 0x080ba3f5 in ast_spawn_extension (c=0x82246b8, context=0x8224838 "sip-internal", exten=0x8224888 "7777", priority=1, callerid=0x8202180 "2400") at pbx.c:2288 #9 0x080ba8c5 in __ast_pbx_run (c=0x82246b8) at pbx.c:2388 #10 0x080bb61f in pbx_thread (data=0x82246b8) at pbx.c:2601 #11 0x080f50b9 in dummy_start (data=0x8225060) at utils.c:545 #12 0xb7ee8240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #13 0xb7d133de in clone () from /lib/tls/i686/cmov/libc.so.6 bt full #0 0x080f3ecc in ast_copy_string (dst=0x0, src=0xb74bb795 "INBOX", size=80) at /home/patrick/asterisk-1.4.4/include/asterisk/strings.h:160 No locals. #1 0xb743f16d in imap_mailbox_name (spec=0xb6cc1d90 "o?È·¬#̶\"Ä\022\b\022", vms=0x0, box=0, use_folder=1) at app_voicemail.c:4614 tmp = "\a{ð·\020\034̶Pfñ·\b\000\000\000°`\035\b\001\000\000\000\000\000\000\000\001\000\000\000\000ðÿÿÿÿÿÿ\004\000\000\000\000i×·øh×·\000\000\000\000\200\006\000\000\000\000\000\000ød×·P\034̶Ü\033̶\000\020\000\000¨\202\"\bÜ\033̶äFзf\006\000\000èvÊ·\031\000\000\000\000 ]·\000\020\000\000ü\033̶\230\212Ê·¨\202\"\b\000 ]·\000\020\000\000ôO×·¨\202\"\b\001\000\000\000\024\034̶í¥Ê·¨\202\"\bôO×·ôO×·\000\000\000\000@\034̶¶qÊ·Øb#\b\000 ]·f\006\000\000ù²ð·f\006\000\000Øb#\b"... t = 0xb6cc1b6c "\a{ð·\020\034̶Pfñ·\b" left = 256 #2 0xb743746a in imap_store_file (dir=0xb6cc30cc "/var/spool/asterisk/voicemail/default/2500/unavail", mailboxuser=0xb6cc42d4 "2500", mailboxcontext=0xb6cc4284 "default", msgnum=-1, chan=0x82246b8, vmu=0xb6cc4284, fmt=0xb6cc1cc0 "gsm", duration=2, vms=0x0) at app_voicemail.c:2426 myserveremail = 0xb752bac0 "asterisk" fn = "/var/spool/asterisk/voicemail/default/2500/unavail/msg-001\000\000JL\023\bÃ\236Ê·Ã\236Ê·\000\000\000\000\000\000\000\000\016ÀÉ·Ã\236Ê·ML\023\b\002\000\000\000\016ÀÉ·ML\023\bML\023\b\002\000\000\000ôO×·KL\023\b\002\000\000\000\b%̶o?È·Ã\236Ê·KL\023\b\002\000\000\000\016ÀÉ·ßØ\023\bßØ\023\bÃ\236Ê·ôO×·Ã\236Ê·\001\000\000\000{5Ö·{5Ö·\a\000\000\000ôO×·\a\000\000\000¬%̶\214\037̶"... mailbox = "o?È·¬#̶\"Ä\022\b\022", '\0' , "8;È·¼\n\000\000\000\000\000\000`#̶\000\000\000\000\b$̶ô\"̶\000\000\000\000\001\000\000\000Ã\236Ê·\000\000\000\000ÿÿÿÿ>\000\000\000\000\000\000\0006L\023\b@$̶\005\000\000\000\002", '\0' , "\n\000\000\000\000\000\000\000ÿÿÿÿ'\000\000\0004Ä\022\b Ä\022\bô\"̶\000\000\000\000\002", '\0' , "\n\000\000\000ó\"̶", '\0' , "o? dÃ\236Ê·KL\023\b\002\000\000\000\000\000\000\000ÿÿÿÿ\004\000\000\0004L\023\b2L\023\b`"... stringp = 0x0 p = (FILE *) 0x82282a8 tmp = "/tmp/astmail-bwICCw", '\0' len = 1638 buf = (void *) 0x82362d8 str = {data = 0x82362d8, data1 = 0, size = 1638, chunk = 0x82362d8 "Date: Tue, 15 May 2007 16:58:10 -0400\r\nFrom: Asterisk PBX \r\nTo: \"Sadi de Sureault\" \r\nSubject: [PBX]: New message 0 in mailbox 2500\r\nMessage-ID: \r\nTo: \"Sadi de Sureault\" \r\nSubject: [PBX]: New message 0 in mailbox 2500\r\nMessage-ID: newpassword2 = '\0' prefile = "/var/spool/asterisk/voicemail/default/2500/unavail", '\0' buf = "\000\000\000\000ì/̶/ùÊ·Àd×·\017\000\000\0002748\004\000\000\000HI\027\b\b\000\000\000i~Ö·\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000p¬\"\bÿÿÿÿ\000\000\00022563]\217Ö·\000\000\000\000\000\000\000\000\002", '\0' , "t0̶Ã\236Ê·\000\000\000\000\000\000\000\000\016ÀÉ·ML\023\bML\023\b\002\000\000\000ôO×·KL\023\b\002\000\000\000X6̶o?È·Ã\236Ê·KL\023\b\002\000\000\000\016ÀÉ·ßØ\023\bßØ\023\bÃ\236Ê·ôO×·Ã\236Ê·\001\000\000\000{5Ö·{5Ö·\a\000\000\000ô"... bytes = 0 __PRETTY_FUNCTION__ = "vm_options" #5 0xb74467e5 in vm_execmain (chan=0x82246b8, data=0xb6ccb008) at app_voicemail.c:6668 res = 0 cmd = 48 valid = 1 u = (struct ast_module_user *) 0x822aa48 prefixstr = '\0' ext_context = '\0' box = 135504176 useadsi = 0 skipuser = 1 vms = {curbox = "INBOX", '\0' , username = "2500", '\0' , curdir = '\0' , vmbox = "vm-INBOX", '\0' , fn = '\0' , fn2 = '\0' , deleted = 0x822aa58, heard = 0x822aca0, curmsg = 0, lastmsg = -1, newmessages = 0, oldmessages = 0, starting = 1, repeats = 0, updated = 2, msgArray = {0 }, mailstream = 0x822ae80, vmArrayIndex = 0, imapuser = "sdess", '\0' , interactive = 1, quota_limit = 0, quota_usage = 0, persist_vms = 0x0} vmu = (struct ast_vm_user *) 0xb6cc4284 vmus = {context = "default", '\0' , mailbox = "2500", '\0' , password = "4321", '\0' , fullname = "Sadi de Sureault", '\0' , email = "sdess", '\0' , pager = '\0' , serveremail = '\0' , mailcmd = '\0' , language = '\0' , zonetag = '\0' , callback = '\0' , dialout = '\0' , uniqueid = '\0' , exit = '\0' , attachfmt = '\0' , flags = 2104, saydurationm = 2, maxmsg = 100, imapuser = "sdess", '\0' , imappassword = '\0' , volgain = 0, list = {next = 0x0}} context = 0xb6cc41c5 "default" silentexit = 0 flags = {flags = 0} record_gain = 0 '\0' play_auto = 0 play_folder = 0 deleted = 0 __PRETTY_FUNCTION__ = "vm_execmain" #6 0x080b5ee1 in pbx_exec (c=0x82246b8, app=0x81d61a8, data=0xb6ccb008) at pbx.c:532 res = -1228108336 saved_c_appl = 0x0 saved_c_data = 0x0 #7 0x080b9327 in pbx_extension_helper (c=0x82246b8, con=0x0, context=0x8224838 "sip-internal", exten=0x8224888 "7777", priority=1, label=0x0, callerid=0x8202180 "2400", action=E_SPAWN) at pbx.c:1833 e = (struct ast_exten *) 0x8218898 app = (struct ast_app *) 0x81d61a8 res = 8195840 q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x8224838 "sip-internal"} passdata = "2500@default", '\0' matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #8 0x080ba3f5 in ast_spawn_extension (c=0x82246b8, context=0x8224838 "sip-internal", exten=0x8224888 "7777", priority=1, callerid=0x8202180 "2400") at pbx.c:2288 No locals. #9 0x080ba8c5 in __ast_pbx_run (c=0x82246b8) at pbx.c:2388 dst_exten = '\0' , "TÙÊ·", '\0' , "\020\000\000\000Èd×·", '\0' , "À¶Ê·\000\000\000\000\f", '\0' , "ôO×·Àd×·±ü\001\000¨Ó̶þõÊ·Àd×·\f\000\000\000\000\000\000\000`P\"\b±ü\001\000PÃ\"\b\f\000\000\000ô\037ï·\000\000\000\000\000\017}\000èÓ̶9A\017\b" pos = 0 digit = 0 found = 1 res = 0 autoloopflag = 0 error = 0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #10 0x080bb61f in pbx_thread (data=0x82246b8) at pbx.c:2601 c = (struct ast_channel *) 0x82246b8 #11 0x080f50b9 in dummy_start (data=0x8225060) at utils.c:545 _buffer = {__routine = 0x8068667 , __arg = 0xb6ccdbb0, __canceltype = 0, __prev = 0x0} ret = (void *) 0x0 a = {start_routine = 0x80bb608 , data = 0x82246b8, name = 0x8225070 "pbx_thread", ' ' , "started at [ 2625] pbx.c ast_pbx_start()"} #12 0xb7ee8240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 No symbol table info available. #13 0xb7d133de in clone () from /lib/tls/i686/cmov/libc.so.6 No symbol table info available. thread apply all bt Thread 21 (process 2726): #0 0xb7eff410 in ?? () #1 0xbfc979b8 in ?? () #2 0x00000001 in ?? () #3 0xbfc97a3e in ?? () #4 0xb7eed82b in __read_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 #5 0x080fd7d1 in read_char (el=0x8174fb8, cp=0xbfc97a3e "\006") at read.c:296 #6 0x080fd8ce in el_getc (el=0x8174fb8, cp=0xbfc97a3e "\006") at read.c:347 #7 0x080fd67e in read_getcmd (el=0x8174fb8, cmdnum=0xbfc97a3f "", ch=0xbfc97a3e "\006") at read.c:243 #8 0x080fdb05 in el_gets (el=0x8174fb8, nread=0xbfc97d60) at read.c:443 #9 0x08070332 in main (argc=3, argv=0xbfc97f94) at asterisk.c:2954 #10 0xb7c5cea8 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #11 0x080578e1 in ?? () at ../sysdeps/i386/elf/start.S:119 Thread 20 (process 2729): #0 0xb7eff410 in ?? () #1 0xb7c45328 in ?? () #2 0xffffffff in ?? () #3 0x00000001 in ?? () #4 0xb7d09833 in poll () from /lib/tls/i686/cmov/libc.so.6 #5 0x0806a2bd in listener (unused=0x0) at asterisk.c:970 #6 0x080f50b9 in dummy_start (data=0x817c968) at utils.c:545 #7 0xb7ee8240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb7d133de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 19 (process 2730): #0 0xb7eff410 in ?? () #1 0xb7c093f8 in ?? () #2 0x00000005 in ?? () #3 0x00000000 in ?? () Thread 18 (process 2731): #0 0xb7eff410 in ?? () #1 0xb7bb50c8 in ?? () #2 0x00000000 in ?? () Thread 17 (process 2732): #0 0xb7eff410 in ?? () #1 0xb757ff98 in ?? () #2 0x000003e8 in ?? () #3 0x00000004 in ?? () #4 0xb7d09833 in poll () from /lib/tls/i686/cmov/libc.so.6 #5 0xb75f3153 in do_monitor (data=0x0) at chan_zap.c:6800 #6 0x080f50b9 in dummy_start (data=0x81ce7a0) at utils.c:545 #7 0xb7ee8240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb7d133de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 16 (process 2733): #0 0xb7eff410 in ?? () #1 0xb73b5268 in ?? () #2 0xb7d74ff4 in ?? () from /lib/tls/i686/cmov/libc.so.6 #3 0xb73b5254 in ?? () #4 0xb7cd59f6 in nanosleep () from /lib/tls/i686/cmov/libc.so.6 #5 0xb7cd581b in sleep () from /lib/tls/i686/cmov/libc.so.6 #6 0xb73b8aff in scan_thread (unused=0x0) at pbx_spool.c:437 #7 0x080f50b9 in dummy_start (data=0x81da430) at utils.c:545 #8 0xb7ee8240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #9 0xb7d133de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 15 (process 2734): #0 0xb7eff410 in ?? () #1 0xb71c4398 in ?? () #2 0x00000003 in ?? () #3 0x00000000 in ?? () Thread 14 (process 2735): #0 0xb7eff410 in ?? () #1 0xb7188398 in ?? () #2 0x00000003 in ?? () #3 0x00000000 in ?? () Thread 13 (process 2736): #0 0xb7eff410 in ?? () #1 0xb714c398 in ?? () #2 0x00000003 in ?? () #3 0x00000000 in ?? () Thread 12 (process 2737): #0 0xb7eff410 in ?? () #1 0xb7110398 in ?? () #2 0x00000003 in ?? () #3 0x00000000 in ?? () Thread 11 (process 2738): #0 0xb7eff410 in ?? () #1 0xb70d4398 in ?? () #2 0x00000001 in ?? () #3 0x00000000 in ?? () Thread 10 (process 2739): #0 0xb7eff410 in ?? () #1 0xb7098398 in ?? () #2 0x00000001 in ?? () #3 0x00000000 in ?? () Thread 9 (process 2740): #0 0xb7eff410 in ?? () #1 0xb705c398 in ?? () #2 0x00000001 in ?? () #3 0x00000000 in ?? () Thread 8 (process 2741): #0 0xb7eff410 in ?? () #1 0xb7020398 in ?? () #2 0x00000001 in ?? () #3 0x00000000 in ?? () Thread 7 (process 2742): #0 0xb7eff410 in ?? () #1 0xb6fe4398 in ?? () #2 0x00000001 in ?? () #3 0x00000000 in ?? () Thread 6 (process 2743): #0 0xb7eff410 in ?? () #1 0xb6fa8398 in ?? () #2 0x00000001 in ?? () #3 0x00000000 in ?? () Thread 5 (process 2744): #0 0xb7eff410 in ?? () #1 0xb6f6c3f0 in ?? () #2 0x00000045 in ?? () #3 0x00000000 in ?? () Thread 4 (process 2745): #0 0xb7eff410 in ?? () #1 0xb6f30388 in ?? () #2 0xffffffff in ?? () #3 0x00000002 in ?? () #4 0xb7d09833 in poll () from /lib/tls/i686/cmov/libc.so.6 #5 0x080a5d9a in ast_io_wait (ioc=0x81dfa68, howlong=-1) at io.c:266 #6 0xb71ec741 in network_thread (ignore=0x0) at chan_iax2.c:8123 #7 0x080f50b9 in dummy_start (data=0x81e1c10) at utils.c:545 #8 0xb7ee8240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #9 0xb7d133de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 3 (process 2746): #0 0xb7eff410 in ?? () #1 0xb6e22358 in ?? () #2 0x000003e8 in ?? () #3 0x00000001 in ?? () #4 0xb7d09833 in poll () from /lib/tls/i686/cmov/libc.so.6 #5 0x080a5d9a in ast_io_wait (ioc=0x81ed3a8, howlong=1000) at io.c:266 #6 0xb6e66b19 in do_monitor (data=0x0) at chan_sip.c:15121 #7 0x080f50b9 in dummy_start (data=0x8211d08) at utils.c:545 #8 0xb7ee8240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #9 0xb7d133de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 2 (process 2747): #0 0xb7eff410 in ?? () #1 0xb6d093e8 in ?? () #2 0xffffffff in ?? () #3 0x00000001 in ?? () #4 0xb7d09833 in poll () from /lib/tls/i686/cmov/libc.so.6 #5 0x0806eb2a in monitor_sig_flags (unused=0x0) at asterisk.c:2500 #6 0x080f50b9 in dummy_start (data=0x82202e8) at utils.c:545 #7 0xb7ee8240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb7d133de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 1 (process 2748): #0 0x080f3ecc in ast_copy_string (dst=0x0, src=0xb74bb795 "INBOX", size=80) at /home/patrick/asterisk-1.4.4/include/asterisk/strings.h:160 #1 0xb743f16d in imap_mailbox_name (spec=0xb6cc1d90 "o?È·¬#̶\"Ä\022\b\022", vms=0x0, box=0, use_folder=1) at app_voicemail.c:4614 #2 0xb743746a in imap_store_file (dir=0xb6cc30cc "/var/spool/asterisk/voicemail/default/2500/unavail", mailboxuser=0xb6cc42d4 "2500", mailboxcontext=0xb6cc4284 "default", msgnum=-1, chan=0x82246b8, vmu=0xb6cc4284, fmt=0xb6cc1cc0 "gsm", duration=2, vms=0x0) at app_voicemail.c:2426 #3 0xb744b936 in play_record_review (chan=0x82246b8, playfile=0xb74bce60 "vm-rec-unv", recordfile=0xb6cc30cc "/var/spool/asterisk/voicemail/default/2500/unavail", maxtime=0, fmt=0xb752bc60 "gsm", outsidecaller=0, vmu=0xb6cc4284, duration=0xb6cc416c, unlockdir=0x0, record_gain=0 '\0', vms=0x0) at app_voicemail.c:8018 #4 0xb744374d in vm_options (chan=0x82246b8, vmu=0xb6cc4284, vms=0xb6cc4788, fmtc=0xb752bc60 "gsm", record_gain=0 '\0') at app_voicemail.c:5833 #5 0xb74467e5 in vm_execmain (chan=0x82246b8, data=0xb6ccb008) at app_voicemail.c:6668 #6 0x080b5ee1 in pbx_exec (c=0x82246b8, app=0x81d61a8, data=0xb6ccb008) at pbx.c:532 #7 0x080b9327 in pbx_extension_helper (c=0x82246b8, con=0x0, context=0x8224838 "sip-internal", exten=0x8224888 "7777", priority=1, label=0x0, callerid=0x8202180 "2400", action=E_SPAWN) at pbx.c:1833 #8 0x080ba3f5 in ast_spawn_extension (c=0x82246b8, context=0x8224838 "sip-internal", exten=0x8224888 "7777", priority=1, callerid=0x8202180 "2400") at pbx.c:2288 #9 0x080ba8c5 in __ast_pbx_run (c=0x82246b8) at pbx.c:2388 #10 0x080bb61f in pbx_thread (data=0x82246b8) at pbx.c:2601 #11 0x080f50b9 in dummy_start (data=0x8225060) at utils.c:545 #12 0xb7ee8240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #13 0xb7d133de in clone () from /lib/tls/i686/cmov/libc.so.6