[LLVMbugs] [Bug 16737] New: segfault in AddressSanitizer

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 29 12:42:28 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16737

            Bug ID: 16737
           Summary: segfault in AddressSanitizer
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Miscellaneous Instrumentation passes
          Assignee: unassignedbugs at nondot.org
          Reporter: flld0 at greynode.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10952
  --> http://llvm.org/bugs/attachment.cgi?id=10952&action=edit
IR to feed to "opt -asan" to cause it to segfault

The attached IR causes a "opt -asan" to segfault on at least 64-bit MacOS X and
Linux.

0  libLLVM-3.4svn.dylib 0x00000001088ab2ae llvm::sys::PrintStackTrace(__sFILE*)
+ 46
1  libLLVM-3.4svn.dylib 0x00000001088ab5bb PrintStackTraceSignalHandler(void*)
+ 27
2  libLLVM-3.4svn.dylib 0x00000001088ab8c9 SignalHandler(int) + 297
3  libsystem_c.dylib    0x00007fff9749994a _sigtramp + 26
4  libsystem_c.dylib    0x00007fff587068f8 _sigtramp + 3240546248
5  libLLVM-3.4svn.dylib 0x00000001089bd45a
llvm::StringMap<llvm::StringMap<llvm::Regex*, llvm::MallocAllocator>,
llvm::MallocAllocator>::find(llvm::StringRef) const + 74
6  libLLVM-3.4svn.dylib 0x00000001089bc9c5
llvm::SpecialCaseList::inSectionCategory(llvm::StringRef, llvm::StringRef,
llvm::StringRef) const + 85
7  libLLVM-3.4svn.dylib 0x00000001089bc958
llvm::SpecialCaseList::isIn(llvm::Module const&, llvm::StringRef) const + 136
8  libLLVM-3.4svn.dylib 0x00000001089bc843
llvm::SpecialCaseList::isIn(llvm::Function const&, llvm::StringRef) const + 83
9  libLLVM-3.4svn.dylib 0x00000001080f8513 (anonymous
namespace)::AddressSanitizer::runOnFunction(llvm::Function&) + 99
10 libLLVM-3.4svn.dylib 0x0000000107f648ff
llvm::FPPassManager::runOnFunction(llvm::Function&) + 431
11 libLLVM-3.4svn.dylib 0x0000000107f64be8
llvm::FPPassManager::runOnModule(llvm::Module&) + 104
12 libLLVM-3.4svn.dylib 0x0000000107f64fea
llvm::MPPassManager::runOnModule(llvm::Module&) + 634
13 libLLVM-3.4svn.dylib 0x0000000107f6580e
llvm::PassManagerImpl::run(llvm::Module&) + 302
14 libLLVM-3.4svn.dylib 0x0000000107f65ab1
llvm::PassManager::run(llvm::Module&) + 33
15 opt                  0x00000001075084e5 main + 6645
16 libdyld.dylib        0x00007fff91ebb7e1 start + 0
17 libdyld.dylib        0x0000000000000003 start + 1846822946
Stack dump:
0.      Program arguments: out/llvm-3.4svn/install/bin/opt -asan foo.ll 
1.      Running pass 'Function Pass Manager' on module 'foo.ll'.
2.      Running pass 'AddressSanitizerFunctionPass' on function '@foo'
Segmentation fault: 11

-- 
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/20130729/00960f5e/attachment.html>


More information about the llvm-bugs mailing list