Core was generated by `/usr/sbin/asterisk -f -C /etc/asterisk3/asterisk.conf -vvvg -c'. Program terminated with signal 11, Segmentation fault. #0 0x000000000054a772 in __ast_str_helper (buf=0x7fe43849a8f6, max_len=0, append=1, fmt=0x7fe66c8901b3 "%s", ap=0x7fe638110e90) at strings.c:60 60 int offset = (append && (*buf)->__AST_STR_LEN) ? (*buf)->__AST_STR_USED : 0; Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-8.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64 keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.1.x86_64 libcom_err-1.41.12-7.el6.x86_64 libcurl-7.19.7-26.el6_1.2.x86_64 libgcc-4.4.5-6.el6.x86_64 libidn-1.18-2.el6.x86_64 libselinux-2.0.94-5.el6.x86_64 libssh2-1.2.2-7.el6.x86_64 libstdc++-4.4.5-6.el6.x86_64 libtool-ltdl-2.2.6-15.5.el6.x86_64 libxml2-2.7.6-1.el6.x86_64 ncurses-libs-5.7-3.20090208.el6.x86_64 nspr-4.8.7-1.el6.x86_64 nss-3.12.9-9.el6.x86_64 nss-softokn-freebl-3.12.9-3.el6.x86_64 nss-util-3.12.9-1.el6.x86_64 openldap-2.4.23-15.el6_1.1.x86_64 openssl-1.0.0-10.el6_1.4.x86_64 unixODBC-2.2.14-11.el6.x86_64 zlib-1.2.3-26.el6.x86_64 (gdb) bt #0 0x000000000054a772 in __ast_str_helper (buf=0x7fe43849a8f6, max_len=0, append=1, fmt=0x7fe66c8901b3 "%s", ap=0x7fe638110e90) at strings.c:60 #1 0x000000000055c4e5 in ast_str_append_va (buf=0x7fe43849a8f6, max_len=0, fmt=0x7fe66c8901b3 "%s", ap=0x7fe638110e90) at /usr/src/asterisk/include/asterisk/strings.h:787 #2 0x000000000055c7c2 in ast_str_append (buf=0x7fe43849a8f6, max_len=0, fmt=0x7fe66c8901b3 "%s") at /usr/src/asterisk/include/asterisk/strings.h:859 #3 0x00007fe66c88d8e5 in strreplace (chan=0x7fe634549e28, cmd=0x7fe638111080 "STRREPLACE", data=0x7fe43849a8f7 "", buf=0x7fe43849a8f6, len=140618173622517) at func_strings.c:936 #4 0x000000000050268f in ast_func_read (chan=0x7fe634549e28, function=0x7fe638112160 "STRREPLACE(CARRIERLIST,0000,1294)", workspace=0x7fe638111150 "", len=4096) at pbx.c:3539 #5 0x00000000005038cc in pbx_substitute_variables_helper_full (c=0x7fe634549e28, headp=0x7fe63454a1e0, cp1=0x1ce62d0 "CARRIERLIST=${STRREPLACE(CARRIERLIST,${OLDEXTEN},${EXTEN:7:10})}", cp2=0x7fe63811648c "", count=8179, used=0x7fe6381142c8) at pbx.c:3913 #6 0x0000000000503e34 in pbx_substitute_variables_helper (c=0x7fe634549e28, cp1=0x1ce62d0 "CARRIERLIST=${STRREPLACE(CARRIERLIST,${OLDEXTEN},${EXTEN:7:10})}", cp2=0x7fe638116480 "CARRIERLIST=", count=8191) at pbx.c:4009 #7 0x0000000000503f43 in pbx_substitute_variables (passdata=0x7fe638116480 "CARRIERLIST=", datalen=8192, c=0x7fe634549e28, e=0x1ce6600) at pbx.c:4034 #8 0x00000000005041ba in pbx_extension_helper (c=0x7fe634549e28, con=0x0, context=0x7fe63454a380 "defaultproc", exten=0x7fe63454a3d0 "12126001294", priority=9, label=0x0, callerid=0x7fe438922f10 "2074932620", action=E_SPAWN, found=0x7fe638118b70, combined_find_spawn=1) at pbx.c:4096 #9 0x00000000005060e3 in ast_spawn_extension (c=0x7fe634549e28, context=0x7fe63454a380 "defaultproc", exten=0x7fe63454a3d0 "12126001294", priority=9, callerid=0x7fe438922f10 "2074932620", found=0x7fe638118b70, combined_find_spawn=1) at pbx.c:4744 #10 0x0000000000506b31 in __ast_pbx_run (c=0x7fe634549e28, args=0x0) at pbx.c:4842 #11 0x00000000005087ad in pbx_thread (data=0x7fe634549e28) at pbx.c:5177 #12 0x000000000055d2b0 in dummy_start (data=0x7fe6346f3d90) at utils.c:1004 #13 0x0000003c080077e1 in start_thread () from /lib64/libpthread.so.0 #14 0x0000003c074e577d in clone () from /lib64/libc.so.6 (gdb) bt full #0 0x000000000054a772 in __ast_str_helper (buf=0x7fe43849a8f6, max_len=0, append=1, fmt=0x7fe66c8901b3 "%s", ap=0x7fe638110e90) at strings.c:60 res = 940642136 need = 32742 offset = 940642176 aq = {{gp_offset = 7, fp_offset = 0, overflow_arg_area = 0x503479, reg_save_area = 0x4}} __PRETTY_FUNCTION__ = "__ast_str_helper" #1 0x000000000055c4e5 in ast_str_append_va (buf=0x7fe43849a8f6, max_len=0, fmt=0x7fe66c8901b3 "%s", ap=0x7fe638110e90) at /usr/src/asterisk/include/asterisk/strings.h:787 No locals. #2 0x000000000055c7c2 in ast_str_append (buf=0x7fe43849a8f6, max_len=0, fmt=0x7fe66c8901b3 "%s") at /usr/src/asterisk/include/asterisk/strings.h:859 res = 32742 ap = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x7fe638110f80, reg_save_area = 0x7fe638110eb0}} #3 0x00007fe66c88d8e5 in strreplace (chan=0x7fe634549e28, cmd=0x7fe638111080 "STRREPLACE", data=0x7fe43849a8f7 "", buf=0x7fe43849a8f6, len=140618173622517) at func_strings.c:936 starts = 0x7fe638110fa0 varsubstr = 0x7fe638110f80 "${CARRIERLIST}" count_len = 6 p = 0x7fe43849a8b8 "SIP/g729.216.234.77.102/2126" find_size = 4 max_matches = 68 x = 0 str = 0x7fe43849a8a0 args = {argc = 3, argv = 0x7fe638110fe0, varname = 0x7fe63811108b "CARRIERLIST", find_string = 0x7fe638111097 "0000", replace_string = 0x7fe63811109c "1294", max_replacements = 0x0} __PRETTY_FUNCTION__ = "strreplace" #4 0x000000000050268f in ast_func_read (chan=0x7fe634549e28, function=0x7fe638112160 "STRREPLACE(CARRIERLIST,0000,1294)", workspace=0x7fe638111150 "", len=4096) at pbx.c:3539 str = 0x7fe4393e9e50 copy = 0x7fe638111080 "STRREPLACE" args = 0x7fe63811108b "CARRIERLIST" acfptr = 0x7fe66ca919a0 res = 32742 u = 0x7fe438231070 __PRETTY_FUNCTION__ = "ast_func_read" #5 0x00000000005038cc in pbx_substitute_variables_helper_full (c=0x7fe634549e28, headp=0x7fe63454a1e0, cp1=0x1ce62d0 "CARRIERLIST=${STRREPLACE(CARRIERLIST,${OLDEXTEN},${EXTEN:7:10})}", cp2=0x7fe63811648c "", count=8179, used=0x7fe6381142c8) at pbx.c:3913 cp4 = 0x0 tmp = 0x1ce62d0 "CARRIERLIST=${STRREPLACE(CARRIERLIST,${OLDEXTEN},${EXTEN:7:10})}" whereweare = 0x1ce6310 "" orig_cp2 = 0x7fe638116480 "CARRIERLIST=" length = 0 offset = 0 offset2 = 2147483647 isfunction = 1 workspace = 0x7fe638111150 "" ltmp = 0x7fe638112160 "STRREPLACE(CARRIERLIST,0000,1294)" var = 0x7fe638113170 "STRREPLACE(CARRIERLIST,${OLDEXTEN},${EXTEN:7:10})" nextvar = 0x1ce62dc "${STRREPLACE(CARRIERLIST,${OLDEXTEN},${EXTEN:7:10})}" nextexp = 0x0 nextthing = 0x1ce62dc "${STRREPLACE(CARRIERLIST,${OLDEXTEN},${EXTEN:7:10})}" vars = 0x7fe638112160 "STRREPLACE(CARRIERLIST,0000,1294)" vare = 0x1ce6310 "" pos = 12 ---Type to continue, or q to quit--- brackets = 0 needsub = 2 len = 49 __PRETTY_FUNCTION__ = "pbx_substitute_variables_helper_full" #6 0x0000000000503e34 in pbx_substitute_variables_helper (c=0x7fe634549e28, cp1=0x1ce62d0 "CARRIERLIST=${STRREPLACE(CARRIERLIST,${OLDEXTEN},${EXTEN:7:10})}", cp2=0x7fe638116480 "CARRIERLIST=", count=8191) at pbx.c:4009 used = 140627632793232 #7 0x0000000000503f43 in pbx_substitute_variables (passdata=0x7fe638116480 "CARRIERLIST=", datalen=8192, c=0x7fe634549e28, e=0x1ce6600) at pbx.c:4034 tmp = 0x1ce62dc "${STRREPLACE(CARRIERLIST,${OLDEXTEN},${EXTEN:7:10})}" #8 0x00000000005041ba in pbx_extension_helper (c=0x7fe634549e28, con=0x0, context=0x7fe63454a380 "defaultproc", exten=0x7fe63454a3d0 "12126001294", priority=9, label=0x0, callerid=0x7fe438922f10 "2074932620", action=E_SPAWN, found=0x7fe638118b70, combined_find_spawn=1) at pbx.c:4096 e = 0x1ce6600 app = 0x1c7ee40 res = 878780336 q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x7fe63454a380 "defaultproc"} passdata = "CARRIERLIST=\000LIST,Z,NANI,CLIST,PLIST,PROMPT,TO,OLDEXTEN)=SIP/g729.216.234.77.102/2126000000-SIP/g729.69.30.55.34/12126000000-,2,2074932620,a22b1212600_c0.004490d0.004490e0f12126000000x0,g96h1212600_i0"... matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #9 0x00000000005060e3 in ast_spawn_extension (c=0x7fe634549e28, context=0x7fe63454a380 "defaultproc", exten=0x7fe63454a3d0 "12126001294", priority=9, callerid=0x7fe438922f10 "2074932620", found=0x7fe638118b70, combined_find_spawn=1) at pbx.c:4744 No locals. #10 0x0000000000506b31 in __ast_pbx_run (c=0x7fe634549e28, args=0x0) at pbx.c:4842 digit = 0 invalid = 0 timeout = 0 dst_exten = '\000' "\330, \377\377\377\377\377\377\377\001\000\000\000\000\000\000\000\340\377\377\377\377\377\377\377\001\000\000\000\000\000\000\000\350\377\377\377\377\377\377\377\001\000\000\000\000\000\000\000\360\377\377\377\377\377\377\377\001\000\000\000\000\000\000\000\370\377\377\377\377\377\377\377\001", '\000' , "@\001\000\000\000\000\000\000\a", '\000' , "\001\000\000\000\000\000\000\000\210y\000\b<", '\000' "\370, \377\377\377\377\377\377\377\001\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000\033\377\001", '\000' , " \215\021\070\346\177\000\000Ћ\021\070\346\177\000\000\020\215\021\070\346\177\000\000p\235\021\070\346\177\000" pos = 0 found = 1 res = 0 autoloopflag = 0 error = 0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #11 0x00000000005087ad in pbx_thread (data=0x7fe634549e28) at pbx.c:5177 c = 0x7fe634549e28 #12 0x000000000055d2b0 in dummy_start (data=0x7fe6346f3d90) at utils.c:1004 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, 6514795899261446011, 140627632793232, 140626759883200, 4, 7, 6514795899236280187, -6510722014329673861}, __mask_was_saved = 0}}, __pad = {0x7fe638118e90, 0x0, 0x7fe638119a10, 0x0}} __cancel_routine = 0x436365 __cancel_arg = 0x7fe638119700 not_first_call = 0 ret = 0x3c07785858 a = {start_routine = 0x508788 , data = 0x7fe634549e28, name = 0x7fe634242750 "pbx_thread", ' ' , "started at [ 5203] pbx.c ast_pbx_start()"} #13 0x0000003c080077e1 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #14 0x0000003c074e577d in clone () from /lib64/libc.so.6 No symbol table info available. (gdb)