<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 - msan: clang crashes during msan ctor creation on ARM"
href="https://bugs.llvm.org/show_bug.cgi?id=40677">40677</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>msan: clang crashes during msan ctor creation on ARM
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>8.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</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>Miscellaneous Instrumentation passes
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vit9696@avp.su
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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 <a href="https://reviews.llvm.org/D56734">https://reviews.llvm.org/D56734</a>, 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</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>