Date: Fri, 15 Apr 2016 12:13:47 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Cc: "freebsd-sparc64@freebsd.org" <freebsd-sparc64@freebsd.org> Subject: Re: qemu-system-sparc64: entering the debugger Message-ID: <20160415091347.GG2422@kib.kiev.ua> In-Reply-To: <570F9E05.40703@ilande.co.uk> References: <570CAFD6.2010004@ilande.co.uk> <570CBA7E.2080509@ilande.co.uk> <570CEF42.9050400@ilande.co.uk> <570F9E05.40703@ilande.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 14, 2016 at 02:41:25PM +0100, Mark Cave-Ayland wrote: > On 12/04/16 13:51, Mark Cave-Ayland wrote: > > The NULL pointer reference occurs here: > > > > 0x00000000c0122008: ldx [ %l2 + 0x3d8 ], %g1 ! %g1 = 0 > > 0x00000000c012200c: ldx [ %g1 + 0x18 ], %g1 ! > > 0x00000000c0122010: brz,pn %g1, 0xc0122050 > > 0x00000000c0122014: nop > > > > AFAICT the corresponding part of db_ps.c is this: > > > > if (p->p_session != NULL && SESS_LEADER(p)) > > strlcat(state, "s", sizeof(state)); > > > > Here p->p_session expands to p->p_pgrp->pg_session which gives us the > > exception because p->p_pgrp is set to NULL. So I guess this is a bug, > > but not the bug I'm looking for... I fixed this in r298043, thank you for the report.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160415091347.GG2422>