Re: qemu-system-sparc64: entering the debugger

Konstantin Belousov <[email protected]>
Newsgroups gmane.os.freebsd.devel.sparc
Message-ID <[email protected]>
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-sparc64
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.