Bug 3015 - gdb + threaded programs = lots of zombie threads, even with PTHREAD_CREATE_DETACHED
gdb + threaded programs = lots of zombie threads, even with PTHREAD_CREATE_DE...
Status: CLOSED WORKSFORME
Product: Red Hat Linux
Classification: Retired
Component: gdb (Show other bugs)
6.0
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Jay Turner
http://pendor.mckusick.com/~benco/thr...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-05-24 16:15 EDT by benco
Modified: 2015-01-07 18:37 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-07-30 17:33:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description benco 1999-05-24 16:15:20 EDT
The program in the attached URL generates four threads
which all immediately exit. When run standalone from the
shell, there are two PIDs devoted to my program, as there
should be (one for the main thread, and one for the thread
manager--the other four exit cleanly). When run from gdb,
however, the same two threads show up, along with four
processes in the zombie state, even though the threads are
all created with the PTHREAD_CREATE_DETACHED flag in their
attributes.

This makes debugging impossible for large programs that
create many short-lived threads, as the process table fills
up quickly.
Comment 1 Jim Kingdon 1999-07-30 17:33:59 EDT
The given URL http://pendor.mckusick.com/~benco/threadtest.c does not
seem to (any longer) be valid.  Could you please email threadtest.c?

Note You need to log in before you can comment on or make changes to this bug.