[llvm-bugs] [Bug 40677] New: msan: clang crashes during msan ctor creation on ARM

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Feb 9 17:27:14 PST 2019


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

            Bug ID: 40677
           Summary: msan: clang crashes during msan ctor creation on ARM
           Product: libraries
           Version: 8.0
          Hardware: All
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Miscellaneous Instrumentation passes
          Assignee: unassignedbugs at nondot.org
          Reporter: vit9696 at avp.su
                CC: llvm-bugs at lists.llvm.org

LLVM 8.0 brings a regression, which results in any source file (including
empty) crash clang when invoked as follows:
clang -c -target arm-gnu-linux-eabi -mllvm -msan-shadow-base=0x1000
-fsanitize=memory test.c

Tested as of 8.0.0 RC2. This is fixed by https://reviews.llvm.org/D56734, which
I request to be merged into 8.0 branch. Suggest the bug to be made blocker for
LLVM 8.0 release.

Stacktrace:
2.      Code generation
0  clang-8                  0x00000001088cec2e
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  clang-8                  0x00000001088cf01e SignalHandler(int) + 200
2  libsystem_platform.dylib 0x00007fff5bd1af5a _sigtramp + 26
3  clang-8                  0x000000010a788f4d
llvm::DenseMapInfo<llvm::codeview::GloballyHashedType>::Tombstone + 110453
4  clang-8                  0x0000000107d8a3ef
llvm::ARMAsmPrinter::EmitXXStructor(llvm::DataLayout const&, llvm::Constant
const*) + 113
5  clang-8                  0x0000000108e05422
llvm::AsmPrinter::EmitXXStructorList(llvm::DataLayout const&, llvm::Constant
const*, bool) + 1104
6  clang-8                  0x0000000108dff6f2
llvm::AsmPrinter::EmitSpecialLLVMGlobal(llvm::GlobalVariable const*) + 282
7  clang-8                  0x0000000108dfee4e
llvm::AsmPrinter::EmitGlobalVariable(llvm::GlobalVariable const*) + 150
8  clang-8                  0x0000000108e02b27
llvm::AsmPrinter::doFinalization(llvm::Module&) + 91
9  clang-8                  0x00000001085225b3
llvm::FPPassManager::doFinalization(llvm::Module&) + 45
10 clang-8                  0x0000000108522971
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 935
11 clang-8                  0x00000001089f9df8
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions
const&, clang::CodeGenOptions const&, clang::TargetOptions const&,
clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*,
clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream,
std::__1::default_delete<llvm::raw_pwrite_stream> >) + 14144
12 clang-8                  0x0000000108b7738c
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 874
13 clang-8                  0x0000000109466347 clang::ParseAST(clang::Sema&,
bool, bool) + 462
14 clang-8                  0x0000000108d09dcb clang::FrontendAction::Execute()
+ 69
15 clang-8                  0x0000000108cd7f0f
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 789
16 clang-8                  0x0000000108d3da7d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1338
17 clang-8                  0x0000000107c42be5 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 1165
18 clang-8                  0x0000000107c41cd3 main + 7649
19 libdyld.dylib            0x00007fff5ba0c015 start + 1
20 libdyld.dylib            0x0000000000000048 start + 2757705780
clang-8: error: unable to execute command: 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/20190210/d87a8af1/attachment.html>


More information about the llvm-bugs mailing list