Just looking at the entries in the dump, I would advise you to check the length of the database fields and compare them with the length of the fields in asterisk. I suspect that there is an overlay. The last two dump are chrashes in free() , these kind only happens with storage overlays.<br>
<br>Nico<br><br><div class="gmail_quote">2009/12/18 postalforall <span dir="ltr"><<a href="mailto:postalforall@gmail.com">postalforall@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I am using Asterisk 1.6.1.11 and having its configuration stored in MySQL. With no configuration reload, it is running well with no problem.<br>
<br>
However, when there is a change to configuration as stored in MySQL and I issue a command "sudo asterisk -rx reload", Asterisk crashes. On rare occasion, this goes through fine.<br>
<br>
I have captured the core dumps in the attached file. There are 6 "where" traces that I captured. All showed different locations where the crash occurred. I am sure it must have something to do with the database configuration that trigger this but from the trace I just cannot figure it out.<br>
<br>
Can someone help out on this?<br>
<br>
With regards,<br>
<br>
oeo<br>
<br>****************************DUMP 1********************************<br>
#0 0x00bf9422 in __kernel_vsyscall ()<br>
#1 0x0013a4d1 in raise () from /lib/tls/i686/cmov/libc.so.6<br>
#2 0x0013d932 in abort () from /lib/tls/i686/cmov/libc.so.6<br>
#3 0x00170ee5 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#4 0x0017aff1 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#5 0x0017dbb3 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#6 0x0017f009 in calloc () from /lib/tls/i686/cmov/libc.so.6<br>
#7 0x081544d2 in _ast_calloc (mgr=0x5f3, pool_head=0x9bc7598, needed=256,<br>
file=0x791a82 "chan_sip.c", lineno=7064, func=0x7a4a8e "sip_register")<br>
at /home/user/Asterisk/asterisk-1.6.1.11/include/asterisk/utils.h:457<br>
#8 add_string_pool (mgr=0x5f3, pool_head=0x9bc7598, needed=256, file=0x791a82 "chan_sip.c",<br>
lineno=7064, func=0x7a4a8e "sip_register") at utils.c:1488<br>
#9 __ast_string_field_init (mgr=0x5f3, pool_head=0x9bc7598, needed=256,<br>
file=0x791a82 "chan_sip.c", lineno=7064, func=0x7a4a8e "sip_register") at utils.c:1530<br>
#10 0x0073b8be in sip_register (value=<value optimized out>, lineno=<value optimized out>)<br>
at chan_sip.c:7064<br>
#11 0x00767078 in reload_config (reason=<value optimized out>) at chan_sip.c:23639<br>
#12 0x007679a3 in sip_do_reload (data=0x0) at chan_sip.c:24422<br>
#13 do_monitor (data=0x0) at chan_sip.c:21359<br>
#14 0x08152b3b in dummy_start (data=0x9b8e6e0) at utils.c:968<br>
#15 0x0037480e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0<br>
#16 0x001dc7ee in clone () from /lib/tls/i686/cmov/libc.so.6<br>
<br>
<br>
****************************DUMP 2********************************<br>
#0 0x0020d422 in __kernel_vsyscall ()<br>
#1 0x003164d1 in raise () from /lib/tls/i686/cmov/libc.so.6<br>
#2 0x00319932 in abort () from /lib/tls/i686/cmov/libc.so.6<br>
#3 0x0034cee5 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#4 0x00356ff1 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#5 0x00359bb3 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#6 0x0035b009 in calloc () from /lib/tls/i686/cmov/libc.so.6<br>
#7 0x080a5709 in _ast_calloc (name=0xb7051bbc "features.conf",<br>
value=0xb7051bcd "mysql,general,ast_config", filename=0x817983d "")<br>
at /home/user/Asterisk/asterisk-1.6.1.11/include/asterisk/utils.h:457<br>
#8 ast_variable_new (name=0xb7051bbc "features.conf",<br>
value=0xb7051bcd "mysql,general,ast_config", filename=0x817983d "") at config.c:229<br>
#9 0x080aa412 in process_text_line (database=0xb705431c "\364\277B",<br>
table=0xb705421c "\220G\005\267\v", filename=0x81834da "extconfig.conf", cfg=0x9892a48,<br>
flags=..., suggested_include_file=0x817983d "", who_asked=0x8183393 "extconfig")<br>
at config.c:1144<br>
#10 config_text_file_load (database=0xb705431c "\364\277B",<br>
table=0xb705421c "\220G\005\267\v", filename=0x81834da "extconfig.conf", cfg=0x9892a48,<br>
flags=..., suggested_include_file=0x817983d "", who_asked=0x8183393 "extconfig")<br>
at config.c:1402<br>
#11 0x080a7493 in ast_config_internal_load (filename=0x81834da "extconfig.conf",<br>
cfg=0x9892a48, flags=..., suggested_include_file=0x817983d "",<br>
who_asked=0x8183393 "extconfig") at config.c:2060<br>
#12 0x080a906b in read_config_maps () at config.c:1889<br>
#13 0x080e1a57 in ast_module_reload (name=0x0) at loader.c:645<br>
<br>
<br>
<br>
****************************DUMP 3********************************<br>
#0 0x005ee422 in __kernel_vsyscall ()<br>
#1 0x003214d1 in raise () from /lib/tls/i686/cmov/libc.so.6<br>
#2 0x00324932 in abort () from /lib/tls/i686/cmov/libc.so.6<br>
#3 0x00357ee5 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#4 0x00361ff1 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#5 0x00364bb3 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#6 0x00366009 in calloc () from /lib/tls/i686/cmov/libc.so.6<br>
#7 0x080e5790 in _ast_calloc (file=0x857dc2 "chan_mgcp.c", line=3430,<br>
func=0x85a87c "do_monitor", fmt=0xb74d31e0 "\177 Reloading MGCP\n", ap=0xb74d32f0 "\f")<br>
at /home/user/Asterisk/asterisk-1.6.1.11/include/asterisk/utils.h:457<br>
#8 __ast_verbose_ap (file=0x857dc2 "chan_mgcp.c", line=3430, func=0x85a87c "do_monitor",<br>
fmt=0xb74d31e0 "\177 Reloading MGCP\n", ap=0xb74d32f0 "\f") at logger.c:1268<br>
#9 0x080e5aed in __ast_verbose (file=0x857dc2 "chan_mgcp.c", line=3430,<br>
func=0x85a87c "do_monitor", fmt=0x858750 " Reloading MGCP\n") at logger.c:1294<br>
#10 0x00857a76 in do_monitor (data=0x0) at chan_mgcp.c:3430<br>
#11 0x08152b3b in dummy_start (data=0x912e3a0) at utils.c:968<br>
#12 0x00bc980e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0<br>
#13 0x003c37ee in clone () from /lib/tls/i686/cmov/libc.so.6<br>
<br>
<br>
****************************DUMP 4********************************<br>
#0 0x00467422 in __kernel_vsyscall ()<br>
#1 0x008694d1 in raise () from /lib/tls/i686/cmov/libc.so.6<br>
#2 0x0086c932 in abort () from /lib/tls/i686/cmov/libc.so.6<br>
#3 0x0089fee5 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#4 0x008a9ff1 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#5 0x008aba89 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#6 0x008ae79d in free () from /lib/tls/i686/cmov/libc.so.6<br>
#7 0x001e2e7d in sip_registry_destroy (reg=0xb6d968b0) at chan_sip.c:5085<br>
#8 0x0020bf3e in reload_config (reason=<value optimized out>) at chan_sip.c:23216<br>
#9 0x0020f9a3 in sip_do_reload (data=0x0) at chan_sip.c:24422<br>
#10 do_monitor (data=0x0) at chan_sip.c:21359<br>
#11 0x08152b3b in dummy_start (data=0xa2063c8) at utils.c:968<br>
#12 0x00ef080e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0<br>
#13 0x0090b7ee in clone () from /lib/tls/i686/cmov/libc.so.6<br>
<br>
<br>
<br>
****************************DUMP 5********************************<br>
(gdb) where<br>
#0 0x00bd233d in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#1 0x00bd579d in free () from /lib/tls/i686/cmov/libc.so.6<br>
#2 0x00bc150a in fclose () from /lib/tls/i686/cmov/libc.so.6<br>
#3 0x0019f6e4 in ?? () from /lib/tls/i686/cmov/libnss_files.so.2<br>
#4 0x001a0b1f in _nss_files_gethostbyname_r () from /lib/tls/i686/cmov/libnss_files.so.2<br>
#5 0x00c497fe in gethostbyname_r () from /lib/tls/i686/cmov/libc.so.6<br>
#6 0x08152ff9 in ast_gethostbyname (host=0xb7108b30 "user-asterisk", hp=0xb7108b98)<br>
at utils.c:221<br>
#7 0x080a5d0f in ast_parse_arg (arg=0x99306b1 "user-asterisk", flags=0, p_result=0x757140)<br>
at config.c:2384<br>
#8 0x0070501b in reload_config (reason=<value optimized out>) at chan_sip.c:23579<br>
#9 0x007069a3 in sip_do_reload (data=0x0) at chan_sip.c:24422<br>
#10 do_monitor (data=0x0) at chan_sip.c:21359<br>
#11 0x08152b3b in dummy_start (data=0x98ec9d8) at utils.c:968<br>
#12 0x0028080e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0<br>
#13 0x00c327ee in clone () from /lib/tls/i686/cmov/libc.so.6<br>
<br>
<br>
****************************DUMP 6********************************<br>
#1 0x003564d1 in raise () from /lib/tls/i686/cmov/libc.so.6<br>
#2 0x00359932 in abort () from /lib/tls/i686/cmov/libc.so.6<br>
#3 0x0038cee5 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#4 0x00396ff1 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#5 0x00398a89 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
#6 0x0039b79d in free () from /lib/tls/i686/cmov/libc.so.6<br>
#7 0x00562e7d in sip_registry_destroy (reg=0xb71448b0) at chan_sip.c:5085<br>
#8 0x0058bf3e in reload_config (reason=<value optimized out>) at chan_sip.c:23216<br>
#9 0x0058f9a3 in sip_do_reload (data=0x0) at chan_sip.c:24422<br>
#10 do_monitor (data=0x0) at chan_sip.c:21359<br>
#11 0x08152b3b in dummy_start (data=0xb7609270) at utils.c:968<br>
#12 0x0076c80e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0<br>
#13 0x003f87ee in clone () from /lib/tls/i686/cmov/libc.so.6<br>_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br>