root@rnewton-office-lab:/tmp# gdb asterisk GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/sbin/asterisk...done. (gdb) set args -gcvvvvv (gdb) run Starting program: /usr/sbin/asterisk -gcvvvvv [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Program received signal SIGSEGV, Segmentation fault. 0x0808e963 in region_data_wipe (reg=0x829fdd8) at astmm.c:264 264 *pos = FREED_MAGIC; (gdb) bt #0 0x0808e963 in region_data_wipe (reg=0x829fdd8) at astmm.c:264 #1 region_free (freed=0x82754a0, reg=0x829fdd8) at astmm.c:335 #2 0x080ed8af in ast_variable_destroy (doomed=0x829fe58) at config.c:539 #3 ast_variables_destroy (v=0x829ff48) at config.c:595 #4 ast_category_destroy (cat=0x829fcc0) at config.c:762 #5 0x080ee5d5 in ast_config_destroy (cfg=0x829f9a0) at config.c:1166 #6 0x08069f48 in ast_readconfig () at asterisk.c:3520 #7 main (argc=, argv=0x829feb2) at asterisk.c:3816 (gdb) bt full #0 0x0808e963 in region_data_wipe (reg=0x829fdd8) at astmm.c:264 end = 0x829fec0 pos = #1 region_free (freed=0x82754a0, reg=0x829fdd8) at astmm.c:335 old = __PRETTY_FUNCTION__ = "region_free" #2 0x080ed8af in ast_variable_destroy (doomed=0x829fe58) at config.c:539 No locals. #3 ast_variables_destroy (v=0x829ff48) at config.c:595 vn = 0x829fe58 #4 ast_category_destroy (cat=0x829fcc0) at config.c:762 __PRETTY_FUNCTION__ = "ast_category_destroy" #5 0x080ee5d5 in ast_config_destroy (cfg=0x829f9a0) at config.c:1166 cat = 0x82a0900 catn = #6 0x08069f48 in ast_readconfig () at asterisk.c:3520 config = 0x81ecb72 "/etc/asterisk/asterisk.conf" live_dangerously = cfg = 0x829f9a0 v = hostname = '\000' found = #7 main (argc=, argv=0x829feb2) at asterisk.c:3816 c = filename = "/root/.asterisk_history", '\000' hostname = "rnewton-office-lab", '\000' tmp = "\256\303\036\bt\372\377\267\000\000\000\000\250\026\230\267$Revision: 413587\000\000\000\260&\377\267\002\000\000\000P\257\351\267$Revision: 373079\000\000\000\316\366\377\277\000\000\000\000\020\000\000" xarg = 0x0 x = f = sigs = {__val = {0 }} num = 0 isroot = 1 buf = runuser = 0x0 rungroup = 0x0 remotesock = 0x0 moduleresult = l = {rlim_cur = 0, rlim_max = 0} __FUNCTION__ = "main" __PRETTY_FUNCTION__ = "main"