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

[Bug nptl/347] pthread_create hang after a failure


------- Additional Comments From sebastien dot decugis at ext dot bull dot net  2004-09-09 12:39 -------
I've new information (and I think I found out where the bug come from).

I've run into the same issue again with a newer glibc (CVS from 2004/09/06).

This time I used another sample to reproduce the bug (it was not the initial
intent), code of which can be found here:
http://nptl.bullopensource.org/phpBB/viewtopic.php?t=34

I found that even if the pthread_create fails, the not-created thread will
execute for some instructions... (strange isn't it?). 

This leads to a hang in my sample. I was able to reproduce this about 2 times
out of three.

A simpler sample could be:

void * th(void * arg) { printf("should not execute!!"); }
int main()
{
/* create a thread attribute object with SCHED_RR and priority = 99 */
/* create the thread with this attribute. This shall fail when executed as an
user -- not root */
}

Hope this helps...



-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=347

------- 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]