Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2013 19:38:54 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Tim Kientzle <kientzle@FreeBSD.org>
Cc:        arm@freebsd.org
Subject:   Re: clang/ARM regression
Message-ID:  <CD10C9F3-7886-4F01-A70F-6E51823E8F40@bsdimp.com>
In-Reply-To: <DE5D1B86-DC15-4E23-A8FB-155C2AB20DAA@freebsd.org>
References:  <517C868B.4060002@bluezbox.com> <DE5D1B86-DC15-4E23-A8FB-155C2AB20DAA@freebsd.org>

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

On Apr 28, 2013, at 5:23 PM, Tim Kientzle wrote:

>=20
> On Apr 27, 2013, at 7:16 PM, Oleksandr Tymoshenko wrote:
>=20
>> 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
>=20
> I'm seeing a crash early on as well.  Is this the same one?
>=20
> /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

That's similar to what I'm seeing on my Allwinner board.

Warner=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CD10C9F3-7886-4F01-A70F-6E51823E8F40>