[llvm-bugs] [Bug 45335] New: Crash when building Linux kernel’s multi_v5_defconfig’s kernel/trace/trace_clock.o

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 27 23:13:16 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45335

            Bug ID: 45335
           Summary: Crash when building Linux kernel’s
                    multi_v5_defconfig’s kernel/trace/trace_clock.o
           Product: libraries
           Version: trunk
          Hardware: Other
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: natechancellor at gmail.com
                CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com,
                    Ties.Stuij at arm.com

With assertions enabled:

$ curl -LSs https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.5.13.tar.xz |
tar xJf -

$ cd linux-5.5.13

$ make -j$(nproc) -s ARCH=arm CC=clang CROSS_COMPILE=arm-linux-gnueabi-
O=out/arm32 distclean multi_v5_defconfig kernel/trace/trace_clock.o
fragment covers entire variable
!1079 = !DIGlobalVariableExpression(var: !1074, expr:
!DIExpression(DW_OP_LLVM_fragment, 0, 64))
!1074 = distinct !DIGlobalVariable(name: "trace_clock_struct", scope: !2, file:
!1057, line: 89, type: !1075, isLocal: true, isDefinition: true)
fatal error: error in backend: Broken module found, compilation aborted!
clang-11: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
...

creduce spits out:

$ cat trace_clock.i
typedef struct {
} a;
static struct {
  long b;
  a c
} d;
e() {
  long f = d.b + 1;
  d.b = f;
}

$ clang —O2 —-target=arm-linux-gnueabi -march=armv5te -g -c -o /dev/null
trace_clock.i
fragment covers entire variable
!0 = !DIGlobalVariableExpression(var: !1, expr:
!DIExpression(DW_OP_LLVM_fragment, 0, 32))
!1 = distinct !DIGlobalVariable(name: "d", scope: !2, file: !3, line: 6, type:
!7, isLocal: true, isDefinition: true)
fatal error: error in backend: Broken module found, compilation aborted!

Full preprocessed source and interestingness test available at
https://github.com/nathanchance/creduce-files/tree/d09780fbcf83f4707527f6bf6e553c79ea43d5e4/multi_v5_defconfig-trace_clock-crash

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200328/8d661ef5/attachment-0001.html>


More information about the llvm-bugs mailing list