[Asterisk-Users] segmentation fault on asterisk startup
Andreas 'TheChaos' Groll
TheChaos at networkchallenge.de
Tue Jul 13 04:24:18 MST 2004
andrewg at felinemenace.org wrote:
>Start off with running ulimit -c unlimited before you start asterisk. Once it
>crashes, type gdb /path/to/asterisk core
>
>>From there, enter the following:
>
>bt
>x/5i $eip
>info registers
>info threads
>
>and quit out. After doing that, you might want to save the output of
>uname -a
>cat /proc/cpuinfo
>
>and send it to the list.
>
>(Note for other people/developers, perhaps something similar to samba's panic
>action might be useful, which automates a lot of this stuff might come in
>use.)
>
>Hope this helps,
>Andrew Griffiths
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
>
Ok I did.
uname -a gave me this:
Linux chaospbx 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 unknown
cat /proc/cpuinfo:
processor : 0
vendor_id : CyrixInstead
cpu family : 6
model : 1
model name : 6x86MX 2.5x Core/Bus Clock
stepping : 4
cpu MHz : 166.405
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : yes
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu de tsc msr cx8 pge cmov mmx cyrix_arr
bogomips : 331.77
of course I think you wanted the gdb output, I hope that's correct:
(gdb) bt
#0 0x3aeb0000 in ?? ()
#1 0x405e2752 in iLBC_encode (bytes=0x810fda0 "ÿ ÿú\017`\022\021¢G\"\214",
block=0xbffff47c, iLBCenc_inst=0x810e868) at iLBC_encode.c:93
#2 0x405e0eea in lintoilbc_frameout (tmp=0x810e868) at codec_ilbc.c:196
#3 0x0805ca2f in calc_cost (t=0x405e9240) at translate.c:238
#4 0x0805ce4a in ast_register_translator (t=0x405e9240) at translate.c:299
#5 0x405e0fef in load_module () at codec_ilbc.c:263
#6 0x080551ce in ast_load_resource (resource_name=0x80defdb
"codec_ilbc.so")
at loader.c:312
#7 0x08055636 in load_modules () at loader.c:407
#8 0x08084136 in main (argc=2, argv=0xbffffe04) at asterisk.c:1485
(gdb) x/5i $eip
0x3aeb0000: Cannot access memory at address 0x3aeb0000
(gdb) info registers
eax 0xbfffd924 -1073751772
ecx 0xbfffd974 -1073751692
edx 0x3 3
ebx 0x4001e89c 1073866908
esp 0xbfffd450 0xbfffd450
ebp 0xbfffd99c 0xbfffd99c
esi 0x4012819c 1074954652
edi 0x40231a9d 1076042397
eip 0x3aeb0000 0x3aeb0000
eflags 0x10282 66178
cs 0x23 35
ss 0x2b 43
ds 0x2b 43
es 0x2b 43
fs 0x2b 43
gs 0x2b 43
fctrl 0x37f 895
fstat 0x122 290
ftag 0xffff 65535
fiseg 0x23 35
fioff 0x405e4895 1079920789
foseg 0x2b 43
fooff 0xbfffd920 -1073751776
fop 0x11c 284
xmm0 {f = {0x0, 0x0, 0x0, 0x0}} {f = {-nan(0x7fffff),
-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm1 {f = {0x0, 0x0, 0x0, 0x0}} {f = {-nan(0x7fffff),
-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm2 {f = {0x0, 0x0, 0x0, 0x0}} {f = {-nan(0x7fffff),
-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm3 {f = {0x0, 0x0, 0x0, 0x0}} {f = {-nan(0x7fffff),
-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm4 {f = {0x0, 0x0, 0x0, 0x0}} {f = {-nan(0x7fffff),
-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm5 {f = {0x0, 0x0, 0x0, 0x0}} {f = {-nan(0x7fffff),
-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm6 {f = {0x0, 0x0, 0x0, 0x0}} {f = {-nan(0x7fffff),
-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm7 {f = {0x0, 0x0, 0x0, 0x0}} {f = {-nan(0x7fffff),
-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
mxcsr 0x1f80 8064
orig_eax 0xffffffff -1
(gdb) info threads
* 1 process 8318 0x3aeb0000 in ?? ()
Perhaps it is important to mention, that I got the bad modules again
from a friend. His modules work within my asterisk with no errors.
Very confusing for me. I still hope you can help.
Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040713/a39805ac/signature.pgp
More information about the asterisk-users
mailing list