Subject: bin/20048: ktruss exits with error leaving program running
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dsl@l8s.co.uk>
List: netbsd-bugs
Date: 01/24/2003 23:00:16
>Number:         20048
>Category:       bin
>Synopsis:       ktruss exits with error leaving program running
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 24 14:58:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     David Laight
>Release:        NetBSD 1.6M
>Organization:
	none
>Environment:
System: NetBSD snowdrop 1.6M NetBSD 1.6M (GENERIC) #1: Wed Jan 22 10:30:23 GMT 2003 dsl@snowdrop:/oldroot/usr/bsd-current/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
	If you ktruss a program that tries to read a sparse file, then
	ktruss aborts with the error "ktruss: data too short"
	returning you to your shell prompt, but leaving the program
	still running.
>How-To-Repeat:
	$ echo x >x
	$ echo x | dd of=x seek=10240*10240
	$ ktruss hexdump x
	ktruss: data too short
	$ ps | grep hexdump
	190170 pa R    0:01.86 hexdump x
	$

	Note that ktruss exits but hexdump is still active.
>Fix:
	If ktruss does abort tracing it should probably wait for
	the traced program to exit.
	It probably should also not abort the trace at that point.
>Release-Note:
>Audit-Trail:
>Unformatted: