<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 - LLVM ERROR: Unsupported dynamic stack allocation"
   href="https://bugs.llvm.org/show_bug.cgi?id=49145">49145</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM ERROR: Unsupported dynamic stack allocation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </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>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: BPF
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sbezverk@cisco.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello,

I am getting core dump when I try to compile ebpf code.

Stack dump:
0.      Program arguments: llc-11 -march=bpf -mcpu=probe -filetype=obj -o
interceptor.o 
1.      Running pass 'Function Pass Manager' on module '<stdin>'.
2.      Running pass 'BPF DAG->DAG Pattern Instruction Selection' on function
'@egress_interceptor'
 #0 0x00007f854314b51f llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/lib/x86_64-linux-gnu/libLLVM-11.so.1+0xaa651f)
 #1 0x00007f8543149880 llvm::sys::RunSignalHandlers()
(/lib/x86_64-linux-gnu/libLLVM-11.so.1+0xaa4880)
 #2 0x00007f854314b9f5 (/lib/x86_64-linux-gnu/libLLVM-11.so.1+0xaa69f5)
 #3 0x00007f85426973c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0)
 #4 0x00007f854218b18b raise
/build/glibc-eX1tMB/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1
 #5 0x00007f854216a859 abort /build/glibc-eX1tMB/glibc-2.31/stdlib/abort.c:81:7
 #6 0x00007f854309ed18 (/lib/x86_64-linux-gnu/libLLVM-11.so.1+0x9f9d18)
 #7 0x00007f854309eb38 (/lib/x86_64-linux-gnu/libLLVM-11.so.1+0x9f9b38)
 #8 0x00007f8544bdd6ff (/lib/x86_64-linux-gnu/libLLVM-11.so.1+0x25386ff)
 #9 0x00007f8543683165 (/lib/x86_64-linux-gnu/libLLVM-11.so.1+0xfde165)
#10 0x00007f85436828c4 llvm::SelectionDAG::Legalize()
(/lib/x86_64-linux-gnu/libLLVM-11.so.1+0xfdd8c4)
#11 0x00007f85437ad1c5 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/lib/x86_64-linux-gnu/libLLVM-11.so.1+0x11081c5)
#12 0x00007f85437ac612
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/lib/x86_64-linux-gnu/libLLVM-11.so.1+0x1107612)
#13 0x00007f85437aa311
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/lib/x86_64-linux-gnu/libLLVM-11.so.1+0x1105311)
#14 0x00007f854341d4ae
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/lib/x86_64-linux-gnu/libLLVM-11.so.1+0xd784ae)
#15 0x00007f854325a689 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/lib/x86_64-linux-gnu/libLLVM-11.so.1+0xbb5689)
#16 0x00007f854325fc33 llvm::FPPassManager::runOnModule(llvm::Module&)
(/lib/x86_64-linux-gnu/libLLVM-11.so.1+0xbbac33)
#17 0x00007f854325aca0 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/lib/x86_64-linux-gnu/libLLVM-11.so.1+0xbb5ca0)
#18 0x000000000040d792 main (/usr/lib/llvm-11/bin/llc+0x40d792)
#19 0x00007f854216c0b3 __libc_start_main
/build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:342:3
#20 0x000000000040b0ce _start (/usr/lib/llvm-11/bin/llc+0x40b0ce)
Aborted (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>