This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fix audit testcase with IE TLS disabled


> On Sep 22, 2005, Roland McGrath <roland@redhat.com> wrote:
> 
> >> As explained in the comment below, if we relocate ldso before setting
> >> up TLS, the calloc call at the end of the self relocation will either
> >> use uninitialized TLS (if libc uses IE) or crash because __tls_get_addr
> >> returns NULL.
> 
> > Can you add a test case that demonstrates the failure?
> 
> elf/tst-audit1 will demonstrate the failure, but only if you build
> libc without IE.  I don't know how to demonstrate it otherwise.

If I understand your description, it could be produced by a malloc hook
that cares about the initialized value of a __thread variable.  If you
cannot compose a case like that, then I don't understand the problem
properly based on what you have said.


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]