From owner-freebsd-arm@FreeBSD.ORG Thu Apr 18 13:39:28 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 58F99261 for ; Thu, 18 Apr 2013 13:39:28 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by mx1.freebsd.org (Postfix) with ESMTP id 3115EEA3 for ; Thu, 18 Apr 2013 13:39:28 +0000 (UTC) Received: by mail-pd0-f179.google.com with SMTP id x11so1549193pdj.38 for ; Thu, 18 Apr 2013 06:39:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=7DK0ap57nSKu8X25cpClP54XT2Lj8N8oV8M1qBtVHIU=; b=ebavIm9AT4y1+ompDkpZqWTb2lpQl55qQ+/wBKRlMp/EBOiF/PbSvh9JXoGW7yG718 /B/tMxM/QwOF8qzxlvkNT3Efne2/zyKZ/q6q7KJsZQujFZtmpHQNBW78bYQqetYO6Wql Y05L2lRlvZ12tFvPAr+kZ+jBq1dTNoQ5HKvMELNwOCv15QsvBLiri+5CD69H6/V+3UOx FEV9ZFqbAOZp3QLAPLc0Sdk0NN3tqm0UY1PdFsNt8liPEflql28SL0RjVFeTgtzsVOcL Fv5hyw7uB8ku5cDWLaXYaOVGq2P9453fJjHO0o0izqBqudqFjDX3LVyIjL0Py0sGpLPX ssKA== X-Received: by 10.66.14.1 with SMTP id l1mr13586509pac.150.1366292367706; Thu, 18 Apr 2013 06:39:27 -0700 (PDT) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id z18sm10997660paf.22.2013.04.18.06.39.25 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Apr 2013 06:39:26 -0700 (PDT) Sender: Warner Losh Subject: Re: __rw_wlock_hard panic on 1st malloc Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <5BE690EF-486A-482F-A275-35B07D92113E@gmail.com> Date: Thu, 18 Apr 2013 07:39:23 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <1FDDB298-04ED-4633-89E3-29809FD743D0@bsdimp.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> <5BE690EF-486A-482F-A275-35B07D92113E@gmail.com> To: Damjan Marion X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQmnAjN1JxtHSd1tfdzOp6nty/514pOQEsQ3rO9Tjy9euHcZP8MRuKwSeIOXqEfjKdSmGNcF 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 13:39:28 -0000 On Apr 18, 2013, at 2:33 AM, Damjan Marion wrote: >=20 > On Apr 18, 2013, at 10:08 AM, Andrew Turner = wrote: >=20 >> 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. >=20 > Just tried clang + unmapped_buf_allowed=3D0: >=20 > 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 That's where it panics for me, but tr in ddb fails to give any = meaningful stack traceback. Turning off witness gets me to the = mountroot> prompt.=