Subject: Re: /usr/bin/w dumps core on mips
To: None <simonb@NetBSD.ORG>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-mips
Date: 07/26/2000 00:11:34
In <200007251419.AAA20263@balrog.supp.cpr.itg.telecom.com.au>
simonb@NetBSD.ORG wrote:
> Izumi Tsutsui wrote:
> > I notice 1.5_ALPHA /usr/bin/w dumps core on both pmax and newsmips:
> > % ./w
> > 10:24PM up 20 mins, 2 users, load averages: 0.12, 0.16, 0.19
> > USER TTY FROM LOGIN@ IDLE WHAT
> > Segmentation fault (core dumped)
> What are the users logged in?
"tsutsui" is logged in.
> "tsutsui" certainly shouldn't cause
> problems. What does "print *ep->kp" show (I think that's right)? The
> ep->kp->p_login field should be properly null terminated in all cases.
print *ep->kp says "Attempt to extract a component of a value
that is not a structure pointer."
Oh, sorry, I did not update my source tree after your
KERN_CONSDEV changes. I'll try with newer sources.
The problem occured only if someone is logged in
from /dev/console...
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp