This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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: nptl/tst-execstack on AMD64/kernel 2.9.0-test9


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

Attachment: pgp00000.pgp
Description: PGP signature


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