Bug 62591 - strace -f [threaded process] freezes when a child exits.
Summary: strace -f [threaded process] freezes when a child exits.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: strace
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
: 62176 (view as bug list)
Depends On:
Blocks: 61590
TreeView+ depends on / blocked
 
Reported: 2002-04-02 21:02 UTC by Bill Crawford
Modified: 2007-04-18 16:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-08-06 01:53:01 UTC
Embargoed:


Attachments (Terms of Use)
strace output (20.48 KB, text/plain)
2002-04-02 21:04 UTC, Bill Crawford
no flags Details
snippet from output of "ps auxww" (580 bytes, text/plain)
2002-04-02 21:05 UTC, Bill Crawford
no flags Details

Description Bill Crawford 2002-04-02 21:02:23 UTC
Description of Problem:
Running "strace -f host www.redhat.com" never finishes, and I have to kill -9
the strace process.

Version-Release number of selected component (if applicable):
[bill@pikachu bill]$ rpm -qf $( which strace )
strace-4.4-3
[bill@pikachu bill]$ rpm -qf $( which host )
bind-utils-9.2.0-8
[bill@pikachu bill]$ rpm -q glibc
glibc-2.2.5-30
[bill@pikachu bill]$ uname -a
Linux pikachu.bchsz.org.uk 2.4.18-0.12 #1 Wed Mar 27 16:18:42 EST 2002 i686
unknown

Comment 1 Bill Crawford 2002-04-02 21:04:34 UTC
Created attachment 51924 [details]
strace output

Comment 2 Bill Crawford 2002-04-02 21:05:16 UTC
Created attachment 51925 [details]
snippet from output of "ps auxww"

Comment 3 Bill Crawford 2002-04-02 21:08:45 UTC
killall -9 host yields the following after the strace output instead of "Killed"
--

Unable to wait on inferior: No child processes
Unable to wait on inferior: No child processes


Comment 4 Brent Fox 2002-04-09 15:29:09 UTC
This looks very similar to bug #62176

Comment 5 Bill Crawford 2002-04-09 20:57:25 UTC
... bug  #62176 which I can't read ... this is really frustrating, yanno?

Comment 6 Bill Nottingham 2002-04-10 04:50:25 UTC
*** Bug 62176 has been marked as a duplicate of this bug. ***

Comment 7 Aleksey Nogin 2002-04-10 14:26:43 UTC
If I debug a process using "strace -f" and the process spawns a child and waits
for it, strace would freeze. ps would show both the child and the parent in the
"T" state and if will stay that way untill kill -9.

I am seeing it with
strace-4.4-3
glibc-2.2.5-30
kernel-2.4.18-0.13

It didn't exist in 7.2



Comment 8 Jakub Jelinek 2002-04-11 18:01:20 UTC
Are you really sure this did not exist in 7.2?
I just tried strace -f -o log ./ex3 (where ex3 is libc/linuxthreads/Examples/ex3.c,
quite simple pthread test).
strace needs to be kill -9ed with glibc-2.2.5-32+strace-4.3-2+kernel-2.4.9-21smp,
glibc-2.2.4-24+strace-4.3-2+kernel-2.4.17-0.13smp and glibc-2.2.5-32+strace-4.4-3+kernel-2.4.17-0.13smp
combinations.

Comment 9 Aleksey Nogin 2002-04-11 18:43:59 UTC
Yes, pretty sure.

My test is

strace -f sh -c 'TEST=`/bin/echo xyz`; exec /bin/echo xyz'

It works OK on
glibc-2.2.4-19.3 kernel-smp-2.4.9-31 strace-4.3-2 and
glibc-2.2.4-19.3 kernel-smp-2.4.9-21 strace-4.3-2

but gets stuck (and requires kill -9) on
glibc-2.2.5-30 kernel-2.4.18-0.13 strace-4.4-3

I will go upgrade one of 7.2 machines to the latest glibc and report back.

Comment 10 Aleksey Nogin 2002-04-11 19:34:47 UTC
(disregard the kernel-smp-2.4.9-31 line in the above - that machine still runs -21).

Works OK:

glibc-2.2.4-19.3 kernel-2.4.9-31 strace-4.2.20010119-3  (RH7.1+updates)

After upgrading to glibc-2.2.4-24 both the above and the kernel-smp-2.4.9-21
strace-4.3-2 one (but not rebooting it), it still works.


Comment 11 Jakub Jelinek 2002-04-12 19:19:03 UTC
This means there are two separate problems.
strace -f sh -c 'TEST=`/bin/echo xyz`; exec /bin/echo xyz'
which is caused by the patch which was added in strace-4.3-3,
and problems with threaded programs, which existed in 7.2 and probably earlier
too.

Comment 12 Bill Nottingham 2002-04-15 03:26:55 UTC
*** Bug 63370 has been marked as a duplicate of this bug. ***

Comment 13 Jay Berkenbilt 2002-04-15 15:13:46 UTC
I reported this problem in bug 63370 as a problem with skipjack.... Sorry -- I
limited my search only to the beta release and not rawhide.  Oops.

In any case, since this does impact the version of strace in the beta release,
does it make sense to change the Product of this bug?

Comment 14 Jakub Jelinek 2002-04-17 08:01:03 UTC
Should be fixed in strace-4.4-4.

Comment 15 Jay Berkenbilt 2002-05-16 16:30:17 UTC
This problem appears to be fixed in RedHat 7.3, but the problem I reported in
63370, which was marked as a duplicate of this bug, has not been entirely fixed.
 I am reopening that bug, as it is different from this one, changing it to a
Valhalla problem, and updating it with new information.  I don't see why this
specific bug, which no longer appears in 7.3 with strace-4.4-4, can't be closed,
but I am obviously not the one who should make that judgment call being neither
a RedHat person nor the original poster....

Comment 16 Jay Berkenbilt 2002-08-06 01:52:57 UTC
This problem appears to be fixed in limbo.  Maybe someone should close it.

Comment 17 Brian Brock 2002-09-03 21:22:56 UTC
Fix verified, closing.

(resolution set to RAWHIDE due to product version of defect, likely fixed much
earlier.)


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