[llvm-bugs] [Bug 25119] New: Segfault in opt-3.7 when running "Combine redundant instructions" pass

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 8 23:40:27 PDT 2015


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

            Bug ID: 25119
           Summary: Segfault in opt-3.7 when running "Combine redundant
                    instructions" pass
           Product: new-bugs
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: erikd at mega-nerd.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15040
  --> https://llvm.org/bugs/attachment.cgi?id=15040&action=edit
File that causes the segfault

Attached file run with:

     /usr/bin/opt-3.7 rts/HeapStackCheck.ll -o /dev/null -O2

segfaults as follows:

$ /usr/bin/opt-3.7 rts/HeapStackCheck.ll -o /dev/null -O2
0  libLLVM-3.7.so.1 0x00007fed8d11735d
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 45
1  libLLVM-3.7.so.1 0x00007fed8d116961
2  libpthread.so.0  0x00007fed8b9d78d0
3  libLLVM-3.7.so.1 0x00007fed8d272110
llvm::MDNode::getMostGenericTBAA(llvm::MDNode*, llvm::MDNode*) + 352
4  libLLVM-3.7.so.1 0x00007fed8d4dc748
llvm::combineMetadata(llvm::Instruction*, llvm::Instruction const*,
llvm::ArrayRef<unsigned int>) + 488
5  libLLVM-3.7.so.1 0x00007fed8c7b4d2a
6  libLLVM-3.7.so.1 0x00007fed8c808762
7  libLLVM-3.7.so.1 0x00007fed8c809aa3
8  libLLVM-3.7.so.1 0x00007fed8c80a01c
9  libLLVM-3.7.so.1 0x00007fed8c402c37
llvm::FPPassManager::runOnFunction(llvm::Function&) + 471
10 libLLVM-3.7.so.1 0x00007fed8c402e8b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
11 libLLVM-3.7.so.1 0x00007fed8c4028c4
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 756
12 opt-3.7          0x000000000041b643 main + 7411
13 libc.so.6        0x00007fed8a53cb45 __libc_start_main + 245
14 opt-3.7          0x000000000041b834
Stack dump:
0.      Program arguments: /usr/bin/opt-3.7 rts/HeapStackCheck.ll -o /dev/null
-O2 
1.      Running pass 'Function Pass Manager' on module 'rts/HeapStackCheck.ll'.
2.      Running pass 'Combine redundant instructions' on function
'@"stg_gc_noregs$def"'
Segmentation fault

The binary is from the `llvm-3.7` package in Debian testing.

-- 
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/20151009/b29e99c6/attachment.html>


More information about the llvm-bugs mailing list