On Sat, Aug 28, 2010 at 11:55:01PM +0200, Alain Greppin wrote:
> Package: gdb
> Version: 6.8-3
> Severity: important
> 
> sample output of gdb:
> Breakpoint 2, var_subst (
>     s=0x7fffffffd73f "/home/agreppin/src/tools/amake/amake", target=0x0, 
>     req1=0x0) at var.c:154
> 154         *a = '\0';
> (gdb) p n
> $1 = 36
> (gdb) p strlen(s)
> $2 = 1976916864

This bug is specific to STT_GNU_IFUNC.  What GDB is printing is
actually the return value of the indirect function, i.e. the address
of the actual strlen.

I believe some patches were posted for this upstream, but never in an
acceptable state.

-- 
Daniel Jacobowitz
CodeSourcery



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to