expect hang with 2.6.7-pa14 #1
Quoted 6 lines
Quoted 4 lines
Readelf doesn't seem to know about .PARISC.unwind:
$ readelf -u /lib/ld.so.1 There are no unwind sections in this file.yeah, this is on my list of things to fix :)
Here is the unwind table entry.
(gdb) maintenance print unwind 0x40008c38unwind_table_entry (0x3d2d20):
region_start = 0x40008c38 <_dl_unload_cache+104> region_end = 0x40008cd4 <_dl_unload_cache+260> flags = Region_description = 0x1 Entry_FR = 0x0 Entry_GR = 0x0 Total_frame_size = 0x0
For some reason, the above command generates some garbage the second time. However, here is the descriptor for _dl_unload_cache:
(gdb) maintenance print unwind 0x40008c00unwind_table_entry (0x3d2d0c):
region_start = 0x40008bd0 <_dl_unload_cache> region_end = 0x40008c34 <_dl_unload_cache+100> flags = Save_RP Region_description = 0x1 Entry_FR = 0x0 Entry_GR = 0x1 Total_frame_size = 0x8
So, the decriptors seem ok although we have lost the name of _dl_elf_hash. We need to use %rp to get the address of the caller in this case. This can address can then be used to get the unwind descriptor for the caller.
Dave
Signature · 6 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6602) _______________________________________________ parisc-linux mailing list [email protected] http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
Quoted 14 lines
Here is the unwind table entry.
(gdb) maintenance print unwind
0x40008c38unwind_table_entry(0x3d2d20):region_start = 0x40008c38 <_dl_unload_cache+104> region_end = 0x40008cd4 <_dl_unload_cache+260> flags = Region_description = 0x1 Entry_FR = 0x0 Entry_GR = 0x0 Total_frame_size = 0x0(gdb) maintenance print unwind
0x40008c00unwind_table_entry(0x3d2d0c):
Quoted 7 lines
region_start = 0x40008bd0 <_dl_unload_cache> region_end = 0x40008c34 <_dl_unload_cache+100> flags = Save_RP Region_description = 0x1 Entry_FR = 0x0 Entry_GR = 0x1 Total_frame_size = 0x8
As I suspected, there is confusion regarding which unwind descriptor to use:
(gdb) bt
#0 0x40008c38 in _dl_unload_cache () from /lib/ld.so.1
{ hppa_frame_cache (frame=-1) -> { find_unwind_entry 0x40008bd0 -> 0x3d2d0c (cached) }
{ find_unwind_entry 0x40008bd0 -> 0x3d2d0c (cached) }
{ find_unwind_entry 0x40008bd0 -> 0x3d2d0c (cached) }
(this_sp=0xbff037c0, pc=0x40008c38, prologue_end=0x40008bd8) (base=0xbff03780) [unwind adjust] } base=0xbff03780 }{ hppa_frame_cache (frame=-1) -> base=0xbff03780 (cached) }#1 0x00000000 in ?? () { hppa_frame_cache (frame=-1) -> base=0xbff03780 (cached) }{ hppa_frame_cache (frame=-1) -> base=0xbff03780 (cached) }#2 0x00000000 in ?? ()
{ hppa_frame_cache (frame=-1) -> base=0xbff03780 (cached) }Previous frame identical to this frame (corrupt stack?)
Dave
Signature · 6 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6602) _______________________________________________ parisc-linux mailing list [email protected] http://lists.parisc-linux.org/mailman/listinfo/parisc-linux