Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Recent kernel crashes at shutdown



On 02/12/13 13:52, Christos Zoulas wrote:
> On Feb 12,  9:28am, roy%marples.name@localhost (Roy Marples) wrote:
> -- Subject: Re: Recent kernel crashes at shutdown
>
> | On 11/02/2013 21:54, Dave Tyson wrote:
> | > On 02/11/13 20:56, Christos Zoulas wrote:
> | >>
> | >> I think there is one. Someone else is seeing the same problem with 
> | >> hald,
> | >> and I've given him http://www.netbsd.org/~christos/lwp-hald.diff, 
> | >> but we
> | >> could not figure out why on his machine hald ended up running with 
> | >> the
> | >> wrong uid! I could not duplicate the issue on mine.
> | >>
> | >> christos
> | >>
> | > Thanks for the quick response. I'll get source on this system and a 
> | > try
> | > with the diff in a couple of days to see if I can cast some light on 
> | > the
> | > matter.
> | 
> | I've been seeing that with hald for quite some time now and it's only 
> | thanks to the above patch the issue is worked around.
> | My hald is built from a long time ago - is yours quite recent?
> | 
> | Interestingly this is on i386 as well - maybe something uniquely going 
> | wrong as amd64 is probably more popular these days?
> | 
> | Hopefully someone can solve it as my skills lie in other areas.
>
> Ok, I guess I will try to revive my i386 box and see if I can reproduce it
> there!
>
> christos
I compiled and tested a kernel from today's sources with and without the
patch.
Without the patch the kernel paniced and then hung. With the patch shutdown
worked perfectly. The patch applied cleanly...

The following messages appeared on startup/shutdown:

Feb 12 16:19:20 darkstar /netbsd: /usr/src/sys/kern/kern_lwp.c,787:
hald[773]: [uid=0] (7/1)
Feb 12 16:19:20 darkstar /netbsd: /usr/src/sys/kern/kern_prot.c,357:
hald[773]: [uid=0] (8/-1)
Feb 12 16:19:20 darkstar /netbsd: /usr/src/sys/kern/kern_prot.c,361:
hald[773]: [uid=1002] (0/1)
Feb 12 16:19:20 darkstar /netbsd: /usr/src/sys/kern/kern_prot.c,381:
hald[773]: [uid=1002] (1/0)
Feb 12 16:19:20 darkstar /netbsd: /usr/src/sys/kern/kern_prot.c,386:
hald[773]: [uid=1002] (1/0)
Feb 12 16:19:20 darkstar console-kit-daemon[757]: WARNING: Error waiting
for native console 7 activation: Device not configured
Feb 12 16:19:20 darkstar console-kit-daemon[757]: WARNING: Error waiting
for native console 6 activation: Device not configured
Feb 12 16:19:24 darkstar /netbsd: /usr/src/sys/kern/kern_lwp.c,787:
hald-runner[727]: [uid=0] (6/1)
Feb 12 16:20:13 darkstar /netbsd: /usr/src/sys/kern/kern_lwp.c,1195:
hald[773]: [uid=0] (7/-1)
Feb 12 16:20:13 darkstar /netbsd: /usr/src/sys/kern/kern_lwp.c,1195:
hald-runner[727]: [uid=0] (6/-1)

The UID for hal was as expected.

Thanks,
Dave







Home | Main Index | Thread Index | Old Index