Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 May 2001 09:41:17 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        "Niels Chr. Bank-Pedersen" <ncbp@bank-pedersen.dk>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libkvm kvm_proc.c
Message-ID:  <20010502094117.A20469@walton.maths.tcd.ie>
In-Reply-To: <20010502004226.K17327@bank-pedersen.dk>; from ncbp@bank-pedersen.dk on Wed, May 02, 2001 at 12:42:27AM %2B0200
References:  <200105011034.f41AYGQ01813@freefall.freebsd.org> <20010502004226.K17327@bank-pedersen.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 02, 2001 at 12:42:27AM +0200, Niels Chr. Bank-Pedersen wrote:
> Removing the check for size=0 fixes kvm_getprocs in the
> <user_with_no_processes> case, but unfortunately causes
> a coredump when the caller requests a nonexisting PID:
> 
>   note% ps -p 1234
>   Floating exception (core dumped)
> 
> Don't know how this should be fixed, though.

I don't see that on a patched machine here:

	> ps -p 1234
	  PID  TT  STAT      TIME COMMAND

and it works OK on existing processes too:

	> ps -p $$
	  PID  TT  STAT      TIME COMMAND
	42862  p0  DWs    0:00.20 -tcsh (tcsh)

can you do some more experimentation and see if you can figure out
what's going on? (I presume you know that you need to recompile ps
after recompiling libkvm 'cos ps is statically linked).

	David.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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