Linux/ARM: Bus error with -O3 flag of clang/llvm-3.6 while running unit-test of .NET Core

Geunsik Lim via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 18 04:09:34 PDT 2016


> I do remember some fixes about unaligned access on some cores, and
> also a few assumptions that other cores are OK with it (though the flag
should have supressed it)

Thank you for you opinion. Could you share me the revision numbers of the
some fixes from the http://llvm.org/viewvc/llvm-project/ (viewvc)?


>  CPU name, ABI and feature flags you use would already help a lot.

Here is CPU/ABI information.


* CPU:
---------------
Broadcom BCM2836 SoC, with quad-core ARM Cortex-A7 900 MHz processor
( ARMv7 processor)

* /proc/cpuinfo
-------------------------
processor       : 0
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva
idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

processor       : 1
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva
idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

processor       : 2
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva
idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

Hardware        : BCM2709
Revision        : a01041
Serial          : 0000000031a6ca8e


* /lib/arm-linux-gnueabihf/libc.so.6
-------------------------------------------------
GNU C Library (Ubuntu EGLIBC 2.19-0ubuntu6.7) stable release version 2.19,
by Roland McGrath et al.
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.8.2.
Compiled on a Linux 3.13.11 system on 2016-02-16.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE
For bug reporting instructions, please see:
<https://bugs.launchpad.net/ubuntu/+source/eglibc/+bugs>.



BRs,
Geunsik Lim.


On Sat, Jun 18, 2016 at 7:26 PM, Renato Golin <renato.golin at linaro.org>
wrote:

> On 18 June 2016 at 07:15, Geunsik Lim via llvm-commits
> <llvm-commits at lists.llvm.org> wrote:
> > We have still got the same issue even though we try to build coreCLR with
> > "-mno-unaligned-access" flag of llang /llvm-3.6.
> > Anyone who has similar experience Is this issue already resolved in the
> > latest clang/llvm version?
>
> Hi Geunsik,
>
> All of that smells like unaligned access, indeed. I'm not sure what
> can be done, since 3.6 is an old version, with many improvements on
> ARM since.
>
> I do remember some fixes about unaligned access on some cores, and
> also a few assumptions that other cores are OK with it (though the
> flag should have supressed it).
>
> The best way to know if this particular problem is fixed upstream is
> to try a new version, or trunk. Of course, that has the cost of
> re-basing your own tree, but at least that cost can bring the benefit
> of you using a newer revision.
>
> For now, you could try to describe your target and the options you
> set. CPU name, ABI and feature flags you use would already help a lot.
>
> cheers,
> --renato
>



-- 
http://leemgs.fedorapeople.org
Don't try to avoid pain if you fail.
If you decided to face the challenges in life,
you can gain a lot by giving your best.
Cheolsang Jeong's Book & life
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160618/9e7a86f7/attachment.html>


More information about the llvm-commits mailing list