Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Feb 2009 18:51:02 +0200 (EET)
From:      Diomidis Spinellis <dds@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/131369: truss -f fails to attach to child processes
Message-ID:  <200902041651.n14Gp2TG001267@icarian.dmst.aueb.gr>
Resent-Message-ID: <200902041710.n14HA13p049649@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         131369
>Category:       bin
>Synopsis:       truss -f fails to attach to child processes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 04 17:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Diomidis Spinellis
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
AUEB
>Environment:
System: FreeBSD icarian.dmst.aueb.gr 8.0-CURRENT FreeBSD 8.0-CURRENT #4 r188112M: Wed Feb 4 10:58:38 EET 2009 dds@icarian.dmst.aueb.gr:/usr/obj/usr/home/dds/src/fbsd-svn/base/head/sys/ICARIAN i386


>Description:
	The truss(1) command provides a -f flag to trace child processes of
	the process being traced.  This doesn't work: the child process isn't
	traced and a child of truss(1) is left spinning in the background.
	If the command is short-lived, then no child truss is left behind,
	and truss reports:
	truss: can not attach to target process: No such process


>How-To-Repeat:
	truss -f sh -c 'jot 100000 >foo'
	truss -f sh -c /bin/echo hi

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902041651.n14Gp2TG001267>