This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[Fwd: [Bug nptl/551] New: pthread_exit called on main thread immediatelyterminate the whole process even when other thread exists]
- From: Eric Valette <eric dot valette at free dot fr>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 16 Nov 2004 14:50:52 +0100
- Subject: [Fwd: [Bug nptl/551] New: pthread_exit called on main thread immediatelyterminate the whole process even when other thread exists]
- Organization: HOME
- Reply-to: eric dot valette at free dot fr
Hi,
Wanted to free ressources associated with the main thread. Was unlucky.
--
__
/ ` Eric Valette
/-- __ o _. 6 rue Paul Le Flem
(___, / (_(_(__ 35740 Pace
Tel: +33 (0)2 99 85 26 76 Fax: +33 (0)2 99 85 26 76
E-mail: eric.valette@free.fr
--- Begin Message ---
- From: "eric dot valette at free dot fr" <sourceware-bugzilla at sources dot redhat dot com>
- To: eric dot valette at free dot fr
- Date: 16 Nov 2004 13:32:07 -0000
- Subject: [Bug nptl/551] New: pthread_exit called on main thread immediately terminate the whole process even when other thread exists
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
The following program works fine with with linuxThread pthread implementation
but not with the nptl pthread implementation. Reading the man page, pthread_exit
should not kill the process until the last thread exited.
Rationale : the way the main thread is created is unkwon, so it is better for MT
application to destroy the main thread (and free the assocaited ressources).
--
Summary: pthread_exit called on main thread immediately terminate
the whole process even when other thread exists
Product: glibc
Version: 2.3.3
Status: NEW
Severity: normal
Priority: P2
Component: nptl
AssignedTo: drepper at redhat dot com
ReportedBy: eric dot valette at free dot fr
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: linux-i486
GCC host triplet: linux-i486
GCC target triplet: linux-i486
http://sources.redhat.com/bugzilla/show_bug.cgi?id=551
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
--- End Message ---