Re: Opteron Stack Woes

David Lecomber
2004-08-17T13:29:59Z

[-- Attachment #1: Type: text/plain, Size: 705 bytes --]

Thanks Daniel,

> readelf -wF is probably your best bet. But is the only problem the
> fact that the backtrace didn't stop at _start?

I've seen worse stack traces than this on the Opteron, particularly one
that had Lustre kernel patches applied -- but I don't know if that was
related.. I'll keep an eye out for further problems.

I figured that the "Incomplete CFI data" might be an issue. I don't
know enough about this area yet to do anything..

> You might want to investigate why the backtrace didn't stop earlier, at
> main or at a fortran entry point. GDB may be confused about
> main_name().

Attached is the readelf -wF info, can you see anything wrong with the
0x040d7ad entry?

ta,
David

[-- Attachment #2: ReadElf --]
[-- Type: text/plain, Size: 5136 bytes --]

The section .eh_frame contains:

00000000 00000014 00000000 CIE "zR" cf=1 df=-8 ra=16
LOC CFA ra
00000000 r7+8 c-8

00000018 0000001c 0000001c FDE cie=00000000 pc=004188d0..00418926
LOC CFA r3 r6 r12 ra
004188d0 r7+8 u u u c-8
004188e3 r7+32 c-32 c-24 c-16 c-8

00000038 0000001c 0000003c FDE cie=00000000 pc=00418930..0041897c
LOC CFA r3 r6 ra
00418930 r7+8 u u c-8
00418931 r7+16 u c-16 c-8
00418940 r7+24 u c-16 c-8
0041894b r7+32 c-24 c-16 c-8

00000058 ZERO terminator

The section .debug_frame contains:

00000000 00000010 ffffffff CIE "" cf=1 df=-8 ra=16
LOC CFA ra
00000000 r7+8 c-8

00000014 00000028 00000000 FDE cie=00000000 pc=00400ff8..00401002
LOC CFA r6 ra
00400ff8 r7+8 u c-8
00400ff9 r7+16 c-16 c-8
00400ffc r6+16 c-16 c-8

00000040 00000028 00000000 FDE cie=00000000 pc=00401002..00401c8a
LOC CFA r6 ra
00401002 r7+8 u c-8
00401003 r7+16 c-16 c-8
00401006 r6+16 c-16 c-8

0000006c 00000028 00000000 FDE cie=00000000 pc=00401c8a..00401de8
LOC CFA r6 ra
00401c8a r7+8 u c-8
00401c8b r7+16 c-16 c-8
00401c8e r6+16 c-16 c-8

00000098 00000028 00000000 FDE cie=00000000 pc=00401de8..0040205e
LOC CFA r6 ra
00401de8 r7+8 u c-8
00401de9 r7+16 c-16 c-8
00401dec r6+16 c-16 c-8

000000c4 00000028 00000000 FDE cie=00000000 pc=0040205e..00402fc7
LOC CFA r6 ra
0040205e r7+8 u c-8
0040205f r7+16 c-16 c-8
00402062 r6+16 c-16 c-8

000000f0 00000028 00000000 FDE cie=00000000 pc=00402fc7..0040332a
LOC CFA r6 ra
00402fc7 r7+8 u c-8
00402fc8 r7+16 c-16 c-8
00402fcb r6+16 c-16 c-8

0000011c 00000028 00000000 FDE cie=00000000 pc=0040332a..004039d9
LOC CFA r6 ra
0040332a r7+8 u c-8
0040332b r7+16 c-16 c-8
0040332e r6+16 c-16 c-8

00000148 00000028 00000000 FDE cie=00000000 pc=004039d9..00403b68
LOC CFA r6 ra
004039d9 r7+8 u c-8
004039da r7+16 c-16 c-8
004039dd r6+16 c-16 c-8

00000174 00000028 00000000 FDE cie=00000000 pc=00403b68..00407136
LOC CFA r6 ra
00403b68 r7+8 u c-8
00403b69 r7+16 c-16 c-8
00403b6c r6+16 c-16 c-8

000001a0 00000028 00000000 FDE cie=00000000 pc=00407136..004079dd
LOC CFA r6 ra
00407136 r7+8 u c-8
00407137 r7+16 c-16 c-8
0040713a r6+16 c-16 c-8

000001cc 00000028 00000000 FDE cie=00000000 pc=004079dd..0040810b
LOC CFA r6 ra
004079dd r7+8 u c-8
004079de r7+16 c-16 c-8
004079e1 r6+16 c-16 c-8

000001f8 00000028 00000000 FDE cie=00000000 pc=0040810b..00408296
LOC CFA r6 ra
0040810b r7+8 u c-8
0040810c r7+16 c-16 c-8
0040810f r6+16 c-16 c-8

00000224 00000028 00000000 FDE cie=00000000 pc=00408296..00408f49
LOC CFA r6 ra
00408296 r7+8 u c-8
00408297 r7+16 c-16 c-8
0040829a r6+16 c-16 c-8

00000250 00000028 00000000 FDE cie=00000000 pc=00408f49..00409074
LOC CFA r6 ra
00408f49 r7+8 u c-8
00408f4a r7+16 c-16 c-8
00408f4d r6+16 c-16 c-8

0000027c 00000028 00000000 FDE cie=00000000 pc=00409074..004096bb
LOC CFA r6 ra
00409074 r7+8 u c-8
00409075 r7+16 c-16 c-8
00409078 r6+16 c-16 c-8

000002a8 00000028 00000000 FDE cie=00000000 pc=004096bb..0040c62a
LOC CFA r6 ra
004096bb r7+8 u c-8
004096bc r7+16 c-16 c-8
004096bf r6+16 c-16 c-8

000002d4 00000028 00000000 FDE cie=00000000 pc=0040c62a..0040cc12
LOC CFA r6 ra
0040c62a r7+8 u c-8
0040c62b r7+16 c-16 c-8
0040c62e r6+16 c-16 c-8

00000300 00000028 00000000 FDE cie=00000000 pc=0040cc12..0040cdf3
LOC CFA r6 ra
0040cc12 r7+8 u c-8
0040cc13 r7+16 c-16 c-8
0040cc16 r6+16 c-16 c-8

0000032c 00000028 00000000 FDE cie=00000000 pc=0040cdf3..0040d1bb
LOC CFA r6 ra
0040cdf3 r7+8 u c-8
0040cdf4 r7+16 c-16 c-8
0040cdf7 r6+16 c-16 c-8

00000358 00000028 00000000 FDE cie=00000000 pc=0040d1bb..0040d2fa
LOC CFA r6 ra
0040d1bb r7+8 u c-8
0040d1bc r7+16 c-16 c-8
0040d1bf r6+16 c-16 c-8

00000384 00000028 00000000 FDE cie=00000000 pc=0040d2fa..0040d640
LOC CFA r6 ra
0040d2fa r7+8 u c-8
0040d2fb r7+16 c-16 c-8
0040d2fe r6+16 c-16 c-8

000003b0 00000028 00000000 FDE cie=00000000 pc=0040d640..0040d79f
LOC CFA r6 ra
0040d640 r7+8 u c-8
0040d641 r7+16 c-16 c-8
0040d644 r6+16 c-16 c-8

000003dc 00000028 00000000 FDE cie=00000000 pc=0040d79f..0040d7a9
LOC CFA r6 ra
0040d79f r7+8 u c-8
0040d7a0 r7+16 c-16 c-8
0040d7a3 r6+16 c-16 c-8

00000408 00000028 00000000 FDE cie=00000000 pc=0040d7a9..00418751
LOC CFA r6 ra
0040d7a9 r7+8 u c-8
0040d7aa r7+16 c-16 c-8
0040d7ad r6+16 c-16 c-8

00000434 ZERO terminator