Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2002 17:21:30 +0100
From:      Stefan Farfeleder <stefan@fafoe.dyndns.org>
To:        Fred Souza <cseg@storming.org>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: libkvm breakage?
Message-ID:  <20021212162130.GB644@frog.fafoe>
In-Reply-To: <20021212103236.GA19236@torment.storming.org>
References:  <20021212103236.GA19236@torment.storming.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 12, 2002 at 01:32:36PM +0300, Fred Souza wrote:

<snip>

>   Can anyone else reproduce this? Or better yet, does anyone know what's
>   the problem and how to fix it? :-)

161:	free(ep);

ep points to some character of optarg if -g, -m or -o ist used...

231:	    if ((kp = kvm_getprocs(kd, KERN_PROC_TTY, fs->st_rdev,
232:		&entries)) == 0) {

*kd is uninitialized, your have to call kvm_open() instead of malloc().

Regards,
Stefan Farfeleder

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




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