[llvm-bugs] [Bug 48454] New: llc segfaults when run on my .ll file to generate a BPF object

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 9 03:53:46 PST 2020


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

            Bug ID: 48454
           Summary: llc segfaults when run on my .ll file to generate a
                    BPF object
           Product: new-bugs
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: shaun at tigera.io
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

I was previously using a much older version of clang that was shipped with
debian buster.  I tried upgrading to version 11 from the llvm APT repository
and it segfaults when trying to link my BPF program:

PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: llc-11 -march=bpf -filetype=obj -o
bin/from_wg_debug.o from_wg_debug.ll 
1.      Running pass 'Function Pass Manager' on module 'from_wg_debug.ll'.
2.      Running pass 'Live Variable Analysis' on function '@tc_calico_entry'
/usr/lib/x86_64-linux-gnu/libLLVM-11.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x1f)[0x7f4892e1edff]
/usr/lib/x86_64-linux-gnu/libLLVM-11.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x50)[0x7f4892e1d170]
/usr/lib/x86_64-linux-gnu/libLLVM-11.so.1(+0xbbb2d5)[0x7f4892e1f2d5]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12730)[0x7f4892255730]
/usr/lib/x86_64-linux-gnu/libLLVM-11.so.1(_ZN4llvm13LiveVariables16HandleVirtRegUseEjPNS_17MachineBasicBlockERNS_12MachineInstrE+0x6e)[0x7f489309903e]
/usr/lib/x86_64-linux-gnu/libLLVM-11.so.1(_ZN4llvm13LiveVariables10runOnInstrERNS_12MachineInstrERNS_15SmallVectorImplIjEE+0x23e)[0x7f489309b25e]
/usr/lib/x86_64-linux-gnu/libLLVM-11.so.1(_ZN4llvm13LiveVariables10runOnBlockEPNS_17MachineBasicBlockEj+0x266)[0x7f489309b666]
/usr/lib/x86_64-linux-gnu/libLLVM-11.so.1(_ZN4llvm13LiveVariables20runOnMachineFunctionERNS_15MachineFunctionE+0x32f)[0x7f489309bcff]
/usr/lib/x86_64-linux-gnu/libLLVM-11.so.1(_ZN4llvm19MachineFunctionPass13runOnFunctionERNS_8FunctionE+0x10e)[0x7f48930f330e]
/usr/lib/x86_64-linux-gnu/libLLVM-11.so.1(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x3b9)[0x7f4892f2e7f9]
/usr/lib/x86_64-linux-gnu/libLLVM-11.so.1(_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0x33)[0x7f4892f33e23]
/usr/lib/x86_64-linux-gnu/libLLVM-11.so.1(_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x3e0)[0x7f4892f2ee10]
llc-11(main+0x2242)[0x40e0f2]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)[0x7f4891d8509b]
llc-11(_start+0x2a)[0x40ba2a]
make: *** [Makefile:90: bin/from_wg_debug.o] Segmentation fault (core dumped)

-- 
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/20201209/298502aa/attachment.html>


More information about the llvm-bugs mailing list