linuxthread race condition
Jakub Jelinek
jakub@redhat.com
Thu Nov 29 16:57:00 GMT 2001
On Fri, Nov 30, 2001 at 10:42:51AM +0100, Andreas Schwab wrote:
> + if (sp >= __pthread_initial_thread_bos)
> + return &__pthread_initial_thread;
How could it be initial thread? Even if it could (it cannot), for
FLOATING_STACKS, this is totally bogus test (sp >= -1) and for non-floating
stacks there is no guarantee that there are no thread stacks above initial
thread stack (think about sparc64, where sp initial thread stack is below VM
hole, while thread stacks can be in the mmap area (after VM hole)).
Jakub
More information about the Libc-hacker
mailing list