This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug nptl/347] pthread_create hang after a failure
- From: "sebastien dot decugis at ext dot bull dot net" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 9 Sep 2004 12:39:42 -0000
- Subject: [Bug nptl/347] pthread_create hang after a failure
- References: <20040826155041.347.sebastien.decugis@ext.bull.net>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- 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.