[16306] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 8.2.9: /usr/proc/bin/ptime

daemon@ATHENA.MIT.EDU (John Carr)
Tue Sep 8 15:20:13 1998

To: bugs@MIT.EDU
Date: Tue, 08 Sep 1998 15:20:10 EDT
From: John Carr <jfc@MIT.EDU>

System name:		contents-vnder-pressvre.mit.edu
Type and version:	SPARC/5 8.2.9 (with mkserv)
Display type:		unknown

What were you trying to do?
	Use the sun tool "ptime"

What's wrong:
	ptime dumps core and doesn't print a warning message if it can't
	exec a process.  To repeat, run "/usr/proc/bin/ptime foo" when there
	is no command "foo" in $PATH.  A child process dumps core so there
	isn't even a shell error message.  (I discovered this trying to run
	ptime on a shell alias -- the alias wasn't expanded because it wasn't
	the first word of the command and the name of the alias wasn't a
	program in $PATH.)

What should have happened:
	ptime should have said "foo: No such file or directory".  I used
	a debugger on the core dump and it appeared to be attempting to
	print an error message, but passed a NULL pointer for the filename
	to print.

Please describe any relevant documentation references:
	proc(1)

Do you have any other comments?
	Yes.  This is a Sun OS bug, not an MIT bug, so the bug report
	should be forwarded to Sun.


home help back first fref pref prev next nref lref last post