This is the mail archive of the libc-alpha@sources.redhat.com 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]

exec stack and pthread_exit () problem


When I used --as-needed -lgcc_s --no-as-needed to replace -lgcc_eh,
I got random segfault on nptl/tst-execstack. I noticed that the main
thread changed the stack to executable and then called pthread_exit. It
seems that depending on the timing, the waiter thread would segfault.
The following patch fixes the segfault. Does pthread_exit in nptl do
anything to stack permission?


H.J.

Attachment: libc-execstack-1.patch
Description: Text document


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