Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2013 16:23:54 -0700
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Oleksandr Tymoshenko <gonzo@bluezbox.com>
Cc:        arm@freebsd.org
Subject:   Re: clang/ARM regression
Message-ID:  <DE5D1B86-DC15-4E23-A8FB-155C2AB20DAA@freebsd.org>
In-Reply-To: <517C868B.4060002@bluezbox.com>
References:  <517C868B.4060002@bluezbox.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DE5D1B86-DC15-4E23-A8FB-155C2AB20DAA>