Subject: Re: Tracing system crash causes
To: D'Arcy J.M. Cain <darcy@druid.net>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: current-users
Date: 05/25/1998 10:16:04
On May 23, D'Arcy J.M. Cain wrote
> Can someone please help me.  I'm getting really tired of users on my
> system sending me FreeBSD uptimes.  I have to find out why this production
> system is crashing on average of every two days.
> 
> I am sure it is a rogue process using up system resources but I have no
> idea which process causes it and I don't know why the system crashes
> instead of failing the program using the resources.  This is a kernel
> built from 1.3B sources.  It is the i386 port if that makes a difference.
> Here is the back trace from the latest crash.

You can use 'ps -ax -M /var/crash/netbsd.x.core' to find which process was
running (i.e state R) at the time of the crash.
You should also be able to print the value of the pointer 'curproc' from
withing gdb. You can compare with the output of
'ps -O paddr -M /var/crash/netbsd.x.core'

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--