<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - llc segfaults when run on my .ll file to generate a BPF object"
href="https://bugs.llvm.org/show_bug.cgi?id=48454">48454</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llc segfaults when run on my .ll file to generate a BPF object
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>shaun@tigera.io
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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 <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> 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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>