Re: kernel panic and fun debugging

From: Warner Losh <imp_at_bsdimp.com>
Date: Sat, 17 Oct 2020 12:58:48 -0600
On Sat, Oct 17, 2020, 12:00 PM Andrey V. Elsukov <bu7cher_at_yandex.ru> wrote:

> On 15.10.2020 09:56, Steve Kargl wrote:
> > Just had a kernel panic.  Best info I give you is
> >
> > % uname -a
> > FreeBSD mobile 13.0-CURRENT FreeBSD 13.0-CURRENT #1 r366176M: Sat Sep 26
> 10:35:23 PDT 2020     kargl_at_mobile:/usr/obj/usr/src/i386.i386/sys/MOBILE
> i386
> >
> > % kgdb gdb /usr/lib/debug/boot/kernel/kernel.debug vmcore.1
> > ...
> > Reading symbols from /usr/lib/debug/boot/kernel/kernel.debug...
> > /usr/ports/devel/gdb/work-py37/gdb-9.2/gdb/inferior.c:283:
> internal-error: struct inferior *find_inferior_pid(int): Assertion `pid !=
> 0' failed.
> > A problem internal to GDB has been detected,
> > further debugging may prove unreliable.
>
> Hi,
>
> do you have /var/crash/core.txt.1 file?
> It may have some useful info. Also did you try an old version
> /usr/libexec/kgdb ?
>

I got this same error, btw, when I pointed kgdb at the wrong kernel for the
core file.

But you can 'more' the uncompressed vmcore to get at least a traceback if
the proper kernel is gone...

Warner

-- 
> WBR, Andrey V. Elsukov
>
>
Received on Sat Oct 17 2020 - 16:59:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:25 UTC