GNU gdb 6.8-debian Copyright (C) 2008 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 "i486-linux-gnu"... Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.8...done. Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.8 Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...done. Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8 Reading symbols from /lib/i686/cmov/libc.so.6...done. Loaded symbols for /lib/i686/cmov/libc.so.6 Reading symbols from /lib/i686/cmov/libdl.so.2...done. Loaded symbols for /lib/i686/cmov/libdl.so.2 Reading symbols from /lib/libcap.so.1...done. Loaded symbols for /lib/libcap.so.1 Reading symbols from /lib/i686/cmov/libpthread.so.0...done. Loaded symbols for /lib/i686/cmov/libpthread.so.0 Reading symbols from /lib/libncurses.so.5...done. Loaded symbols for /lib/libncurses.so.5 Reading symbols from /lib/i686/cmov/libm.so.6...done. Loaded symbols for /lib/i686/cmov/libm.so.6 Reading symbols from /lib/i686/cmov/libresolv.so.2...done. Loaded symbols for /lib/i686/cmov/libresolv.so.2 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Core was generated by `/usr/sbin/asterisk -f -g -q'. Program terminated with signal 11, Segmentation fault. [New process 20715] #0 0x0807efdc in __ast_free_region (ptr=0x980b7c8, file=0x81710bc "config.c", lineno=387, func=0x81711df "ast_variables_destroy") at astmm.c:196 196 astmm_log("WARNING: memory written to after being freed " (gdb) bt #0 0x0807efdc in __ast_free_region (ptr=0x980b7c8, file=0x81710bc "config.c", lineno=387, func=0x81711df "ast_variables_destroy") at astmm.c:196 #1 0x0807f3c5 in __ast_free (ptr=0x980b7c8, file=0x81710bc "config.c", lineno=387, func=0x81711df "ast_variables_destroy") at astmm.c:267 #2 0x080a2e3c in ast_variables_destroy (v=0x980b898) at config.c:387 #3 0x080a33de in ast_category_destroy (cat=0x980b630) at config.c:558 #4 0x080a3d8b in ast_config_destroy (cfg=0x980b2f8) at config.c:837 #5 0x0807ca39 in ast_readconfig () at asterisk.c:2838 #6 0x0807d692 in ?? () #7 0xb7c1f455 in __libc_start_main () from /lib/i686/cmov/libc.so.6 #8 0x0805ddc1 in ?? () (gdb) bt full #0 0x0807efdc in __ast_free_region (ptr=0x980b7c8, file=0x81710bc "config.c", lineno=387, func=0x81711df "ast_variables_destroy") at astmm.c:196 tbf = (struct ast_region *) 0x980b748 ptr = (unsigned char *) 0x980b7c8 "ð·\200\tú·\200\t\230¸\200\t\b¸\200\t\002" hash = 260 reg = (struct ast_region *) 0x0 prev = (struct ast_region *) 0x0 #1 0x0807f3c5 in __ast_free (ptr=0x980b7c8, file=0x81710bc "config.c", lineno=387, func=0x81711df "ast_variables_destroy") at astmm.c:267 No locals. #2 0x080a2e3c in ast_variables_destroy (v=0x980b898) at config.c:387 vn = (struct ast_variable *) 0x980b7c8 __PRETTY_FUNCTION__ = "ast_variables_destroy" #3 0x080a33de in ast_category_destroy (cat=0x980b630) at config.c:558 __PRETTY_FUNCTION__ = "ast_category_destroy" #4 0x080a3d8b in ast_config_destroy (cfg=0x980b2f8) at config.c:837 cat = (struct ast_category *) 0x980c000 catn = (struct ast_category *) 0x980b630 __PRETTY_FUNCTION__ = "ast_config_destroy" #5 0x0807ca39 in ast_readconfig () at asterisk.c:2838 cfg = (struct ast_config *) 0x980b2f8 v = (struct ast_variable *) 0x0 config = 0x81691af "/etc/asterisk/asterisk.conf" hostname = '\0' config_flags = {flags = 0} found = {dbdir = 1, keydir = 1} __PRETTY_FUNCTION__ = "ast_readconfig" #6 0x0807d692 in ?? () No locals. #7 0xb7c1f455 in __libc_start_main () from /lib/i686/cmov/libc.so.6 No symbol table info available. #8 0x0805ddc1 in ?? () No locals. (gdb) thread apply all bt Thread 1 (process 20715): #0 0x0807efdc in __ast_free_region (ptr=0x980b7c8, file=0x81710bc "config.c", lineno=387, func=0x81711df "ast_variables_destroy") at astmm.c:196 #1 0x0807f3c5 in __ast_free (ptr=0x980b7c8, file=0x81710bc "config.c", lineno=387, func=0x81711df "ast_variables_destroy") at astmm.c:267 #2 0x080a2e3c in ast_variables_destroy (v=0x980b898) at config.c:387 #3 0x080a33de in ast_category_destroy (cat=0x980b630) at config.c:558 #4 0x080a3d8b in ast_config_destroy (cfg=0x980b2f8) at config.c:837 #5 0x0807ca39 in ast_readconfig () at asterisk.c:2838 #6 0x0807d692 in ?? () #7 0xb7c1f455 in __libc_start_main () from /lib/i686/cmov/libc.so.6 #8 0x0805ddc1 in ?? () (gdb) quit