Re: Elfutils segfault on IA64
On Wed, Oct 02, 2013 at 01:12:44PM -0500, Patrick Baggett wrote:
> OK, here's what I get when I run that test in GDB:
>
> Program received signal SIGSEGV, Segmentation fault.
> dwarf_frame_register (fs=0x600000000000be00, regno=<optimized out>,
> ops_mem=0x60000fffffffb2d0, ops=0x60000fffffffb2c8,
> nops=0x60000fffffffb2c0) at dwarf_frame_register.c:105
> 105 get_uleb128 (block.length, p);
> (gdb) bt
> #0 dwarf_frame_register (fs=0x600000000000be00, regno=<optimized out>,
> ops_mem=0x60000fffffffb2d0, ops=0x60000fffffffb2c8,
> nops=0x60000fffffffb2c0) at dwarf_frame_register.c:105
> #1 0x4000000000001900 in print_register (arg=<optimized out>, regno=1,
> setname=0x20000000004c9b18 "integer", prefix=0x20000000004c8890 "",
> regname=0x60000fffffffb328 "r1", bits=-19768, type=675872) at
> addrcfi.c:100
This bits=-19768 clearly looks wrong. I would guess that should
say 32.
The type really should also be DW_ATE_signed (5).
Can you set a breakpoint in ppc_register_info?
dwfl_module_register_names should be calling that
hook.
Kurt
Reply to: