[Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `/usr/sbin/asterisk'. Program terminated with signal 11, Segmentation fault. #0 0x00007f5b80f0c8e1 in __strlen_sse2_pminub () from /lib64/libc.so.6 #0 0x00007f5b80f0c8e1 in __strlen_sse2_pminub () from /lib64/libc.so.6 No symbol table info available. #1 0x00000000004d4aa8 in ast_variable_new (name=0x7f5ae41ef8f2 "priority", value=0x0, filename=0x6280f7 "") at config.c:290 variable = 0x7f5b548441a0 name_len = 9 val_len = 2 fn_len = 40 __PRETTY_FUNCTION__ = "ast_variable_new" #2 0x00000000004dbfa1 in realtime_arguments_to_fields2 (ap=0x7f5ae0a6f710, skip=-1, result=0x7f5ae0a6f728) at config.c:3083 field = 0x7f5b548441a0 first = 0x7f5b54cf58a0 fields = 0x7f5b548441a0 newparam = 0x7f5ae41ef8f2 "priority" newval = 0x0 #3 0x00000000004dce72 in ast_store_realtime (family=0x7f5ae41ef7f3 "voicemail_data") at config.c:3411 fields = 0x0 ap = {{gp_offset = 48, fp_offset = 48, overflow_arg_area = 0x7f5ae0a6f838, reg_save_area = 0x7f5ae0a6f730}} #4 0x00007f5ae41c90b0 in copy_plain_file (frompath=0x7f5ae0a73960 "/var/spool/asterisk/voicemail/local/5312/INBOX/msg0000", topath=0x7f5ae0a72960 "/var/spool/asterisk/voicemail/local/5312/Old/msg0000") at app_voicemail.c:4652 frompath2 = "/var/spool/asterisk/voicemail/local/5312/INBOX/msg0000.txt", '\000' ... topath2 = "/var/spool/asterisk/voicemail/local/5312/Old/msg0000.txt", '\000' tmp = 0x0 var = 0x7f5b5407cec0 origmailbox = 0x7f5b54207abc "5312" context = 0x7f5b5489a388 "macro-do-voicemail" macrocontext = 0x7f5b551dc60d "outgoing-via-server" exten = 0x7f5b54b87f36 "s" priority = 0x0 callerchan = 0x7f5b5410b6db "SIP/demon-0000002c" callerid = 0x7f5b54891239 "\"demon\" <9000>" origdate = 0x7f5b54c7bd09 "Sun May 17 08:16:22 AM UTC 201" origtime = 0x0 category = 0x7f5b548dae39 "" duration = 0x7f5b5409fb99 "7" #5 0x00007f5ae41d1b11 in save_to_folder (vmu=0x7f5ae0a75b80, vms=0x7f5ae0a75f90, msg=0, box=1, newmsg=0x0, move=0) at app_voicemail.c:7103 dir = 0x7f5ae0a76080 "/var/spool/asterisk/voicemail/local/5312/INBOX" username = 0x7f5ae0a75fe0 "5312" context = 0x7f5ae0a75b80 "local" sfn = "/var/spool/asterisk/voicemail/local/5312/INBOX/msg0000", '\000' dfn = "/var/spool/asterisk/voicemail/local/5312/Old/msg0000", '\000' ddir = "/var/spool/asterisk/voicemail/local/5312/Old\000\177\000\000\000\000\000\000\000\000\000\000\327j\362\200[\177\000\000\005\000\000\000[\177\000\000\v\000\000\000\000\000\000\000\331j\362\200[\177\000\000 \247\340Z\177\000\000`\037\247\340Z\177\000\000\327j\362\200[\177\000\000\005\000\000\000[\177\000\000\v\000\000\000\000\000\000\000\030\000\000\000\060\000\000\000\220 \247\340Z\177\000\000\320\037\247\340Z\177\000\000P\033\247\340Z\177\000\000\327j\362\200[\177\000\000\230\033\247\340Z\177\000\000\030\000\000\000\060\000\000\000\300 \247\340Z\177\000\000\030\000\000\000\060\000\000\000"... dbox = 0x7f5ae41eef06 "Old" x = 0 i = 0 #6 0x00007f5ae41d7e60 in close_mailbox (vms=0x7f5ae0a75f90, vmu=0x7f5ae0a75b80) at app_voicemail.c:8921 x = 0 last_msg_idx = 0 res = 0 nummsg = -525902976 fn2 = '\000' , "\060J\247\340Z\177\000\000\f\001\000\000\000\000\000\000l\002\272\200[\177\000\000\340\251\211\201[\177\000\000\370\377\377\377\377\377\377\377PK\247\340Z\177\000\000\220+\272\200[\177\000\000\304/\272\200[\177\000\000\231\025\272\200[\177\000\000\240K\247\340Z\177\000\000PJ\247\340Z\177\000\000\330\060\272\200[\177\000\000\247\000\000\000\000\000\000\000\227\000\000\000\000\000\000\000\b", '\000' , "p\377\247\340Z\177\000\000\000\000\000\000\000\000\000\000\320J\247\340Z\177\000\000\f\001\000\000\000\000\000\000`\240"... __PRETTY_FUNCTION__ = "close_mailbox" #7 0x00007f5ae41e1758 in vm_execmain (chan=0x7f5b5482f038, data=0x7f5ae0a7a400 "5312@local") at app_voicemail.c:11876 res = -1 cmd = -1 valid = 1 prefixstr = '\000' ext_context = '\000' box = -525884784 useadsi = 0 skipuser = 1 vms = {curbox = "INBOX", '\000' , username = "5312", '\000' , context = '\000' , curdir = "/var/spool/asterisk/voicemail/local/5312/INBOX", '\000' , vmbox = "vm-INBOX", '\000' , fn = "/var/spool/asterisk/voicemail/local/5312/INBOX/msg0000", '\000' , intro = '\000' , deleted = 0x7f5b548027c0, heard = 0x7f5b54a61250, dh_arraysize = 100, curmsg = -1, lastmsg = 0, newmessages = 1, oldmessages = 0, urgentmessages = 0, starting = 0, repeats = 0} vmu = 0x7f5ae0a75b80 vmus = {context = "local", '\000' , mailbox = "5312", '\000' , password = '\000' , fullname = '\000' , email = 0x7f5b54ac8230 "", emailsubject = 0x0, emailbody = 0x0, pager = '\000' , serveremail = '\000' , language = '\000' , zonetag = "Moscow", '\000' , locale = "ru_RU.UTF-8\000\000\000\000\000\000\000\000", callback = "context-user", '\000' , dialout = "context-user", '\000' , uniqueid = "5312", '\000' , exit = '\000' , attachfmt = '\000' , flags = 65660, saydurationm = 2, minsecs = 0, maxmsg = 100, maxdeletedmsg = 0, maxsecs = 300, passwordlocation = 0, volgain = 0, list = {next = 0x0}} context = 0x7f5ae0a75a05 "local" silentexit = 0 flags = {flags = 0} record_gain = 0 '\000' play_auto = 0 play_folder = 0 in_urgent = 0 __PRETTY_FUNCTION__ = "vm_execmain" #8 0x0000000000561505 in pbx_exec (c=0x7f5b5482f038, app=0x3979c70, data=0x7f5ae0a7a400 "5312@local") at pbx.c:1720 res = 1 u = 0x7f5b544c1f30 saved_c_appl = 0x24045e0 "Macro" saved_c_data = 0x7f5ae0a7d620 "check-mail" __PRETTY_FUNCTION__ = "pbx_exec" #9 0x000000000056b66f in pbx_extension_helper (c=0x7f5b5482f038, con=0x0, context=0x7f5b5482f9f0 "macro-check-mail", exten=0x7f5b5482fa40 "s", priority=7, label=0x0, callerid=0x7f5b54b6ab20 "5312", action=E_SPAWN, found=0x7f5ae0a7ca2c, combined_find_spawn=1) at pbx.c:4992 e = 0x7f5b54724fe0 app = 0x3979c70 substitute = 0x7f5ae0a7a380 "${agi_mailbox}@local" res = 32603 q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x7f5b5482f9f0 "macro-check-mail"} passdata = "5312@local\000php,incoming/vmail_check,3828,2142\000\377\377\200\245\247\340Z\177\000\000\220+\272\200[\177\000\000\304/\272\200[\177\000\000\231\025\272\200[\177", '\000' , "\330\060\272\200[\177\000\000\247\000\000\000\000\000\000\000\227\000\000\000\000\000\000\000`t\026\201[\177", '\000' , "\001\004", '\000' , "\245\247\340Z\177\000\000\f\001\000\000\000\000\000\000`\240?[\177\000\000\340\251\211\201[\177\000\000\000\000\000\000\000\000\000\000"... matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #10 0x000000000056e442 in ast_spawn_extension (c=0x7f5b5482f038, context=0x7f5b5482f9f0 "macro-check-mail", exten=0x7f5b5482fa40 "s", priority=7, callerid=0x7f5b54b6ab20 "5312", found=0x7f5ae0a7ca2c, combined_find_spawn=1) at pbx.c:6033 No locals. #11 0x00007f5ae7ad43f4 in _macro_exec (chan=0x7f5b5482f038, data=0x7f5ae0a7d620 "check-mail", exclusive=0) at app_macro.c:417 c = 0x7f5b547aa390 e = 0x7f5b54724fe0 foundx = 1 s = 0x7f5b548c7f3c "1" tmp = 0x7f5ae0a7c960 "check-mail" cur = 0x0 rest = 0x0 macro = 0x7f5ae0a7c960 "check-mail" fullmacro = "macro-check-mail\000?\340p\005\000\000\253ac\000\000\000\000\000QTF\000\000\000\000\000=\366R\000\000\000\000\000\205\347R\000\000\000\000\000\371\265R\000\000\000\000\000\310\024V\000\000\000\000\000o\266V\000\000\000\000" varname = "\253ac\000\000\000\000\000\020\367\212\000\000\000\000\000 a\210T[\177\000\000 a\210T[\177\000\000\240\324\247\340Z\177\000\000u\370R\000\000\000\000\000`+\313\000\000\000\000\000 a\210T[\177\000\000\300\324\247\340Z\177\000\000\020\367\212\000\000\000\000" runningapp = "VoicemailMain\000\000\000\000?\340Z\177\000\000\367t^\000\000\000\000\000H\016\000\000\000\000\000\000\240E\213\000\000\000\000\000\r\000\000\000 \000\000\000 a\210T[\177\000\000 ?\340Z\177\000\000\361\223^\000\000\000\000" runningdata = "${agi_mailbox}@local\000 \"\" ]?hangup\000k,${fromUserId},${fromDeviceId}", '\000' , "\320\376\247\340Z\177\000\000\300?\340Z\177", '\000' , "\260\375\247\340Z\177\000\000\270\375\247\340Z\177\000\000\320\372\247\340Z\177\000\000\330\372\247\340Z\177\000\000x\377\247\340Z\177\000\000\000\000\000\000\000\000\000\000\200\377\247\340Z\177\000\000\275\372\351\200[\177", '\000' ... oldargs = {0x0 } argc = 1 x = 5433293 res = 0 oldexten = "0101", '\000' oldpriority = 1 gosub_level = 0 pc = "1\000\211\201[\177\000\000\000\000\000\000\000\000\000\000h\262?[\177\000\000\226\245\355\200[\177\000\000\f\001\000\000\000\000\000\000\001\000\000\000[\177\000\000 \021\272\200[\177\000\000\220?\340Z\177\000\000\000\000\000\000\000\000\000\000\360×\340Z\177\000" depthc = "1\000\000\000\000\000\000\000`\240?" oldcontext = "service-int", '\000' inhangupc = 0x0 offset = -1 depth = 0 maxdepth = 7 setmacrocontext = 1 autoloopflag = 512 inhangup = 0 tmp_subst = 0x7f5b54c7eaf0 save_macro_exten = 0x0 save_macro_context = 0x0 save_macro_priority = 0x0 save_macro_offset = 0x0 save_in_subroutine = 0 macro_store = 0x7f5b54a389c0 __PRETTY_FUNCTION__ = "_macro_exec" #12 0x00007f5ae7ad5579 in macro_exec (chan=0x7f5b5482f038, data=0x7f5ae0a7d620 "check-mail") at app_macro.c:587 No locals. #13 0x0000000000561505 in pbx_exec (c=0x7f5b5482f038, app=0x2404580, data=0x7f5ae0a7d620 "check-mail") at pbx.c:1720 res = 1 u = 0x7f5b544d39d0 saved_c_appl = 0x0 saved_c_data = 0x0 __PRETTY_FUNCTION__ = "pbx_exec" #14 0x000000000056b66f in pbx_extension_helper (c=0x7f5b5482f038, con=0x0, context=0x7f5b5482f9f0 "macro-check-mail", exten=0x7f5b5482fa40 "s", priority=1, label=0x0, callerid=0x7f5b54b6ab20 "5312", action=E_SPAWN, found=0x7f5ae0a7fcd4, combined_find_spawn=1) at pbx.c:4992 e = 0x7f5b54c65790 app = 0x2404580 substitute = 0x0 res = 32602 q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x7f5b5482f9f0 "macro-check-mail"} passdata = "check-mail\000,0101,1\000\065\067\000/logOutgoing,,,al,u)=[2015-05-20 00:05:52] Outgoing from '5312' (ip '213.230.75.77', deviceId '2142') to '0101' domain ''. Channel: 'SIP/5312-0000090a'\000stats-before-caller,s,1)\000\000"... matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #15 0x000000000056e442 in ast_spawn_extension (c=0x7f5b5482f038, context=0x7f5b5482f9f0 "macro-check-mail", exten=0x7f5b5482fa40 "s", priority=1, callerid=0x7f5b54b6ab20 "5312", found=0x7f5ae0a7fcd4, combined_find_spawn=1) at pbx.c:6033 No locals. #16 0x000000000056f985 in __ast_pbx_run (c=0x7f5b5482f038, args=0x0) at pbx.c:6450 digit = 0 invalid = 0 timeout = 0 dst_exten = '\000' , "\360\373\247\340Z\177\000\000 \000\000\000\000\000\000\000\000'\213\026[\177\000\000\367t^\000\000\000\000\000H\016\000\000\000\000\000\000\240E\213\000\000\000\000\000 \374\247\340Z\177\000\000\367t^\000\000\000\000\000H\016\000\000\000\000\000\000\240E\213\000\000\000\000\000\a\000\000\000 \000\000\000 a\210T[\177\000\000@\374\247\340Z\177\000\000\361\223^\000\000\000\000\000K\257`\000\000\000\000\000\220z\212\000\000\000\000\000 a\210T[\177\000\000 a\210T[\177\000\000\300\375\247\340Z\177\000\000"... pos = 0 found = 1 res = 0 autoloopflag = 0 error = 0 pbx = 0x7f5b54502a10 callid = 0x0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #17 0x00000000005710e6 in pbx_thread (data=0x7f5b5482f038) at pbx.c:6770 c = 0x7f5b5482f038 #18 0x00000000005ea508 in dummy_start (data=0x7f5b54502a10) at utils.c:1237 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {140028292892416, 4615854584809342573, 140029196969728, 0, 140028292893120, 17, 4615854584832411245, -4703149188290099603}, __mask_was_saved = 0}}, __pad = {0x7f5ae0a7fef0, 0x0, 0x1, 0x7f5b81aa66e8 <__pthread_keys+1032>}} __cancel_routine = 0x44f0d7 __cancel_arg = 0x7f5ae0a80700 __not_first_call = 0 ret = 0x7f5b81164870 <__elf_set___libc_thread_subfreeres_element___rpc_thread_destroy__> a = {start_routine = 0x5710c1 , data = 0x7f5b5482f038, name = 0x7f5b5475c0b0 "pbx_thread", ' ' , "started at [ 6796] pbx.c ast_pbx_start()"} lock_info = 0x7f5b54886120 mutex_attr = {__size = "\001\000\000", __align = 1} #19 0x00007f5b81895ce2 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #20 0x00007f5b80e9fabd in clone () from /lib64/libc.so.6 No symbol table info available.