From robert@fledge.watson.org  Sat Aug 21 21:03:19 2004
Return-Path: <robert@fledge.watson.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4418516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 21 Aug 2004 21:03:19 +0000 (GMT)
Received: from fledge.watson.org (fledge.watson.org [204.156.12.50])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DB32243D2D
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 21 Aug 2004 21:03:18 +0000 (GMT)
	(envelope-from robert@fledge.watson.org)
Received: from fledge.watson.org (localhost [127.0.0.1])
	by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i7LL1DDD091060
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 21 Aug 2004 17:01:13 -0400 (EDT)
	(envelope-from robert@fledge.watson.org)
Received: (from robert@localhost)
	by fledge.watson.org (8.12.11/8.12.11/Submit) id i7LL1Dsn091059;
	Sat, 21 Aug 2004 17:01:13 -0400 (EDT)
	(envelope-from robert)
Message-Id: <200408212101.i7LL1Dsn091059@fledge.watson.org>
Date: Sat, 21 Aug 2004 17:01:13 -0400 (EDT)
From: Robert Watson <robert@fledge.watson.org>
Reply-To: Robert Watson <robert@fledge.watson.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: truss wedges if child exits at the wrong moment
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         70803
>Category:       bin
>Synopsis:       truss wedges if child exits at the wrong moment
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 21 21:10:25 GMT 2004
>Closed-Date:    Wed Jun 20 18:17:52 GMT 2007
>Last-Modified:  Wed Jun 20 18:17:52 GMT 2007
>Originator:     Robert Watson
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
FreeBSD Project
>Environment:
System: FreeBSD paprika 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Fri Aug 20 10:04:06 EDT 2004     rwatson@paprika:/usr/obj/usr/src/sys/PAPRIKA  i386

>Description:

When truss is run on a non-present binary, the child process appears to exit
at an untimely moment sometimes leaving the parent truss process wedged.

>How-To-Repeat:

Mount procfs.
Run truss with a target program name that is not found.

paprika# truss notfound
truss: execvp notfound: No such file or directory
load: 0.48  cmd: truss 61304 [pioctl] 0.00u 0.00s 0% 772k

>Fix:

No fix attached.  However, it appears to wedge in the first call to
ioctl() in the parent process following the fork() in
setup.c:setup_and_wait().  ps(1) reveals the child process is a zombie
and is marked "<defunct>".  It looks like the ioctl() is not returning
S_EXIT for some reason.  If I insert a sleep(5) before the call to err()
in the child, it still gets into this state, so perhaps the pioctl()
code is not being notified of a child exit, or is treating a zombie as
"still alive".
>Release-Note:
>Audit-Trail:

From: "Howard Su" <howard0su@gmail.com>
To: bug-followup@FreeBSD.org, robert@fledge.watson.org
Cc:  
Subject: Re: bin/70803: truss wedges if child exits at the wrong moment
Date: Wed, 20 Jun 2007 20:23:23 +0800

 ------=_Part_83790_7960278.1182342203347
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 Can not repro after ptrace based truss imported. Suggest close this.
 
 ------=_Part_83790_7960278.1182342203347
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 <div>Can not repro after ptrace based truss imported. Suggest close this.</div>
 <div>&nbsp;</div>
 
 ------=_Part_83790_7960278.1182342203347--
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Wed Jun 20 18:17:50 UTC 2007 
State-Changed-Why:  
Submitter reports that this can probably be closed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70803 
>Unformatted:
