From owner-freebsd-current@FreeBSD.ORG Tue Dec 16 23:56:55 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D72CD106567E; Tue, 16 Dec 2008 23:56:55 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id 436328FC1C; Tue, 16 Dec 2008 23:56:55 +0000 (UTC) (envelope-from artemb@gmail.com) Received: by ey-out-2122.google.com with SMTP id 6so455053eyi.7 for ; Tue, 16 Dec 2008 15:56:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=/DghGnjn0nYSAaK0EZDcznCEKWD43LDCdJ4mOVlpTOc=; b=aGh5J4T+mSo3cApMfvygR5t8SdOncjLrWGbo7P96cqa3SHPJOnPZ/yxZfk21PzXZ4N OIqTkASetFnt8U5VaFIb+Vls2llrr62XJ7lX40+ByAOQelgMX1JYMx13H5FcV4YB6jNk zEqZVplK5OuNOVYoBbuOsMbd9C0lKeJCq2EcU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=A29l4PMaLNPdIWtw7fAkpDzw8c9M4fp/6SGmE43THnuCW82hyU8U8Vw5LOMBISZMpK QN31Zc1pt32vuFSG0byaoI/V2UvnlTx4eoTqjE/rzhUGXNivS6tyjS7/B8k3RHjdUQJT K1QLPnTYNRpUTbeqHOhScRkyIPINJzR0WqeDU= Received: by 10.210.86.10 with SMTP id j10mr17712ebb.181.1229471814043; Tue, 16 Dec 2008 15:56:54 -0800 (PST) Received: by 10.210.120.1 with HTTP; Tue, 16 Dec 2008 15:56:54 -0800 (PST) Message-ID: Date: Tue, 16 Dec 2008 15:56:54 -0800 From: "Artem Belevich" Sender: artemb@gmail.com To: freebsd-current@freebsd.org, trasz@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: bce21f298869261e Cc: Subject: panic: _mtx_lock_sleep: recursed on non-recursive mutex sbp @ /usr/src-8-mq/src/sys/cam/cam_periph.h:182 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 16 Dec 2008 23:56:55 -0000 Freshly CVSupped -current/amd64 crashes on boot due to a locking issue in sys/cam. The crash may be related to this commit: http://svn.freebsd.org/viewvc/base?view=revision&revision=186186 Author: trasz Date: Tue Dec 16 17:01:52 2008 UTC (6 hours, 37 minutes ago) Log Message: Fix locking in periph drivers - don't try to unlock periph that was already deallocated. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation --Artem panic: _mtx_lock_sleep: recursed on non-recursive mutex sbp @ /usr/src-8-mq/src/sys/cam/cam_periph.h:182 cpuid = 0 KDB: enter: panic [thread pid 12 tid 100026 ] Stopped at kdb_enter+0x3d: movq $0,0x487294(%rip) db> trace Tracing pid 12 tid 100026 td 0xffffff0004543720 kdb_enter() at kdb_enter+0x3d panic() at panic+0x176 _mtx_lock_flags() at _mtx_lock_flags _mtx_lock_flags() at _mtx_lock_flags+0xc3 xpt_remove_periph() at xpt_remove_periph+0x25 camperiphfree() at camperiphfree+0xbf cam_periph_release() at cam_periph_release+0x43 probedone() at probedone+0x459 camisr_runqueue() at camisr_runqueue+0x1b4 camisr() at camisr+0xc0 intr_event_execute_handlers() at intr_event_execute_handlers+0x68 ithread_loop() at ithread_loop+0xae fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xfffffff8000a2d40, rbp = 0 --- db> show locks exclusive sleep mutex sbp (sbp) r = 0 (0xffffff00045a1ec8) locked @ /usr/src-8-mq/src/sys/cam/cam_xpt.c:7137 --Artem