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: Always 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:
Created attachment 90380 [details] testcase
Created attachment 90382 [details] and this remedies the problem
I've implemented a different fix. Thanks for the report.
Seems to work fine (-:
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. http://rhn.redhat.com/errata/RHBA-2003-250.html