[asterisk-users] Analyze core file prodeced after safe_asterisk
crashh
Steve Edwards
asterisk.org at sedwards.com
Wed Aug 30 17:11:41 MST 2006
On Tue, 29 Aug 2006, Matt Riddell (IT) wrote:
> Steve Edwards wrote:
>> It's not clear if the OP wanted 1) information on how to analyse the
>> core file or 2) provide information to the bug tracker for others to
>> analyse.
>>
>> Matt's answer addresses #2. How about #1?
>>
>> Anybody care to share their techniques for analysing a core dump?
>
> Doing the bt full as described in the document I posted is how you
> analyse the core file.
OK. I know this will probably bore most readers, but some of us wannabe
developers have inquiring minds :)
I know a "bt full" prints the backtrace of the stack frames and the values
of the local variables, but "printing" the information does not equate to
"analyse" to me.
Here's the "bt full" from a crash of Asterisk 1.2.11. Why did it crash?
I've munged ANI's to protect the guilty.
I'm assuming most of the gdb cruft can be discarded in the interest of
brevity.
"bt-full"
---------
(gdb cruft discarded)
Core was generated by `/usr/sbin/asterisk -f -g -n -p -q'.
Program terminated with signal 6, Aborted.
(6 is SIGABRT)
(more gdb cruft discarded)
#0 0x0088e7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#0 0x0088e7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1 0x008ce7f5 in raise () from /lib/tls/libc.so.6
No symbol table info available.
#2 0x008d0199 in abort () from /lib/tls/libc.so.6
No symbol table info available.
#3 0x009024ea in __libc_message () from /lib/tls/libc.so.6
No symbol table info available.
#4 0x00908c6f in _int_free () from /lib/tls/libc.so.6
No symbol table info available.
#5 0x00908fea in free () from /lib/tls/libc.so.6
No symbol table info available.
#6 0x080613b6 in ast_channel_free (chan=0x9591520) at channel.c:959
last = (struct ast_channel *) 0x9418f30
cur = (struct ast_channel *) 0x0
fd = 161
vardata = (struct ast_var_t *) 0x0
f = (struct ast_frame *) 0x0
fp = (struct ast_frame *) 0x0
headp = (struct varshead *) 0x95918e8
name = "\220ê\234", '\0' <repeats 76 times>
__PRETTY_FUNCTION__ = "ast_channel_free"
#7 0x08062889 in ast_hangup (chan=0x9591520) at channel.c:1361
res = 0
__PRETTY_FUNCTION__ = "ast_hangup"
#8 0x001a84c0 in conf_free (conf=0x9492bd0) at app_meetme.c:784
prev = (struct ast_conference *) 0xb720b8f0
cur = (struct ast_conference *) 0x0
__PRETTY_FUNCTION__ = "conf_free"
#9 0x001aae43 in conf_run (chan=0x9461fc8, conf=0x9492bd0, confflags=4224) at app_meetme.c:1585
user = (struct ast_conf_user *) 0xb7a0f478
usr = (struct ast_conf_user *) 0x0
fd = 147
ztc = {chan = 217, confno = 1022, confmode = 772}
ztc_empty = {chan = 0, confno = 0, confmode = 0}
f = (struct ast_frame *) 0x9455d78
c = (struct ast_channel *) 0x9461fc8
fr = {frametype = 2, subclass = 64, datalen = 320, samples = 160, mallocd = 0, offset = 64, src = 0x0,
data = 0xb7c6a9a0, delivery = {tv_sec = 0, tv_usec = 0}, prev = 0x0, next = 0x0}
outfd = -99999
ms = -1
nfds = 1
res = 320
flags = 2
retryzap = -7
origfd = 22
musiconhold = 0
firstpass = 1
lastmarked = 0
currentmarked = 0
ret = 0
x = 1
menu_active = 0
using_pseudo = 1
duration = 20
dsp = (struct ast_dsp *) 0x0
app = (struct ast_app *) 0xb7c6aca8
agifile = 0xb7a059d4 "meetme-menu"
agifiledefault = 0x1aefd2 "conf-background.agi"
meetmesecs = '\0' <repeats 29 times>
exitcontext = "meetme-menu", '\0' <repeats 68 times>
recordingtmp = '\0' <repeats 79 times>
dtmf = 1
bi = {txbufpolicy = 0, rxbufpolicy = 0, numbufs = 32, bufsize = 160, readbufs = 0, writebufs = 0}
__buf = '\0' <repeats 24 times>, "\210©Æ·\233P\022\000$h\025\000ÄX\025\000XªÆ·pð\023\000$h\025\000\001", '\0' <repeats 330 times>
buf = 0xb7c6a9a0 ""
__PRETTY_FUNCTION__ = "conf_run"
#10 0x001ac98e in conf_exec (chan=0x9461fc8, data=0xb7c70070) at app_meetme.c:2006
res = -1
u = (struct localuser *) 0xb7a0d380
confno = "f2-r5", '\0' <repeats 74 times>
allowretry = 0
retrycnt = 0
cnf = (struct ast_conference *) 0x9492bd0
confflags = {flags = 4224}
dynamic = 0
empty = 0
empty_no_pin = 0
always_prompt = 0
notdata = 0xb7c70070 "f2-r5|Xc"
info = 0x0
inflags = 0xb7c6acd6 "Xc"
inpin = 0x0
the_pin = '\0' <repeats 79 times>
__PRETTY_FUNCTION__ = "conf_exec"
#11 0x08083867 in pbx_exec (c=0x9461fc8, app=0x94307f0, data=0xb7c70070, newstack=1) at pbx.c:553
res = 155387888
saved_c_appl = 0x0
saved_c_data = 0x0
execute = (int (*)(struct ast_channel *, void *)) 0x1ab9c1 <conf_exec>
__PRETTY_FUNCTION__ = "pbx_exec"
#12 0x08086caf in pbx_extension_helper (c=0x9461fc8, con=0x0, context=0x9462118 "meetme-menu", exten=0x946220c "4",
priority=3, label=0x0, callerid=0x944e6d8 "518xxxxxxx", action=1) at pbx.c:1697
e = (struct ast_exten *) 0x9438b98
app = (struct ast_app *) 0x94307f0
sw = (struct ast_switch *) 0x0
data = 0x0
foundcontext = 0x9462118 "meetme-menu"
newstack = 1
res = 0
status = 5
incstack = {0x943a908 "party-line", 0x1 "", 0xb7c720c8 "", 0x80a6fc0 "\205Àyy\203=ä&\022\b",
0x44f61790 <Address 0x44f61790 out of bounds>, 0x7c8c1 <Address 0x7c8c1 out of bounds>, 0x0, 0x0, 0x0,
0x945c578 "°¸H\t\215ÅE\tPRIVATE-CODE", 0x22d "", 0x929b4 <Address 0x929b4 out of bounds>, 0x905fa4 "\201ÃPp\f",
0x9455d78 "\001", 0x44f61790 <Address 0x44f61790 out of bounds>, 0x9ccff4 "<Í\234",
0xb7c72100 "\001\200û`\"Ç·`\"Ç·`\"Ç·`\"Ç·\221\"Ç·¯\"Ç·`\"Ç·¯\"Ç·", 0xb7c720dc "ì!Ç·¦\027\220",
0x9072b1 "\211~\020\213U\024\211~\f\211~\004\205Òt6\213U\024\213}ð\211V\024\211V\b1Ò\211~\030\211\226\230",
0xb7c72100 "\001\200û`\"Ç·`\"Ç·`\"Ç·`\"Ç·\221\"Ç·¯\"Ç·`\"Ç·¯\"Ç·", 0xb7c72260 "\"s3-SIP/5060-094\005",
0xb7c722af "\t\003", 0x0, 0xb7c722af "\t\003", 0x9ccff4 "<Í\234", 0x8100b07 "\"%s\" <%s>",
0xb7c7221c "0ÐE\tèïI\t¨óE\t8\"Ç·Õû\005\b\224 F\tÈ\037F\t\230\"Ç·\001", 0xb7c721ec "\b\"Ç·â\224\216",
0x9017a6 "\213\215\fÿÿÿ\211Â9\2150ÿÿÿt\t\213µ(ÿÿÿÆ\006",
0xb7c72100 "\001\200û`\"Ç·`\"Ç·`\"Ç·`\"Ç·\221\"Ç·¯\"Ç·`\"Ç·¯\"Ç·", 0x8100b07 "\"%s\" <%s>",
0xb7c72224 "¨óE\t8\"Ç·Õû\005\b\224 F\tÈ\037F\t\230\"Ç·\001", 0xb7c72260 "\"s3-SIP/5060-094\005", 0x0, 0xb7c721a0 "e",
0xb7c72100 "\001\200û`\"Ç·`\"Ç·`\"Ç·`\"Ç·\221\"Ç·¯\"Ç·`\"Ç·¯\"Ç·", 0xfbad8001 <Address 0xfbad8001 out of bounds>,
0xb7c72260 "\"s3-SIP/5060-094\005", 0xb7c72260 "\"s3-SIP/5060-094\005", 0xb7c72260 "\"s3-SIP/5060-094\005",
0xb7c72260 "\"s3-SIP/5060-094\005", 0xb7c72291 "", 0xb7c722af "\t\003", 0xb7c72260 "\"s3-SIP/5060-094\005",
0xb7c722af "\t\003", 0x0, 0x0, 0x0, 0x0, 0x0, 0x811e220 " -- Remote UNIX connection\n", 0x0, 0x0,
0x9000000 <Address 0x9000000 out of bounds>, 0x0, 0x80c38c1 "\213Eð\213Uô\211\003\211S\004\211Ø\203Ä\024[]Â\004",
0xb7c72158 "", 0x0, 0x0, 0xffffffff <Address 0xffffffff out of bounds>, 0x9455d78 "\001", 0x9455de8 "\200e}",
0x44112c <Address 0x44112c out of bounds>, 0x3d2b17dd <Address 0x3d2b17dd out of bounds>,
0x44f61790 <Address 0x44f61790 out of bounds>, 0x7c8bd <Address 0x7c8bd out of bounds>,
0x44f61790 <Address 0x44f61790 out of bounds>, 0x71954 <Address 0x71954 out of bounds>, 0xb7c721a8 "¦l", 0xb7a19d28 "",
0x10 "", 0x6ca3 <Address 0x6ca3 out of bounds>, 0x0, 0x9cca20 "", 0x0, 0xc "", 0x65 "", 0x2 "",
0x6ca6 <Address 0x6ca6 out of bounds>, 0x10 "", 0x44c00002 <Address 0x44c00002 out of bounds>,
0x69e3743 <Address 0x69e3743 out of bounds>, 0x0, 0x0, 0xb7c721e8 "°+Ç·\b\"Ç·â\224\216",
0x80c396d "\203ì\004\211Ø\215eø[^]Â\004", 0xb7c721e8 "°+Ç·\b\"Ç·â\224\216", 0x10 "",
0xb7c721fc "\a\v\020\b\034\"Ç·È\037F\tÈ\"Ç·U6\n\bÊ$F\t\"!F\tF", 0x27a968 "\200(\004", 0xb7c72218 "F",
0x243c8e "\211EøëK\213E\f\213\200ü+", 0x9ccff4 "<Í\234", 0x0, 0xb7c72bb0 "°+Ç·àUC\t°+Ç·\001",
0xb7c72208 "È\"Ç·U6\n\bÊ$F\t\"!F\tF",
0x8e94e2 "\203Ä\020[]Ã\220\220\220\220\220\220\220\220U\211å\215M\020S\203ì\f\213U\f\211L$\b\213E\bèh'ýÿ\201Ãë:\016",
0xb7c72260 "\"s3-SIP/5060-094\005", 0x50 "", 0x8100b07 "\"%s\" <%s>",
0xb7c7221c "0ÐE\tèïI\t¨óE\t8\"Ç·Õû\005\b\224 F\tÈ\037F\t\230\"Ç·\001", 0x9461fc8 "SIP/5060-0945f3a8",
0xb7c722c8 "8$Ç·¦\203\b\bÈ\037F\t\030!F\t\f\"F\t\003", 0x80a3655 "\213Eô\213\200è\003", 0x94624ca "", 0x9462122 "u",
0x46 "", 0x945d030 "s3-SIP/5060-0945f3a8-1156978018.11", 0x949efe8 "518xxxxxxx", 0x945f3a8 "", 0xb7c72238 "\230\"Ç·\001",
0x805fbd5 "ÉÃU\211å\203ì\b\213E\b\211\004$èØRÿÿÉÃU\211å\203ì\030\213E\b\203¸À", 0x9462094 "",
0x9461fc8 "SIP/5060-0945f3a8", 0xb7c72298 "È\"Ç·)\177\b\bÈ\037F\t", 0x1 "", 0x9462118 "meetme-menu", 0x1 "",
0x946220c "4", 0x949efe8 "518xxxxxxx", 0x949efe8 "518xxxxxxx", 0x1 "", 0x9462168 "", 0x1 "",
0x2d337322 <Address 0x2d337322 out of bounds>, 0x2f504953 <Address 0x2f504953 out of bounds>,
0x30363035 <Address 0x30363035 out of bounds>, 0x3439302d <Address 0x3439302d out of bounds>}
passdata = "f2-r5|Xc", '\0' <repeats 8183 times>
stacklen = 0
tmp = "MeetMe\000und", '\0' <repeats 69 times>
tmp2 = "SIP/5060-0945f3a8", '\0' <repeats 62 times>
tmp3 = "f1-r1|Xc\000IT_CONTEXT=meetme-menu\00056978004.2\000004.2", '\0' <repeats 8143 times>
atmp = "STACK-straight-chat-s-2\0005200-5", '\0' <repeats 49 times>
atmp2 = "BackGround(\"SIP/5060-09455d70\", \"vchat/RambaRoomIntro\") in new stack\000) in new stack\000stack", '\0' <repeats 8202 times>
__PRETTY_FUNCTION__ = "pbx_extension_helper"
#13 0x08087f29 in ast_spawn_extension (c=0x9461fc8, context=0x9462118 "meetme-menu", exten=0x946220c "4", priority=3,
callerid=0x944e6d8 "518xxxxxxx") at pbx.c:2230
No locals.
#14 0x080883a6 in __ast_pbx_run (c=0x9461fc8) at pbx.c:2296
firstpass = 0
digit = 0
exten = '\0' <repeats 255 times>
pos = 0
waittime = 5
res = 0
autoloopflag = 0
__PRETTY_FUNCTION__ = "__ast_pbx_run"
#15 0x080890fb in pbx_thread (data=0x9461fc8) at pbx.c:2517
c = (struct ast_channel *) 0x9461fc8
#16 0x00a6d371 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#17 0x0096e9be in clone () from /lib/tls/libc.so.6
No symbol table info available.
Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list