From owner-freebsd-current Wed May 30 12:35:23 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.yadt.co.uk (yadt.demon.co.uk [158.152.4.134]) by hub.freebsd.org (Postfix) with SMTP id BA66337B422 for ; Wed, 30 May 2001 12:35:11 -0700 (PDT) (envelope-from davidt@yadt.co.uk) Received: (qmail 45245 invoked from network); 30 May 2001 19:34:54 -0000 Received: from gattaca.local.yadt.co.uk (HELO mail.gattaca.yadt.co.uk) (qmailr@10.0.0.2) by xfiles.yadt.co.uk with SMTP; 30 May 2001 19:34:54 -0000 Received: (qmail 871 invoked by uid 1000); 30 May 2001 19:35:09 -0000 Date: Wed, 30 May 2001 20:35:09 +0100 From: David Taylor To: freebsd-current@freebsd.org Subject: gcc -pg causes 'kernel trap 12 with interrupts disabled' & panic Message-ID: <20010530203509.A789@gattaca.yadt.co.uk> Mail-Followup-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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