This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug linuxthreads/1064] New: linuxthreads hangs: pthread does not return
- From: "vivekk at cybage dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 12 Jul 2005 11:11:44 -0000
- Subject: [Bug linuxthreads/1064] New: linuxthreads hangs: pthread does not return
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
Hello,
I am using linuxthreads in the below environment.
OS: Red Hat Enterprise Linux ES release 3 (Taroon Update 4)
gcc: 3.3
glibc: 2.3.2
glibc-linuxthreads: 2.3.2
Here are the details of my application in context of threads:
1. A multi-threaded application using linuxthreads (pthreads).
2. Compiling the application using -D_REENTRENT and linking to above version of
pthread library.
3. Creating 5 threads using pthread_create.
4. Not detaching the threads and the thread exits from the thread function by
simply returning from the function;
5. The main thread joins the threads created.
6. No signal handling is used.
Problem:
The application works properly most of the time but sometimes it seems that one
of the thread created is not exitting properly and it may possible that no
signal being delivered on pthread exit.
Here is the output of strace on the suspected thread:
2320 getppid() = 2319
2320 poll([{fd=3, events=POLLIN}], 1, 2000) = 0
2320 getppid() = 2319
2320 poll([{fd=3, events=POLLIN}], 1, 2000) = 0
2320 getppid() = 2319
2320 poll([{fd=3, events=POLLIN}], 1, 2000) = 0
2320 getppid() = 2319
2320 poll([{fd=3, events=POLLIN}], 1, 2000) = 0
2320 getppid() = 2319
2320 poll([{fd=3, events=POLLIN}], 1, 2000) = 0
2320 getppid() = 2319
2320 poll([{fd=3, events=POLLIN}], 1, 2000) = 0
2320 getppid() = 2319
This goes into indefinite loop and possibly indicate a missing signal delivery
to the manager thread when a thread terminates.
So, is this a knownissue with the above versions of glibc-linuxthreads or I am
missing something?
Appreciate your help in this matter.
--
Summary: linuxthreads hangs: pthread does not return
Product: glibc
Version: 2.3.2
Status: NEW
Severity: critical
Priority: P2
Component: linuxthreads
AssignedTo: gotom at debian dot or dot jp
ReportedBy: vivekk at cybage dot com
CC: glibc-bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1064
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.