<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 - Crash in llvm::LiveVariables::runOnInstr when arch=bpf"
   href="https://bugs.llvm.org/show_bug.cgi?id=42225">42225</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash in llvm::LiveVariables::runOnInstr when arch=bpf
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>flier.lu@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22084" name="attach_22084" title=".bc file">attachment 22084</a> <a href="attachment.cgi?id=22084&action=edit" title=".bc file">[details]</a></span>
.bc file

Stack dump:
0.      Program arguments: /usr/local/opt/llvm/bin/llc block_port.bc -march=bpf
-filetype=obj -o block_port.o
1.      Running pass 'Function Pass Manager' on module 'block_port.bc'.
2.      Running pass 'Live Variable Analysis' on function
'@"_ZN4core6option15Option$LT$T$GT$8and_then17h0d299f8b3e553d9bE"'
0  llc                      0x000000010e7bf365
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  llc                      0x000000010e7bf768 SignalHandler(int) + 180
2  libsystem_platform.dylib 0x00007fff64adfb5d _sigtramp + 29
3  libsystem_platform.dylib 0x000000000000000c _sigtramp + 2605843660
4  llc                      0x000000010e20288e
llvm::LiveVariables::runOnInstr(llvm::MachineInstr&,
llvm::SmallVectorImpl<unsigned int>&) + 456
5  llc                      0x000000010e202a95
llvm::LiveVariables::runOnBlock(llvm::MachineBasicBlock*, unsigned int) + 203
6  llc                      0x000000010e202ee6
llvm::LiveVariables::runOnMachineFunction(llvm::MachineFunction&) + 400
7  llc                      0x000000010e2331dc
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 252
8  llc                      0x000000010e3eccc9
llvm::FPPassManager::runOnFunction(llvm::Function&) + 413
9  llc                      0x000000010e3ecf0c
llvm::FPPassManager::runOnModule(llvm::Module&) + 52
10 llc                      0x000000010e3ed20d
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 579
11 llc                      0x000000010d6d9439 compileModule(char**,
llvm::LLVMContext&) + 7747
12 llc                      0x000000010d6d729e main + 1409
13 libdyld.dylib            0x00007fff648f43d5 start + 1
[1]    10769 segmentation fault  /usr/local/opt/llvm/bin/llc block_port.bc
-march=bpf -filetype=obj -o

$ /usr/local/opt/llvm/bin/llc -version
LLVM (<a href="http://llvm.org/">http://llvm.org/</a>):
  LLVM version 8.0.0
  Optimized build.
  Default target: x86_64-apple-darwin18.6.0
  Host CPU: skylake

It seems LLVM 6 also has same issue

0  llc                      0x000000010e827fbd
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  llc                      0x000000010e8274fa llvm::sys::RunSignalHandlers() +
83
2  llc                      0x000000010e8283e3 SignalHandler(int) + 239
3  libsystem_platform.dylib 0x00007fff64adfb5d _sigtramp + 29
4  libsystem_platform.dylib 0x00007ffee2366480 _sigtramp + 2106091840
5  llc                      0x000000010e2ba496
llvm::LiveVariables::runOnInstr(llvm::MachineInstr&,
llvm::SmallVectorImpl<unsigned int>&) + 492
6  llc                      0x000000010e2ba6c8
llvm::LiveVariables::runOnBlock(llvm::MachineBasicBlock*, unsigned int) + 200
7  llc                      0x000000010e2baac1
llvm::LiveVariables::runOnMachineFunction(llvm::MachineFunction&) + 381
8  llc                      0x000000010e2ed7e7
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 117
9  llc                      0x000000010e48ebd9
llvm::FPPassManager::runOnFunction(llvm::Function&) + 273
10 llc                      0x000000010e48eda5
llvm::FPPassManager::runOnModule(llvm::Module&) + 49
11 llc                      0x000000010e48f0e2
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 588
12 llc                      0x000000010d89cc3b compileModule(char**,
llvm::LLVMContext&) + 7185
13 llc                      0x000000010d89ad12 main + 1409
14 libdyld.dylib            0x00007fff648f43d5 start + 1
Stack dump:
0.      Program arguments: /usr/local/opt/llvm@6/bin/llc block_port.bc
-march=bpf -filetype=obj -o block_port.o
1.      Running pass 'Function Pass Manager' on module 'block_port.bc'.
2.      Running pass 'Live Variable Analysis' on function
'@"_ZN4core6option15Option$LT$T$GT$8and_then17h0d299f8b3e553d9bE"'
[1]    10754 segmentation fault  /usr/local/opt/llvm@6/bin/llc block_port.bc
-march=bpf -filetype=obj -o

$ /usr/local/opt/llvm@6/bin/llc --version
LLVM (<a href="http://llvm.org/">http://llvm.org/</a>):
  LLVM version 6.0.1
  Optimized build.
  Default target: x86_64-apple-darwin18.6.0
  Host CPU: skylake</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>