[llvm-bugs] [Bug 42225] New: Crash in llvm::LiveVariables::runOnInstr when arch=bpf

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 11 01:24:04 PDT 2019


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

            Bug ID: 42225
           Summary: Crash in llvm::LiveVariables::runOnInstr when arch=bpf
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: flier.lu at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 22084
  --> https://bugs.llvm.org/attachment.cgi?id=22084&action=edit
.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 (http://llvm.org/):
  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 at 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 at 6/bin/llc block_port.bc
-march=bpf -filetype=obj -o

$ /usr/local/opt/llvm at 6/bin/llc --version
LLVM (http://llvm.org/):
  LLVM version 6.0.1
  Optimized build.
  Default target: x86_64-apple-darwin18.6.0
  Host CPU: skylake

-- 
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/20190611/68c6bd06/attachment-0001.html>


More information about the llvm-bugs mailing list