public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/347] New: pthread_create hang after a failure
@ 2004-08-26 15:50 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
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: sebastien dot decugis at ext dot bull dot net @ 2004-08-26 15:50 UTC (permalink / raw)
  To: glibc-bugs

When trying to create threads with a high priority, as a normal user, the
function pthread_create will return EPERM on the first try then hang in the
second call.

Compiler is gcc 3.4.1

Kernel is 2.6.8.1 smp running on a 2-way i686.

Glibc is a recent CVS with NPTL addon (tried with CVS from 2004-07-26 and
2004-08-23).

Here is the strace output corresponding to the attached sample:
[...skip...]
sched_get_priority_max(SCHED_FIFO)      = 99
sched_get_priority_min(SCHED_FIFO)      = 1
mmap2(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40144000
brk(0)                                  = 0x804a000
brk(0x806b000)                          = 0x806b000
mprotect(0x40144000, 4096, PROT_NONE)   = 0
sched_get_priority_min(SCHED_FIFO)      = 1
sched_get_priority_max(SCHED_FIFO)      = 99
clone(child_stack=0x40944b28,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
parent_tidptr=0x40944bf8, {entry_number:6, base_addr:0x40944bb0, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0,
useable:1}, child_tidptr=0x40944bf8) = 17737
sched_setscheduler(0, SCHED_FIFO, { 99 }) = -1 EPERM (Operation not permitted)
tgkill(17736, 0, SIGRTMIN)              = -1 EINVAL (Invalid argument)
sched_get_priority_min(SCHED_FIFO)      = 1
sched_get_priority_max(SCHED_FIFO)      = 99
futex(0x40944d94, FUTEX_WAIT, 2, NULL <unfinished ...>

-- 
           Summary: pthread_create hang after a failure
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
        AssignedTo: drepper at redhat dot com
        ReportedBy: sebastien dot decugis at ext dot bull dot net
                CC: glibc-bugs at sources dot redhat dot com


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-09-10 14:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-26 15:50 [Bug nptl/347] New: pthread_create hang after a failure 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
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

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