Bug 64303 - process is stopped after detaching
Summary: process is stopped after detaching
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:
: 66191 71166 73298 (view as bug list)
Depends On:
Blocks: 67217
TreeView+ depends on / blocked
 
Reported: 2002-05-01 23:40 UTC by Kjetil T. Homme
Modified: 2007-04-18 16:42 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-09-03 05:28:49 UTC
Embargoed:


Attachments (Terms of Use)

Description Kjetil T. Homme 2002-05-01 23:40:31 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020430

Description of problem:
if you attach to a running process, and terminate strace with ^C, the running
process will remain in a stopped state.

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


How reproducible:
Always

Steps to Reproduce:
in window 1: sleep 20
in window 2: strace -p $(pgrep sleep)
             press ^C
wait 20 seconds.  the sleep is still running.
in window 2: kill -CONT $(pgrep sleep)
the sleep terminates immediately.

	

Expected Results:  strace should send a SIGCONT or whatever after detaching (I
don't know how it works in detail :)

Additional info:

Comment 1 Bill Nottingham 2002-06-21 21:15:14 UTC
*** Bug 66191 has been marked as a duplicate of this bug. ***

Comment 2 Roland McGrath 2002-08-20 23:06:22 UTC
*** Bug 71166 has been marked as a duplicate of this bug. ***

Comment 3 Bill Nottingham 2002-09-03 05:27:02 UTC
Rhis should be better with strace-4.4-8.

Comment 4 Bill Nottingham 2002-09-03 05:28:42 UTC
*** Bug 73298 has been marked as a duplicate of this bug. ***

Comment 5 Jay Turner 2002-09-03 13:44:45 UTC
Fix confirmed with strace-4.4-8.

Comment 6 Radu Greab 2002-12-02 00:55:23 UTC
strace-4.4-8 fails for me eventually if I keep repeating the test below. This is
happening on a RedHat 7.3 box, kernel-smp-2.4.18-18.7.x, dual Intel Pentium 3.

Process 1153 is xinetd.
# grep ^State /proc/1153/status
State:  S (sleeping)
# ./BUILD/strace-4.4/strace -v -p 1153
select(7, [3 5 6], NULL, NULL, NULL <unfinished ...>
# grep ^State /proc/1153/status
State:  S (sleeping)
# ./BUILD/strace-4.4/strace -v -p 1153
select(7, [3 5 6], NULL, NULL, NULL <unfinished ...>
# grep ^State /proc/1153/status
State:  T (stopped)
# ./BUILD/strace-4.4/strace -v -p 1153
--- SIGSTOP (Stopped (signal)) ---
select(7, [3 5 6], NULL, NULL, NULL <unfinished ...>
# grep ^State /proc/1153/status
State:  S (sleeping)


strace-4.4-9.1 worked for me, but only after I applied to detach() the changes
from patch21, strace-x86_64.patch. It seems that those changes are not quite
architecture specific, but they fix the problem on i386 too.



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