Bug 85200 - pstack fails for posix-threaded programs with only the main thread
pstack fails for posix-threaded programs with only the main thread
Product: Red Hat Linux
Classification: Retired
Component: pstack (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Roland McGrath
Depends On:
  Show dependency treegraph
Reported: 2003-02-26 11:45 EST by David Juran
Modified: 2007-04-18 12:51 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-12-04 05:22:13 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
testcase (29 bytes, text/plain)
2003-02-26 11:46 EST, David Juran
no flags Details
and this remedies the problem (604 bytes, patch)
2003-02-26 12:02 EST, David Juran
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2003:250 normal SHIPPED_LIVE Pstack bugfix errata 2003-12-19 00:00:00 EST
Red Hat Product Errata RHBA-2003:362 normal SHIPPED_LIVE Updated pstack packages include several bugfixes 2003-11-18 00:00:00 EST

  None (edit)
Description David Juran 2003-02-26 11:45:29 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202

Description of problem:
pstack doesn't work for a program that only has one single thread, but is
compiled with the option -pthread.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.gcc -o test -pthread test.c
2. ./test
3.now attach to test with pstack and note that you don't get any output.

Actual Results:  32736: ./test

Expected Results:  32736: ./test
0x08048304: main + 0x10 (1, bffff0c4, bffff0cc, 400124b8, 1, 8048244)
0x420158d4: __libc_start_main + 0xa4 (80482f4, 1, bffff0c4, 804820c, 804832c,
4000a950) + 40000f48

Additional info:
Comment 1 David Juran 2003-02-26 11:46:15 EST
Created attachment 90380 [details]
Comment 2 David Juran 2003-02-26 12:02:34 EST
Created attachment 90382 [details]
and this remedies the problem
Comment 3 Roland McGrath 2003-11-11 20:40:16 EST
I've implemented a different fix.  Thanks for the report.
Comment 4 David Juran 2003-12-04 05:22:13 EST
Seems to work fine (-:
Comment 5 John Flanagan 2003-12-19 09:41:42 EST
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.


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