Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2001 20:35:09 +0100
From:      David Taylor <davidt@yadt.co.uk>
To:        freebsd-current@freebsd.org
Subject:   gcc -pg causes 'kernel trap 12 with interrupts disabled' & panic
Message-ID:  <20010530203509.A789@gattaca.yadt.co.uk>

next in thread | raw e-mail | index | archive | help

--r5Pyd7+fXNt84Ff3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

When trying to profile ircd-hybrid-7 on -CURRENT (I tried using a pre-vm
madness version first, then tried a version cvsuped today), I reliably get
lots of:

	kernel trap 12 with interrupts disabled

messages on the console (one every 5-10 seconds, when the ircd is reasonably
loaded).

I also got those from profiling a simple test program I wrote, which just
opens a couple of pipes, forks, then passes messages back and forth between
child & parent.

One thing I got with ircd-hybrid-7 (when very heavily loaded with lots of
clones), which I _couldnt_ replicate with the test program (probably because
it wasn't very heavily loaded) was a panic:

<...>
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
panic: mutex sched lock recursed at /usr/src/sys/kern/kern_sync.c:858
Debugger("panic")
Stopped at	Debugger+0x45:	pushl	%ebx
db> t
Debugger(c02fa51b) at Debugger+0x45
panic(c02f9684,c031d2a9,c02fad20,35a,282) at panic+0x70
_mtx_assert(c03a7120,9,c02fad20,35a,282) at _mtx_assert+0x6c
mi_switch(d1748420,38,d1748420,e,d17c9e90) at mi_switch+0x25
ithread_schedule(c26e3180,1) at ithread_schedule+0x165
sched_ithd(e) at sched_ithd+0x3d
Xresume14() at Xresume14+0x7
-- interrupt, eip =3D 0xc02c8a18, esp =3D 0xd17c9ed8, ebp =3D 0xd17c9f04 --
trap(d1740018,d1740010,8080010,d17c9f72,85d02ec) at trap+0x94
calltrap() at calltrap+0x5
-- trap 0xc, eip =3D 0xc02c71f5, esp =3D 0xd17c9f4c, ebp =3D 0xd17c9f74 --
generic_copyin(d1748420,809073d,1) at generic_copyin+0x39
ast(d17c9fa8) at ast+0x318
doreti_ast() at doreti_ast+0x6
db>=20


Unfortunately dumpsys() fails, so I don't have much more info, but I can
reproduce this quite easily...

--=20
David Taylor
davidt@yadt.co.uk

--r5Pyd7+fXNt84Ff3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7FUttfIqKXSsJ/xERAqdwAKCa1V3NlwmFyVg/w4qt18E9Zm29WACg4Yw5
Ge0Dk292A+4PLsSByRQY/zs=
=2g29
-----END PGP SIGNATURE-----

--r5Pyd7+fXNt84Ff3--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010530203509.A789>