[asterisk-users] Help with gdb bt full results
Scott Higginbotham
scotth at voicenet.com
Thu Oct 5 11:53:51 MST 2006
I just had a situation where asterisk was running fine for several days,
then suddenly stopped. Upon trying to restart asterisk, it kept seg
faulting at:
[res_agi.so] => (Asterisk Gateway Interface (AGI))
== Registered application 'DeadAGI'
== Registered application 'EAGI'
== Registered application 'AGI'
[res_features.so] => (Call Features Resource)
== Parsing '/etc/asterisk/features.conf': Found
== Remapping feature Attended Transfer (atxfer) to sequence '7'
== Registered Feature 'nway-start'
== Mapping Feature 'nway-start' to app 'Macro' with code '*0'
== Registered Feature 'nway-inv'
== Mapping Feature 'nway-inv' to app 'Macro' with code '**'
== Registered Feature 'nway-noinv'
== Mapping Feature 'nway-noinv' to app 'Macro' with code '*#'
-- Registered extension context 'parkedcalls'
-- Added extension '5400' priority 1 to parkedcalls
== Registered application 'ParkedCall'
== Registered application 'Park'
== Manager registered action ParkedCalls
[res_crypto.so] => (Cryptographic Digital Signatures)
Segmentation fault (core dumped)
Looking at the core file that was left, I get the following when doing a 'bt
full':
#0 0xb7caf824 in ERR_load_BIO_strings () from /usr/lib/libcrypto.so.0
No symbol table info available.
#1 0x00000010 in ?? ()
No symbol table info available.
#2 0xb7d30460 in BN_version () from /usr/lib/libcrypto.so.0
No symbol table info available.
#3 0xb7d28818 in ?? () from /usr/lib/libcrypto.so.0
No symbol table info available.
#4 0xb7cbbcca in ERR_load_crypto_strings () from /usr/lib/libcrypto.so.0
No symbol table info available.
#5 0xb7cbbc50 in ERR_add_error_data () from /usr/lib/libcrypto.so.0
No symbol table info available.
#6 0xb790a398 in ?? () from /usr/lib/asterisk/modules/res_crypto.so
No symbol table info available.
#7 0xb7908989 in load_module () at res_crypto.c:571
No locals.
#8 0x0805c63d in __load_resource (resource_name=0x8159088 "", cfg=0xd) at
loader.c:413
fn = "/usr/lib/asterisk/modules/res_crypto.so\000o\000so", '\0'
<repeats 211 times>
errors = 0
res = 1
m = (struct module *) 0xd
flags = 0
val = 0x1 <Address 0x1 out of bounds>
key = (unsigned char *) 0x0
tmp = "\033[33;40mCryptographic Digital
Signatures\033[0;37;40m\000·wxÚ·k\004\000\000àò\023\b\021Å\020\b\000på·Àvå·\
000kå·"
__PRETTY_FUNCTION__ = "__load_resource"
#9 0x0805ce46 in load_modules (preload_only=-1209698624) at loader.c:553
mods = (DIR *) 0x81561f0
d = (struct dirent *) 0xb7e576c0
x = 0
cfg = (struct ast_config *) 0x813f100
v = (struct ast_variable *) 0xa5
tmp =
"\033[1;37;40mres_crypto.so\033[0;37;40m\000m\0000m\000\000\000\000\000\000Ð
\004\000\000Ð\003\022\b\034\000\000\000ØÛó¿iG\t\bÐ\003\022\b\020\034\t\bÀ:\0
20\bè:\020\b"
__PRETTY_FUNCTION__ = "load_modules"
#10 0x080bfbcc in main (argc=2, argv=0xbff3dc64) at asterisk.c:2360
gr = (struct group *) 0x87f
c = 1
filename = "/root/.asterisk_history", '\0' <repeats 56 times>
hostname = "test-asterisk", '\0' <repeats 46 times>
tmp = "Á\n\002\000à\n\002\000 5\023\b\005\000\000\000 \000\000\000
\210å·\000på· \210å· 5\023\b8Ûó¿ð\020Ú·
\210å·ç\221ð·\b0\023\b(5\023\bà\n\002\000 \000\000\000\033\000\000\000
5\023\b(5\023\b"
xarg = 0x0
x = 0
f = (FILE *) 0x87f
sigs = {__val = {134238211, 0 <repeats 31 times>}}
num = -1074538240
is_child_of_nonroot = 1
buf = 0x87f <Address 0x87f out of bounds>
runuser = 0x0
rungroup = 0x0
__PRETTY_FUNCTION__ = "main"
(gdb)
Finally, after rolling back a version previous and rebooting the system,
asterisk came back to life. I would however, like to find out what went
wrong and what I can do to fix it. Any insight is appreciated.
Scott Higginbotham
Systems / Network Operations Manager
215.259.2185 or 1.800.835.5710 ext 2185
scotth at voicenet.com
More information about the asterisk-users
mailing list