From owner-freebsd-current@FreeBSD.ORG Tue Jul 8 16:54:34 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34B3D37B401 for ; Tue, 8 Jul 2003 16:54:34 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CDE143FAF for ; Tue, 8 Jul 2003 16:54:33 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 2137E3ABB4C; Wed, 9 Jul 2003 01:59:26 +0200 (CEST) Date: Wed, 9 Jul 2003 01:59:26 +0200 From: Pawel Jakub Dawidek To: freebsd-current@freebsd.org Message-ID: <20030708235925.GQ4973@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="NKys6zTV8iyMJiwY" Content-Disposition: inline X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i Subject: Panic on SMP machine. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 23:54:34 -0000 --NKys6zTV8iyMJiwY Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello. While building world I get this panic: Fatal trap 12: page fault while in kernel mode cpuid =3D 0; lapic.id =3D 00000000 fault virtual address =3D 24 [...] instruction pointer =3D 0x8:0xc01a405b [...] current process =3D 23 (irq10: atapi1+) kernel: type 12 trap, code=3D0 Stopped at propagate_priority+0x8b: cmpl 0x24(%ebx),%ecx db> trace propagate_priority+0x8b _mtx_lock_sleep+0x209 ithread_loop+0x1cc fork_exit+0xb0 fork_trampoline+0x1a According to instruction pointer panic is here: c01a4049: e8 c2 fe 01 00 call c01c3f10 c01a404e: eb 75 jmp c01a40c5 c01a4050: 89 f0 mov %esi,%eax c01a4052: 88 81 dd 00 00 00 mov %al,0xdd(%ecx) c01a4058: 8b 59 5c mov 0x5c(%ecx),%ebx c01a405b: 3b 4b 24 cmp 0x24(%ebx),%ecx ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ c01a405e: 74 90 je c01a3ff0 c01a4060: 8b 79 24 mov 0x24(%ecx),%edi c01a4063: 8b 47 04 mov 0x4(%edi),%eax c01a4066: 8b 10 mov (%eax),%edx c01a4068: 0f b6 82 dd 00 00 00 movzbl 0xdd(%edx),%eax IMHO it is here (from /sys/kern/kern_mutex.c): 166: /* 167: * Pick up the mutex that td is blocked on. 168: */ 169: m =3D td->td_blocked; 170: MPASS(m !=3D NULL); 171: 172: /* 173: * Check if the thread needs to be moved up on 174: * the blocked chain 175: */ 176: if (td =3D=3D TAILQ_FIRST(&m->mtx_blocked)) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177: continue; 178: } So it looks like 'm' was NULL. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --NKys6zTV8iyMJiwY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPwta3T/PhmMH/Mf1AQEr8QP+JdGNtDpiLFtB9SwZMpGKztXsU+C0A5xz Q5MjDusuU2wLvfv0AMizWL7ha6ljwEj1rVd74I/A1E2O2ExV8q06C/+h/oQShHAq Hs2gp9fwaZhEqF3kGwrdXRT/YvjsEDbKXIRc9Iw2tlP3juOXszBWzgGd503k5xRl IIwm76UwS7Y= =3Hiv -----END PGP SIGNATURE----- --NKys6zTV8iyMJiwY--