<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Memory Sanitizer causes several orders of magnitude longer compile time"
href="https://llvm.org/bugs/show_bug.cgi?id=30334">30334</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Memory Sanitizer causes several orders of magnitude longer compile time
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>kfischer@college.harvard.edu
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=17227" name="attach_17227" title="Preprocessed source">attachment 17227</a> <a href="attachment.cgi?id=17227&action=edit" title="Preprocessed source">[details]</a></span>
Preprocessed source
On clang 4.0 trunk, running memory sanitizer on the attached file takes a very
long time (not sure how long, it's still running). Without memory sanitizer,
the file compiles in a ~3-4 seconds. Preprocessed source is attached. Generated
reproduction command line is:
```
"clang-4.0" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-obj"
"-mrelax-all" "-disable-free" "-disable-llvm-verifier" "-discard-value-names"
"-main-file-name" "kernel_metadata.cc" "-mrelocation-model" "static"
"-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno" "-masm-verbose"
"-mconstructor-aliases" "-munwind-tables" "-fuse-init-array" "-target-cpu"
"x86-64" "-dwarf-column-info" "-debug-info-kind=limited" "-dwarf-version=4"
"-debugger-tuning=gdb" "-coverage-notes-file"
"/home/keno/rr-vanilla-msan/CMakeFiles/rr.dir/src/kernel_metadata.cc.gcno" "-D"
"RR_VERSION=\"4.3.0\"" "-D" "__USE_LARGEFILE64" "-D" "__STDC_LIMIT_MACROS" "-D"
"__STDC_FORMAT_MACROS" "-O0" "-Wall" "-Wextra"
"-Wno-unused-command-line-argument" "-Werror" "-std=c++0x" "-fdeprecated-macro"
"-ferror-limit" "19" "-fmessage-length" "0" "-fsanitize=memory"
"-fsanitize-blacklist=/data/llvm-build/bin/../lib/clang/4.0.0/msan_blacklist.txt"
"-fsanitize-memory-track-origins=2" "-fno-assume-sane-operator-new" "-pthread"
"-fobjc-runtime=gcc" "-fcxx-exceptions" "-fexceptions"
"-fdiagnostics-show-option" "-x" "c++" "kernel_metadata-68e491.cpp"
```</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>