public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/3124] New: pthread_create in sigcancel unwind
@ 2006-08-24 13:46 walter dot stocker at datacon dot at
  2006-08-24 13:47 ` [Bug nptl/3124] " walter dot stocker at datacon dot at
  2006-09-05 17:17 ` drepper at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: walter dot stocker at datacon dot at @ 2006-08-24 13:46 UTC (permalink / raw)
  To: glibc-bugs

A thread created during unwind caused by pthread_cancel, can't be cancelled 
(doesn't react to SIGCANCEL).

workaround: the created thread unblocks SIGCANCEL (using syscall because 
pthread_sigmask removes SIGCANCEL)

The attached testcase is a try to make a minimal example, the situation 
occurred in a large C++ project.
Within the scope of the project it makes more sense than in the testcase.


Testsystem:
Linux 2.6.15.4 #1 PREEMPT Mon Jul 10 15:39:46 CEST 2006 i686 i686 i386 GNU/Linux
gcc 3.4.4
glibc 2.3.5 (productive system) also: glibc 2.3.6 and glibc 2.4

Testcase build:
gcc -lpthread unwinder.c -o unwinder

The program blocks on pthread_join, the thread continues to run.
 starting unwinder
 unwinder running (b7e89ba0)
 cancel unwinder (b7e89ba0)
 unwinder_cleanup starting thread
 joined unwinder (b7e89ba0)
 thread running (b7678ba0)
 cancel thread (b7678ba0) -> blocks here

-- 
           Summary: pthread_create in sigcancel unwind
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
        AssignedTo: drepper at redhat dot com
        ReportedBy: walter dot stocker at datacon dot at
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=3124

------- 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] 3+ messages in thread

* [Bug nptl/3124] pthread_create in sigcancel unwind
  2006-08-24 13:46 [Bug nptl/3124] New: pthread_create in sigcancel unwind walter dot stocker at datacon dot at
@ 2006-08-24 13:47 ` walter dot stocker at datacon dot at
  2006-09-05 17:17 ` drepper at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: walter dot stocker at datacon dot at @ 2006-08-24 13:47 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From walter dot stocker at datacon dot at  2006-08-24 13:47 -------
Created an attachment (id=1246)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1246&action=view)
testcase

testcase mentioned

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3124

------- 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] 3+ messages in thread

* [Bug nptl/3124] pthread_create in sigcancel unwind
  2006-08-24 13:46 [Bug nptl/3124] New: pthread_create in sigcancel unwind walter dot stocker at datacon dot at
  2006-08-24 13:47 ` [Bug nptl/3124] " walter dot stocker at datacon dot at
@ 2006-09-05 17:17 ` drepper at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2006-09-05 17:17 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-09-05 17:17 -------
I've fixed this now but thread cancellation is really no concept which should be
misused like that.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=3124

------- 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] 3+ messages in thread

end of thread, other threads:[~2006-09-05 17:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-24 13:46 [Bug nptl/3124] New: pthread_create in sigcancel unwind walter dot stocker at datacon dot at
2006-08-24 13:47 ` [Bug nptl/3124] " walter dot stocker at datacon dot at
2006-09-05 17:17 ` drepper at redhat dot com

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