Bug 106043 - strace -fF hangs on simple pthread program
strace -fF hangs on simple pthread program
Status: CLOSED RAWHIDE
Product: Red Hat Raw Hide
Classification: Retired
Component: strace (Show other bugs)
1.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Roland McGrath
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-10-02 04:40 EDT by Dmitry V. Levin
Modified: 2007-04-18 12:58 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-12-14 18:40:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
stracetest.c (273 bytes, text/x-csrc)
2003-10-02 04:40 EDT, Dmitry V. Levin
no flags Details
patch which fix the problem (43 bytes, patch)
2003-12-14 18:37 EST, Dmitry V. Levin
no flags Details | Diff

  None (edit)
Description Dmitry V. Levin 2003-10-02 04:40:17 EDT
Description of problem: 
This trivial "badly written" pthread test causes "strace -fF" to hang. 
 
Version-Release number of selected component (if applicable): 
Tested strace-4.4.99 and strace-4.4 
 
How reproducible: 
Always on all (available for me) linuxthreads platforms. 
 
Steps to Reproduce: 
gcc -Wall -Werror stracetest.c -lpthread -o stracetest 
strace -fF ./stracetest
Comment 1 Dmitry V. Levin 2003-10-02 04:40:57 EDT
Created attachment 94874 [details]
stracetest.c
Comment 2 Roland McGrath 2003-11-06 21:13:37 EST
I cannot reproduce this in 4.4.99-1.  Please verify the strace, glibc,
and kernel versions you are using.
Comment 3 Dmitry V. Levin 2003-11-07 08:24:28 EST
As I wrote in original post before bugzilla corruption, 
tested with 
kernel-2.2.25 and kernel-2.4.22, 
glibc-2.2.5 and glibc-2.3.2, 
on few ALT Linux and Debian distributions. 
All above with linuxthreads. 
Comment 4 Dmitry V. Levin 2003-12-14 18:37:20 EST
Created attachment 96533 [details]
patch which fix the problem
Comment 5 Dmitry V. Levin 2003-12-14 18:40:57 EST
Apparently fixed in strace-4.5.1 (linuxthreads bug?); 
your patch which fixes the problem is attached for convenience. 

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