Subject: Re: Need explaination - kernel debugging!
To: None <tech-kern@netbsd.org>
From: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
List: tech-kern
Date: 09/19/2002 10:22:36
--zhXaljGHf11kAtnf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Sep 18, 2002 at 09:24:14PM -0400, Charu Pakar wrote:
> As a newbie I would like to learn kernel debugging.
>=20
> Given is a kernel panic. I need to know how to
> interpret this :
>=20
> Platform : PowerPC (embedded)
>=20
>=20
> Stopped in pid 68 (mydssrv) at cpu_Debugger+0x18:    =20
> lwz     r11, r1, 0x0
> db> trace
> 0xe9ba8bc0: at panic+1b0
> 0xe9ba8c70: at trap+f48
> 0xe9ba8d10: kernel PGM trap by 0x0: srr1=3D0x89032
>             r1=3D0xe9ba8dc0 cr=3D0x2000f032 xer=3D0

program trap. Includes, but not limited, to=20
the trap instruction, if I recall correctly...
PowerPC specific. You need to look at the
additional registers to find the exact cause.

> ctr=3D0x418adf38
>   <????>  : at recvit+20c
> 0xe9ba8dc0: at recvit+5c
> 0xe9ba8e60: at sys_recvfrom+e8
> 0xe9ba8eb0: at trap+a20
> 0xe9ba8f50: user SC trap by 0x418f64c4: srr1=3D0xf032
>=20
>             r1=3D0x7fffea80 cr=3D0x28000000 xer=3D0x20000000
> ctr=3D0x418adf38

System call trap, again IIRC.=20
>=20
> db> show event
> evcnt type 2: cpu0 traps =3D 257457
> evcnt type 2: cpu0 kernel DSI traps =3D 1028
> evcnt type 2: cpu0 user DSI traps =3D 14143
> evcnt type 2: cpu0 user ISI traps =3D 3949
> evcnt type 2: cpu0 system call traps =3D 204248
> evcnt type 2: cpu0 FPU unavailable traps =3D 4904
> evcnt type 2: cpu0 FPU context switches =3D 4780
> evcnt type 2: cpu0 user alignment traps =3D 78
>=20
> db> show pool
> POOLtrap: kernel read DSI @ 0x41820040 by 0x200008
> (DSISR 0x40000000, err=3D14)
> panic: trap
>=20
> Questions :
> a) What is a "kernel PGM trap" ?
> b) What kind of symptom does this indicate ?
> c) "show pool" gave a kernel DSI trap does this mean
> that there is corruption of kernel data ?

a)+b) you need to read the PowerPC documentation to
decode the trap.

c) possibly...=20

Regards,
	Ignatios

--zhXaljGHf11kAtnf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBPYmJSjCn4om+4LhpAQEZfAgAltRIMKhk7qQqkMoOhSkFmFSaoXc2Pucd
+43oCETOeiB4NZ+w5E/uYknVyTbBIdpS0o+hvwOl71YRpOla54T+5HfgBTZscMJz
lRY4WXsr6xIiqcIrMFaVsbGEjXv95fjOqhcexzdjIXgjD+cJMOvZIU+7yGkYFksS
yw4jLOCibHdmPPdg99njnhugiut8G/AJVQ09isDR4vDTrVHcodfeR+8dpO6jJi19
TKtmIm74PCbELcqnlnl7/QDAx3cPFwRrzD+0QSYnPEAmGkg0U4XxYyDccc94ye40
HXzRS/jPAxeYF+em+RNOXmiQwncXKgTXOny47AzhUB8LSUnSFGTNHQ==
=19Vv
-----END PGP SIGNATURE-----

--zhXaljGHf11kAtnf--