This is the mail archive of the glibc-bugs@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]

[Bug linuxthreads/3318] Overriding free which clobbers data and calls pthread_getspecific can get bad value (linuxthreads)


------- Additional Comments From ian at airs dot com  2006-10-07 01:56 -------
Created an attachment (id=1357)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1357&action=view)
Test case

This test case crashes for me on i686-pc-linux-gnu running Fedora Core 4 with
glibc-2.3.6-3 when I set the environment variable LD_ASSUME_KERNEL to 2.4.19. 
In the __libc_free routine, pthread_getspecific returns garbage.

This isn't the simplest possible test case--it's a modification of the NPTL
test case.  The call to abort winds up hanging as the pthread code waits for a
lock, so I put in an alarm to get the program to actually exit.  The hang is
probably due to the bug I reported in bugzilla PR 2948, which has been fixed in
the mainline sources.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3318

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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