From owner-freebsd-arm@FreeBSD.ORG Sun Apr 14 17:19:45 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 891C4D6F for ; Sun, 14 Apr 2013 17:19:45 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-oa0-f41.google.com (mail-oa0-f41.google.com [209.85.219.41]) by mx1.freebsd.org (Postfix) with ESMTP id 569AB9DD for ; Sun, 14 Apr 2013 17:19:45 +0000 (UTC) Received: by mail-oa0-f41.google.com with SMTP id f4so3861065oah.14 for ; Sun, 14 Apr 2013 10:19:44 -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=rLCuzOuhLHOlp4T59MQCnteYB5OLpIDMpSSLkuaCEq8=; b=pFagdrtrouZZyT9iSHsXBVWKiMd/oYQkb6P2VlOIR10lA9zmVZMKTi35ZAusKMlLZ/ 0g51vBF6KpcQJzsye0h4oekZRexuCtI5ou+XE5/AN1JOWphGoQ1IQaPZ2xq2iJDE+i3k ww2nOBJkFwuOc27hjepCO9Q68xinGf8hVM248jR+STfp1NnUUirMUFOrE4A9rjPEE+d6 BQssy1Sl8NhFhh/S6HlEbHke9LuXEZhGXPBs8B14DYpN1H4veNVRbpEcehkULB8Rg3bG TJmJM8tczWGKXCBBKUpNjzhGcSEUzxxusqlhz8tuVogUEX/X2oRwKc+He6k9uuryl7fh nEjQ== X-Received: by 10.60.135.103 with SMTP id pr7mr6331962oeb.142.1365959984267; Sun, 14 Apr 2013 10:19:44 -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 t9sm3112031obk.13.2013.04.14.10.19.42 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 14 Apr 2013 10:19:43 -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: Date: Sun, 14 Apr 2013 11:19:41 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <8DE83B01-4508-41C5-B2BD-95A72D0AD963@bsdimp.com> References: To: Damjan Marion X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQkY4Wvq3YEAb+sEyZFRKMqZNeviiK2RMc9/nHc/OUh/MpBW7KnExvbOTvzdi0wGvX9uhjj/ 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: Sun, 14 Apr 2013 17:19:45 -0000 Maybe you are calling malloc before these locks are initialized? Warner On Apr 14, 2013, at 5:03 AM, Damjan Marion wrote: >=20 > Hi, >=20 > I'm playing a bit with i.MX6 based board (wandboard) and I have serial = console working but > now it panics in init_dynamic_kenv() with the following error: >=20 > panic: __rw_wlock_hard: recursing but non-recursive rw pmap pv global = @ /usr/src/sys/arm/arm/pmap-v6.c:1187 >=20 > It looks like this is the 1st place where malloc() is called, an = malloc returns valid VA > but 1st attempt to access that address produces panic above. >=20 > Any idea what can be the reason for this or any other hint? >=20 > Thanks, >=20 > Damjan > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"