This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Fwd: [Bug nptl/551] New: pthread_exit called on main thread immediatelyterminate the whole process even when other thread exists]


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]