public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "sebastien dot decugis at ext dot bull dot net" <sourceware-bugzilla@sources.redhat.com>
To: glibc-bugs@sources.redhat.com
Subject: [Bug nptl/347] pthread_create hang after a failure
Date: Thu, 09 Sep 2004 12:39:00 -0000	[thread overview]
Message-ID: <20040909123942.20184.qmail@sourceware.org> (raw)
In-Reply-To: <20040826155041.347.sebastien.decugis@ext.bull.net>


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


  parent reply	other threads:[~2004-09-09 12:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-26 15:50 [Bug nptl/347] New: " sebastien dot decugis at ext dot bull dot net
2004-08-26 15:53 ` [Bug nptl/347] " sebastien dot decugis at ext dot bull dot net
2004-08-30 11:25 ` jakub at redhat dot com
2004-08-30 12:17 ` sebastien dot decugis at ext dot bull dot net
2004-09-09 12:39 ` sebastien dot decugis at ext dot bull dot net [this message]
2004-09-09 12:52 ` sebastien dot decugis at ext dot bull dot net
2004-09-10 14:16 ` sebastien dot decugis at ext dot bull dot net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040909123942.20184.qmail@sourceware.org \
    --to=sourceware-bugzilla@sources.redhat.com \
    --cc=glibc-bugs@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).