From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 14 09:43:58 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F9361A6 for ; Sat, 14 Jun 2014 09:43:58 +0000 (UTC) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1FD68204E for ; Sat, 14 Jun 2014 09:43:57 +0000 (UTC) Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 44E3120E2E; Sat, 14 Jun 2014 05:43:56 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Sat, 14 Jun 2014 05:43:56 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=fiT93Vn0fPDpI2JPXTQbcD fk/KI=; b=Vu0uLoh2Tao3RhqvDTLhvg8UHAtMs5Go5z7WTNnIIC6vounITFmreE /nY1i2cPolxisNlORdZWS2MicRNEiTeJd9g51zSmONVx8EsYFR1e8x/xeIafn4pz 4C6oCuCH1Yui+6R8SZJg1m/5dQJrDs5VbtoZmtvbkM4Cy+/g6/Izo= X-Sasl-enc: atzaRNiHGUn8cTH0AWOmKLio/a2ZfK1/odoa4kAX8M4x 1402739035 Received: from [192.168.1.31] (unknown [203.206.138.26]) by mail.messagingengine.com (Postfix) with ESMTPA id 4920E68016B; Sat, 14 Jun 2014 05:43:55 -0400 (EDT) Message-ID: <539C1959.30203@freebsd.org> Date: Sat, 14 Jun 2014 19:43:53 +1000 From: Darren Reed User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Mateusz Guzik , freebsd-hackers@freebsd.org Subject: Re: FreeBSD 10.0 adaptive mutex with strange mtx_lock value = panic References: <539BFEC4.1020103@freebsd.org> <20140614084847.GA8122@dft-labs.eu> In-Reply-To: <20140614084847.GA8122@dft-labs.eu> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2014 09:43:58 -0000 On 14/06/2014 6:48 PM, Mateusz Guzik wrote: ... > This is a 'destroyed mutex' state, i.e. you are doing mtx_lock after > mtx_destroy. > > A kernel with INVARIANTS enabled wold tell you that straight away. I added "options INVARIANTS" to a kernel and recompiled.. Well, I tried to recompile - compiling ends like this: cam_periph.o: In function `cam_periph_find': /usr/src/sys/amd64/compile/DEBUG/../../../cam/cam_periph.c:301: undefined reference to `__mtx_assert' cam_periph.o: In function `cam_periph_release_locked_buses': /usr/src/sys/amd64/compile/DEBUG/../../../cam/cam_periph.c:382: undefined reference to `__mtx_assert' cam_periph.o: In function `camperiphfree': /usr/src/sys/amd64/compile/DEBUG/../../../cam/cam_periph.c:603: undefined reference to `__mtx_assert' cam_periph.o: In function `cam_periph_release': /usr/src/sys/amd64/compile/DEBUG/../../../cam/cam_periph.c:409: undefined reference to `__mtx_assert' cam_periph.o: In function `cam_periph_hold': /usr/src/sys/amd64/compile/DEBUG/../../../cam/cam_periph.c:430: undefined reference to `__mtx_assert' ... Darren