From owner-freebsd-current@FreeBSD.ORG Mon May 16 15:43:45 2005 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 8C23816A4CE for ; Mon, 16 May 2005 15:43:45 +0000 (GMT) Received: from smtp813.mail.sc5.yahoo.com (smtp813.mail.sc5.yahoo.com [66.163.170.83]) by mx1.FreeBSD.org (Postfix) with SMTP id 44C2443D73 for ; Mon, 16 May 2005 15:43:45 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.205.64 with login) by smtp813.mail.sc5.yahoo.com with SMTP; 16 May 2005 15:43:39 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 2147760F6; Mon, 16 May 2005 10:43:37 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 38407-03; Mon, 16 May 2005 10:43:36 -0500 (CDT) Received: from [127.0.0.1] (optimator [192.168.1.11]) by optimator.noacks.org (Postfix) with ESMTP id DAE6860ED; Mon, 16 May 2005 10:43:35 -0500 (CDT) Message-ID: <4288BFA1.9050606@alumni.rice.edu> Date: Mon, 16 May 2005 10:43:29 -0500 From: Jonathan Noack User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: othermark References: In-Reply-To: X-Enigmail-Version: 0.91.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3C90CAABC9DA5AF541BA2785" X-Virus-Scanned: amavisd-new at noacks.org cc: freebsd-current@freebsd.org Subject: Re: SMP hard lock with libpthread (thread X holds Y but isn'tblocked on a lock) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 15:43:45 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3C90CAABC9DA5AF541BA2785 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 5/16/2005 10:33 AM, othermark wrote: > I have an application that uses shared memory/threads and is linked with > libpthread, running on May 10 -current. Every time I run it, after a few > minutes *poof* hard lock on a SMP box. All debug options are enabled in > the kernel, but it won't break to debugger. Here's what appears on the > console, and addr2line output follows: > > > kernel trap 12 with interrupts disabled > > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 01 > fault virtual address = 0x4 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc06b5dd9 > stack pointer = 0x28:0xe76eeb4c > frame pointer = 0x28:0xe76eeb74 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = resume, IOPL = 0 > current process = 640 (tgen) > > > # addr2line -e kernel.debug 0xc06b5dd9 > /usr/src/sys/kern/subr_turnstile.c:226 > # ls -l /boot/kernel > total 13920 > -r-xr-xr-x 1 root wheel 7102901 May 10 17:15 kernel > > 215 #ifndef SMP > 216 /* > 217 * For UP, we check to see if td is curthread (this shou > 217 ldn't > 218 * ever happen however as it would mean we are in a dead > 218 lock.) > 219 */ > 220 KASSERT(td != curthread, ("Deadlock detected")); > 221 #endif > 222 > 223 /* > 224 * If we aren't blocked on a lock, we should be. > 225 */ > 226 KASSERT(TD_ON_LOCK(td), ( > 227 "thread %d(%s):%d holds %s but isn't blocked on a lo > 227 ck\n", > 228 td->td_tid, td->td_proc->p_comm, td->td_state, > 229 ts->ts_lockobj->lo_name)); I reported the same fatal trap last night, except for me it was an instant reboot from X while running Firefox. -- Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------enig3C90CAABC9DA5AF541BA2785 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MingW32) iD8DBQFCiL+nUFz01pkdgZURAh4pAKCYxzAbgGnblG2u+6NSwiW/WFwY3gCfRKOp dWXnpKcmzOsLcKYdoRjY3Es= =hUyh -----END PGP SIGNATURE----- --------------enig3C90CAABC9DA5AF541BA2785--