nptl/tst-execstack on AMD64/kernel 2.9.0-test9
Andreas Jaeger
aj@suse.de
Wed Nov 26 14:59:00 GMT 2003
Andreas Jaeger <aj@suse.de> writes:
> Thorsten Kukuk <kukuk@suse.de> writes:
>
>> Hi,
>>
>> On AMD64, the nptl/tst-execstack fails with kernel 2.6.0-test9 in
>> pthread_barrier_wait (&go_barrier);
>>
>> strace shows, that one process is doing a mmap, while a second
>> process is segfaulting at the same time.
>>
>> I'm using gcc 3.3.2 and binutils 2.14.90.0.7, all other tests passes.
>>
>> Does somebody else see this? Is this a kernel problem or a glibc one?
>
> The problem is a bug in dl-execstack. If the mprotect call succeeds
> (it does not succeed on the 2.4 Red Hat kernel), then we do not set
> dl_stack_flags.
>
> I propose the following patch, it passes the test now. Ok to commit?
There's one more question to consider: Should _dl_stack_flags be set
in any errors - therefore also in case of errros? So far this does
not happen...
Andreas
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-hacker/attachments/20031126/234a1f40/attachment.sig>
More information about the Libc-hacker
mailing list