Subject: lib/20915: ps won't work against dead current kernels, libkvm out of date
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 03/27/2003 23:08:46
>Number: 20915
>Category: lib
>Synopsis: ps won't work against dead current kernels, libkvm out of date
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 27 20:09:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: TheMan
>Release: 1.6Q as of 20030325, kernel and userland
>Organization:
none
>Environment:
System: NetBSD this 1.6Q NetBSD 1.6Q (THAT) #172: Thu Mar 27 10:39:51 EST 2003
andrew@this:/usr/src/sys/arch/i386/compile/THAT i386
>Description:
my laptop panicked (see kern/20914) and once i made enough space for
the dump (see bin/20913), i tried to run ps on the dead kernel to find
out what pid 686 was. ps said:
ps: _deadproc: no such symbol: Undefined error: 0
nm /netbsd | grep deadproc says that it's now deadprocs, so i changed
libkvm to look for that instead and then ps gave me output. i think
that's probably very wrong, though (the change, not the output), so i
changed it back and filed this pr.
>How-To-Repeat:
crash. savecore. run ps at the corpse.
>Fix:
i can change "_deadproc" to "_deadprocs" in libkvm, but i suspect
there's a lot more work to it than that. besides, it would be nice
not to lose the ability to read older crash dumps with a newer libkvm,
so we really need support for both.
>Release-Note:
>Audit-Trail:
>Unformatted: