From owner-freebsd-arm@FreeBSD.ORG Thu Apr 18 08:08:27 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 34BEA2A8 for ; Thu, 18 Apr 2013 08:08:27 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from mail107.syd.optusnet.com.au (mail107.syd.optusnet.com.au [211.29.132.53]) by mx1.freebsd.org (Postfix) with ESMTP id F0668213 for ; Thu, 18 Apr 2013 08:08:26 +0000 (UTC) Received: from bender (unknown [49.176.33.195]) by mail107.syd.optusnet.com.au (Postfix) with ESMTP id DAA80D4200E; Thu, 18 Apr 2013 18:08:18 +1000 (EST) Date: Thu, 18 Apr 2013 18:08:18 +1000 From: Andrew Turner To: Warner Losh Subject: Re: __rw_wlock_hard panic on 1st malloc Message-ID: <20130418180818.1d036620@bender> In-Reply-To: <0E720F47-E84A-4CC8-8A56-1031AB6DB65A@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> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.0 cv=A8I0pNqG c=1 sm=1 a=X1w1fLJ+i4FOuCtnCNjjHw==:17 a=bily2IvQBM0A:10 a=kj9zAlcOel0A:10 a=6qN08nlxkZIA:10 a=7Qk2ozbKAAAA:8 a=8QAiUikosJsrQ5ihR18A:9 a=CjuIK1q_8ugA:10 a=cvZW9r6VXHAA:10 a=X1w1fLJ+i4FOuCtnCNjjHw==:117 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:08:27 -0000 On Wed, 17 Apr 2013 22:36:29 -0600 Warner Losh wrote: > > On Apr 17, 2013, at 7:36 PM, Andrew Turner wrote: > > > On Wed, 17 Apr 2013 09:37:26 -0600 > > Warner Losh wrote: > > > >> 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. > > > > 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. > > If I take WITNESS out of the kernel, I have no issues either. Not > sure what WITNESS' problem is... 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. I have set unmapped_buf_allowed = 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. Andrew