From owner-freebsd-arm@FreeBSD.ORG Sun Apr 28 23:24:37 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E8F3796A for ; Sun, 28 Apr 2013 23:24:37 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id CBE821B26 for ; Sun, 28 Apr 2013 23:24:37 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r3SNNsLY067973; Sun, 28 Apr 2013 23:23:54 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id prghies9w87kq29wqau6vjxm86; Sun, 28 Apr 2013 23:23:54 +0000 (UTC) (envelope-from kientzle@freebsd.org) Subject: Re: clang/ARM regression Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: <517C868B.4060002@bluezbox.com> Date: Sun, 28 Apr 2013 16:23:54 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <517C868B.4060002@bluezbox.com> To: Oleksandr Tymoshenko X-Mailer: Apple Mail (2.1283) Cc: 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, 28 Apr 2013 23:24:38 -0000 On Apr 27, 2013, at 7:16 PM, Oleksandr Tymoshenko wrote: > Hi, >=20 > There seems to be some kind of regression in recently imported clang = on ARM. > Beaglebone kernel built using clang with WITNESS enabled panics > on boot. If I change optimization flags from -O to -O0 it works fine. > I'm trying to isolate test case but it panics fairly early in boot = process > so it's not easy. If somebody tracks clang development and aware of > known issues that might cause it - please share. >=20 > So far I tried fix from this bug but it didn't help: > http://llvm.org/bugs/show_bug.cgi?id=3D15581 I'm seeing a crash early on as well. Is this the same one? /boot/kernel/kernel data=3D0x404564+0x17c9f8 = syms=3D[0x4+0x76a60+0x4+0x4bf98] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... =20 Using DTB provided by U-Boot. Kernel entry at 0x80200100... Kernel args: (null) KDB: debugger backends: ddb KDB: current backend: ddb 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: Sun Apr 28 05:25:04 PDT 2013 = root@fci386.localdomain:/usr/home/tim/projects/crochet-rpi/work/obj/arm.ar= mv6/usr/src/sys/BEAGLEBONE 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 [ thread pid 0 tid 0 ] Stopped at $d: ldrb r15, [r15, r15, ror r15]! db>=20