[asterisk-dev] Asterisk Core Dump

nico kooijman syspert at gmail.com
Fri Dec 18 03:19:01 CST 2009


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.

Nico

2009/12/18 postalforall <postalforall at gmail.com>

> Hi,
>
> 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.
>
> 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.
>
> 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.
>
> Can someone help out on this?
>
> With regards,
>
> oeo
>
> ****************************DUMP 1********************************
> #0  0x00bf9422 in __kernel_vsyscall ()
> #1  0x0013a4d1 in raise () from /lib/tls/i686/cmov/libc.so.6
> #2  0x0013d932 in abort () from /lib/tls/i686/cmov/libc.so.6
> #3  0x00170ee5 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #4  0x0017aff1 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #5  0x0017dbb3 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #6  0x0017f009 in calloc () from /lib/tls/i686/cmov/libc.so.6
> #7  0x081544d2 in _ast_calloc (mgr=0x5f3, pool_head=0x9bc7598, needed=256,
>    file=0x791a82 "chan_sip.c", lineno=7064, func=0x7a4a8e "sip_register")
>    at /home/user/Asterisk/asterisk-1.6.1.11/include/asterisk/utils.h:457
> #8  add_string_pool (mgr=0x5f3, pool_head=0x9bc7598, needed=256,
> file=0x791a82 "chan_sip.c",
>    lineno=7064, func=0x7a4a8e "sip_register") at utils.c:1488
> #9  __ast_string_field_init (mgr=0x5f3, pool_head=0x9bc7598, needed=256,
>    file=0x791a82 "chan_sip.c", lineno=7064, func=0x7a4a8e "sip_register")
> at utils.c:1530
> #10 0x0073b8be in sip_register (value=<value optimized out>, lineno=<value
> optimized out>)
>    at chan_sip.c:7064
> #11 0x00767078 in reload_config (reason=<value optimized out>) at
> chan_sip.c:23639
> #12 0x007679a3 in sip_do_reload (data=0x0) at chan_sip.c:24422
> #13 do_monitor (data=0x0) at chan_sip.c:21359
> #14 0x08152b3b in dummy_start (data=0x9b8e6e0) at utils.c:968
> #15 0x0037480e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
> #16 0x001dc7ee in clone () from /lib/tls/i686/cmov/libc.so.6
>
>
> ****************************DUMP 2********************************
> #0  0x0020d422 in __kernel_vsyscall ()
> #1  0x003164d1 in raise () from /lib/tls/i686/cmov/libc.so.6
> #2  0x00319932 in abort () from /lib/tls/i686/cmov/libc.so.6
> #3  0x0034cee5 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #4  0x00356ff1 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #5  0x00359bb3 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #6  0x0035b009 in calloc () from /lib/tls/i686/cmov/libc.so.6
> #7  0x080a5709 in _ast_calloc (name=0xb7051bbc "features.conf",
>    value=0xb7051bcd "mysql,general,ast_config", filename=0x817983d "")
>    at /home/user/Asterisk/asterisk-1.6.1.11/include/asterisk/utils.h:457
> #8  ast_variable_new (name=0xb7051bbc "features.conf",
>    value=0xb7051bcd "mysql,general,ast_config", filename=0x817983d "") at
> config.c:229
> #9  0x080aa412 in process_text_line (database=0xb705431c "\364\277B",
>    table=0xb705421c "\220G\005\267\v", filename=0x81834da "extconfig.conf",
> cfg=0x9892a48,
>    flags=..., suggested_include_file=0x817983d "", who_asked=0x8183393
> "extconfig")
>    at config.c:1144
> #10 config_text_file_load (database=0xb705431c "\364\277B",
>    table=0xb705421c "\220G\005\267\v", filename=0x81834da "extconfig.conf",
> cfg=0x9892a48,
>    flags=..., suggested_include_file=0x817983d "", who_asked=0x8183393
> "extconfig")
>    at config.c:1402
> #11 0x080a7493 in ast_config_internal_load (filename=0x81834da
> "extconfig.conf",
>    cfg=0x9892a48, flags=..., suggested_include_file=0x817983d "",
>    who_asked=0x8183393 "extconfig") at config.c:2060
> #12 0x080a906b in read_config_maps () at config.c:1889
> #13 0x080e1a57 in ast_module_reload (name=0x0) at loader.c:645
>
>
>
> ****************************DUMP 3********************************
> #0  0x005ee422 in __kernel_vsyscall ()
> #1  0x003214d1 in raise () from /lib/tls/i686/cmov/libc.so.6
> #2  0x00324932 in abort () from /lib/tls/i686/cmov/libc.so.6
> #3  0x00357ee5 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #4  0x00361ff1 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #5  0x00364bb3 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #6  0x00366009 in calloc () from /lib/tls/i686/cmov/libc.so.6
> #7  0x080e5790 in _ast_calloc (file=0x857dc2 "chan_mgcp.c", line=3430,
>    func=0x85a87c "do_monitor", fmt=0xb74d31e0 "\177 Reloading MGCP\n",
> ap=0xb74d32f0 "\f")
>    at /home/user/Asterisk/asterisk-1.6.1.11/include/asterisk/utils.h:457
> #8  __ast_verbose_ap (file=0x857dc2 "chan_mgcp.c", line=3430, func=0x85a87c
> "do_monitor",
>    fmt=0xb74d31e0 "\177 Reloading MGCP\n", ap=0xb74d32f0 "\f") at
> logger.c:1268
> #9  0x080e5aed in __ast_verbose (file=0x857dc2 "chan_mgcp.c", line=3430,
>    func=0x85a87c "do_monitor", fmt=0x858750 " Reloading MGCP\n") at
> logger.c:1294
> #10 0x00857a76 in do_monitor (data=0x0) at chan_mgcp.c:3430
> #11 0x08152b3b in dummy_start (data=0x912e3a0) at utils.c:968
> #12 0x00bc980e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
> #13 0x003c37ee in clone () from /lib/tls/i686/cmov/libc.so.6
>
>
> ****************************DUMP 4********************************
> #0  0x00467422 in __kernel_vsyscall ()
> #1  0x008694d1 in raise () from /lib/tls/i686/cmov/libc.so.6
> #2  0x0086c932 in abort () from /lib/tls/i686/cmov/libc.so.6
> #3  0x0089fee5 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #4  0x008a9ff1 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #5  0x008aba89 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #6  0x008ae79d in free () from /lib/tls/i686/cmov/libc.so.6
> #7  0x001e2e7d in sip_registry_destroy (reg=0xb6d968b0) at chan_sip.c:5085
> #8  0x0020bf3e in reload_config (reason=<value optimized out>) at
> chan_sip.c:23216
> #9  0x0020f9a3 in sip_do_reload (data=0x0) at chan_sip.c:24422
> #10 do_monitor (data=0x0) at chan_sip.c:21359
> #11 0x08152b3b in dummy_start (data=0xa2063c8) at utils.c:968
> #12 0x00ef080e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
> #13 0x0090b7ee in clone () from /lib/tls/i686/cmov/libc.so.6
>
>
>
> ****************************DUMP 5********************************
> (gdb) where
> #0  0x00bd233d in ?? () from /lib/tls/i686/cmov/libc.so.6
> #1  0x00bd579d in free () from /lib/tls/i686/cmov/libc.so.6
> #2  0x00bc150a in fclose () from /lib/tls/i686/cmov/libc.so.6
> #3  0x0019f6e4 in ?? () from /lib/tls/i686/cmov/libnss_files.so.2
> #4  0x001a0b1f in _nss_files_gethostbyname_r () from
> /lib/tls/i686/cmov/libnss_files.so.2
> #5  0x00c497fe in gethostbyname_r () from /lib/tls/i686/cmov/libc.so.6
> #6  0x08152ff9 in ast_gethostbyname (host=0xb7108b30 "user-asterisk",
> hp=0xb7108b98)
>    at utils.c:221
> #7  0x080a5d0f in ast_parse_arg (arg=0x99306b1 "user-asterisk", flags=0,
> p_result=0x757140)
>    at config.c:2384
> #8  0x0070501b in reload_config (reason=<value optimized out>) at
> chan_sip.c:23579
> #9  0x007069a3 in sip_do_reload (data=0x0) at chan_sip.c:24422
> #10 do_monitor (data=0x0) at chan_sip.c:21359
> #11 0x08152b3b in dummy_start (data=0x98ec9d8) at utils.c:968
> #12 0x0028080e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
> #13 0x00c327ee in clone () from /lib/tls/i686/cmov/libc.so.6
>
>
> ****************************DUMP 6********************************
> #1  0x003564d1 in raise () from /lib/tls/i686/cmov/libc.so.6
> #2  0x00359932 in abort () from /lib/tls/i686/cmov/libc.so.6
> #3  0x0038cee5 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #4  0x00396ff1 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #5  0x00398a89 in ?? () from /lib/tls/i686/cmov/libc.so.6
> #6  0x0039b79d in free () from /lib/tls/i686/cmov/libc.so.6
> #7  0x00562e7d in sip_registry_destroy (reg=0xb71448b0) at chan_sip.c:5085
> #8  0x0058bf3e in reload_config (reason=<value optimized out>) at
> chan_sip.c:23216
> #9  0x0058f9a3 in sip_do_reload (data=0x0) at chan_sip.c:24422
> #10 do_monitor (data=0x0) at chan_sip.c:21359
> #11 0x08152b3b in dummy_start (data=0xb7609270) at utils.c:968
> #12 0x0076c80e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
> #13 0x003f87ee in clone () from /lib/tls/i686/cmov/libc.so.6
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20091218/96900467/attachment-0001.htm 


More information about the asterisk-dev mailing list