From owner-freebsd-arm@FreeBSD.ORG Thu Apr 18 08:33:48 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DD0AEAFD for ; Thu, 18 Apr 2013 08:33:48 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by mx1.freebsd.org (Postfix) with ESMTP id 77CCD348 for ; Thu, 18 Apr 2013 08:33:47 +0000 (UTC) Received: by mail-ee0-f44.google.com with SMTP id c41so1170838eek.31 for ; Thu, 18 Apr 2013 01:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; bh=JMnWmL2gb3hL9BZuudnH/iOlZXE4jO39J54yIpbfmbw=; b=QLvVevczi+tbLqpjPW9hDggYnh22u7rjjPTgN2DZumb/zPo5B5DMw4Dd5j27Ya0RsB 7Wk0OaT0T39m2urO4Ao3JBSOEXOFTKAUDhITcT99PXL7wYeFkWZqBmQqOW5JD2P2h9Oo vIsC4Lcik5NGJel4uKIqBy78Kw9LdUO0ZDlQ1ys+J8NYhP0iu3lFyfGihowBATg7gPbL yk7q7tzBeDiq6FRgocxn+c9V06SfcKma1tgPiSPOO3tuSRgmyDn/8uarfxrAA47WkMxU LFBC6dToA3t49yuARltdnLjlqiEtou4/kjwsJynQk9gITN7bpWvnUI0g7m5PL2sRYo9V vnJA== X-Received: by 10.15.43.73 with SMTP id w49mr27986869eev.12.1366274021346; Thu, 18 Apr 2013 01:33:41 -0700 (PDT) Received: from ?IPv6:2001:470:72bb::12c? ([2001:470:72bb::12c]) by mx.google.com with ESMTPS id bk42sm14059934eeb.3.2013.04.18.01.33.39 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Apr 2013 01:33:39 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: __rw_wlock_hard panic on 1st malloc From: Damjan Marion In-Reply-To: <20130418180818.1d036620@bender> Date: Thu, 18 Apr 2013 10:33:37 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <5BE690EF-486A-482F-A275-35B07D92113E@gmail.com> References: <8DE83B01-4508-41C5-B2BD-95A72D0AD963@bsdimp.com> <92C60946-8FFB-46A1-9400-9E0F7B11FC23@gmail.com> <9A3C042F-3765-4791-AB51-63EA82488743@bsdimp.com> <20130418113609.5880e469@bender> <0E720F47-E84A-4CC8-8A56-1031AB6DB65A@bsdimp.com> <20130418180818.1d036620@bender> To: Andrew Turner X-Mailer: Apple Mail (2.1503) Cc: "freebsd-arm@FreeBSD.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Apr 2013 08:33:48 -0000 On Apr 18, 2013, at 10:08 AM, Andrew Turner = wrote: > On Wed, 17 Apr 2013 22:36:29 -0600 > Warner Losh wrote: >=20 >>=20 >> On Apr 17, 2013, at 7:36 PM, Andrew Turner wrote: >>=20 >>> On Wed, 17 Apr 2013 09:37:26 -0600 >>> Warner Losh wrote: >>>=20 >>>> I don't think it is, at least not with clang compiled code. Ian was >>>> saying on IRC that he saw this and went back to gcc and life was >>>> good. >>>=20 >>> I suspect it is an issue with the newer version of clang imported >>> recently. I have tested with an old version of clang and an updated >>> kernel and had no issues booting. >>=20 >> If I take WITNESS out of the kernel, I have no issues either. Not >> sure what WITNESS' problem is... >=20 > I've tried with an updated clang on a PandaBoard with WITNESS enabled. > The only issue I'm hitting is vm_thread_new fails, but this is after > FreeBSD enters userland which, from you other emails, appears to be > further than you are getting. >=20 > I have set unmapped_buf_allowed =3D 0 in sys/arm/arm/pmap-v6.c to work > around the above stack issue. I don't know if this will fix the issue > or not but you can try it to see. Just tried clang + unmapped_buf_allowed=3D0: Copyright (c) 1992-2013 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-CURRENT #0 r+b594eb9-dirty: Thu Apr 18 09:29:34 CEST 2013 dmarion@vm-freebsd-head:/tmp/WANDBOARD arm FreeBSD clang version 3.3 (trunk 178860) 20130405 WARNING: WITNESS option enabled, expect reduced performance. panic: acquiring blockable sleep lock with spinlock or critical section = held (rw) pmap pv global @ /usr/src/sys/arm/arm/pmap-v6.c:1187 KDB: enter: panic Damjan=