NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/48324: ld.elf_so - tty.c memcpy overwrites tcb for tls variant 2




On 19/10/2013 00:05, nathanialsloss%yahoo.com.au@localhost wrote:
Number:         48324
Synopsis:       ld.elf_so - tty.c memcpy overwrites tcb for tls variant 2
[...]

-                       q = p - obj->tlsoffset;
+                       q = p - obj->tlsoffset - obj->tlsinitsize;

I'm not convinced this is correct.

I've just committed some debug code to ld.elf_so to help understand what's going on here. Can you build a -DDEBUG -DRTLD_DEBUG ld.elf_so and run your test problem against it (the environment variable LD_DEBUG needs to be set)

Typically I create a ld.dbg_so and point the program at that so I don't hose my system.

Thanks,
Nick


Home | Main Index | Thread Index | Old Index