pbx2.offphl> gdb `which asterisk` GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 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 "sparc-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/sbin/asterisk...done. (gdb) break pthread_cond_init Breakpoint 1 at 0x252ad8 (gdb) break pthread_attr_init Breakpoint 2 at 0x252b98 (gdb) break pthread_condattr_init Function "pthread_condattr_init" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 3 (pthread_condattr_init) pending. (gdb) break pthread_mutex_init Breakpoint 4 at 0x252ea4 (gdb) break pthread_mutexattr_init Breakpoint 5 at 0x2533d8 (gdb) break pthread_rwlock_init Breakpoint 6 at 0x2526a0 (gdb) break pthread_rwlockattr_init Breakpoint 7 at 0x2526ac (gdb) run -nrx 'core show version' Starting program: /usr/sbin/asterisk -nrx 'core show version' [Thread debugging using libthread_db enabled] Breakpoint 5, 0xf7c46b00 in pthread_mutexattr_init () from /lib/libpthread.so.0 (gdb) bt #0 0xf7c46b00 in pthread_mutexattr_init () from /lib/libpthread.so.0 #1 0x00129524 in ast_reentrancy_init (plt=0x2569d0) at /usr/local/src/asterisk/asterisk-1.8.20.0-rc1/include/asterisk/lock.h:473 #2 0x0012c950 in __ast_rwlock_wrlock (filename=0x203090 "asterisk.c", line=333, func=0x207610 "ast_register_file_version", t=0x2569b0, name=0x2030c0 "&(&file_versions)->lock") at lock.c:998 #3 0x0004ef34 in ast_register_file_version (file=0x23dd98 "xmldoc.c", version=0x23dda8 "$Revision: 377509 $") at asterisk.c:333 #4 0x001d61d4 in __register_file_version () at xmldoc.c:32 #5 0x001fea64 in __do_global_ctors_aux () #6 0x0002ca94 in _init () #7 0x001fe058 in __libc_csu_init () #8 0xf7ca07e8 in __libc_start_main () from /lib/libc.so.6 #9 0x0002cad8 in _start () (gdb) cont Continuing. Breakpoint 4, 0xf7d7eda4 in pthread_mutex_init () from /lib/libc.so.6 (gdb) bt #0 0xf7d7eda4 in pthread_mutex_init () from /lib/libc.so.6 #1 0x00129554 in ast_reentrancy_init (plt=0x2569d0) at /usr/local/src/asterisk/asterisk-1.8.20.0-rc1/include/asterisk/lock.h:475 #2 0x0012c950 in __ast_rwlock_wrlock (filename=0x203090 "asterisk.c", line=333, func=0x207610 "ast_register_file_version", t=0x2569b0, name=0x2030c0 "&(&file_versions)->lock") at lock.c:998 #3 0x0004ef34 in ast_register_file_version (file=0x23dd98 "xmldoc.c", version=0x23dda8 "$Revision: 377509 $") at asterisk.c:333 #4 0x001d61d4 in __register_file_version () at xmldoc.c:32 #5 0x001fea64 in __do_global_ctors_aux () #6 0x0002ca94 in _init () #7 0x001fe058 in __libc_csu_init () #8 0xf7ca07e8 in __libc_start_main () from /lib/libc.so.6 #9 0x0002cad8 in _start () (gdb) cont Continuing. Breakpoint 5, 0xf7c46b00 in pthread_mutexattr_init () from /lib/libpthread.so.0 (gdb) bt #0 0xf7c46b00 in pthread_mutexattr_init () from /lib/libpthread.so.0 #1 0x00129524 in ast_reentrancy_init (plt=0x2582ec) at /usr/local/src/asterisk/asterisk-1.8.20.0-rc1/include/asterisk/lock.h:473 #2 0x00129d68 in __ast_pthread_mutex_lock (filename=0x216bf0 "config.c", lineno=1444, func=0x217b50 "config_text_file_load", mutex_name=0x216cb8 "&(&cfmtime_head)->lock", t=0x2582d4) at lock.c:188 #3 0x000c02c4 in config_text_file_load (database=0xffffc128 "", table=0xffffc028 "", filename=0x206240 "/etc/asterisk/asterisk.conf", cfg=0x28db78, flags=..., suggested_include_file=0x216d00 "", who_asked=0x205ab0 "") at config.c:1444 #4 0x000c4944 in ast_config_internal_load (filename=0x206240 "/etc/asterisk/asterisk.conf", cfg=0x28db78, flags=..., suggested_include_file=0x216d00 "", who_asked=0x205ab0 "") at config.c:2312 #5 0x000c4a34 in ast_config_load2 (filename=0x206240 "/etc/asterisk/asterisk.conf", who_asked=0x205ab0 "", flags=...) at config.c:2331 #6 0x000590c0 in ast_readconfig () at asterisk.c:3014 #7 0x0005c608 in main (argc=3, argv=0xffffd974) at asterisk.c:3525 (gdb) cont Continuing. Breakpoint 4, 0xf7d7eda4 in pthread_mutex_init () from /lib/libc.so.6 (gdb) bt #0 0xf7d7eda4 in pthread_mutex_init () from /lib/libc.so.6 #1 0x00129554 in ast_reentrancy_init (plt=0x2582ec) at /usr/local/src/asterisk/asterisk-1.8.20.0-rc1/include/asterisk/lock.h:475 #2 0x00129d68 in __ast_pthread_mutex_lock (filename=0x216bf0 "config.c", lineno=1444, func=0x217b50 "config_text_file_load", mutex_name=0x216cb8 "&(&cfmtime_head)->lock", t=0x2582d4) at lock.c:188 #3 0x000c02c4 in config_text_file_load (database=0xffffc128 "", table=0xffffc028 "", filename=0x206240 "/etc/asterisk/asterisk.conf", cfg=0x28db78, flags=..., suggested_include_file=0x216d00 "", who_asked=0x205ab0 "") at config.c:1444 #4 0x000c4944 in ast_config_internal_load (filename=0x206240 "/etc/asterisk/asterisk.conf", cfg=0x28db78, flags=..., suggested_include_file=0x216d00 "", who_asked=0x205ab0 "") at config.c:2312 #5 0x000c4a34 in ast_config_load2 (filename=0x206240 "/etc/asterisk/asterisk.conf", who_asked=0x205ab0 "", flags=...) at config.c:2331 #6 0x000590c0 in ast_readconfig () at asterisk.c:3014 #7 0x0005c608 in main (argc=3, argv=0xffffd974) at asterisk.c:3525 (gdb) cont Continuing. Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) Program received signal SIGBUS, Bus error. 0xf7d00e78 in ?? () from /lib/libc.so.6 (gdb)