<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi folks,
<div class=""><br class="">
</div>
<div class="">I'm trying to set up our cluster tool chain to support clang’s memory sanitizer for our multiphysics simulation program, but I can’t get it to work :-/</div>
<div class=""><br class="">
</div>
<div class="">I started with a regularly compiled clang installation (with libcxx, libcxxabi, and libomp built in-tree). With this, I compiled all necessary third-party libraries with “-O1 -fsanitize=memory” (OpenMPI, FFTW, Parallel netCDF). Then, I compiled
 the libcxx/libcxxabi libraries with msan-support by checking out the llvm source and the libcxx/libcxxabi repos into the llvm/projects/ directory. I configured them with LLVM_USE_SANITIZER=Memory and put the msan-instrumented libraries in the LD_LIBRARY_PATH.</div>
<div class=""><br class="">
</div>
<div class="">Finally, I tried to compile our tool, ZFS, with the memory sanitizer enabled and linked against the msan-compiled third-party libraries as well as the msan-instrumented libcxx/libcxxabi libraries (by putting them in the LD_LIBRARY_PATH). However,
 here I failed: either at configure time or at compile time (after doing some LD_LIBRARY_PATH trickery), clang exits with the following error:</div>
<div class=""><br class="">
</div>
<div class="">/pds/opt/llvm-20151121-r253770/bin/clang++: symbol lookup error: /pds/opt/libcxx-msan-20151121-r253770/lib/libc++abi.so.1: undefined symbol: __msan_va_arg_overflow_size_tls</div>
<div class=""><br class="">
</div>
<div class="">Any suggestions as to what I am doing wrong? Should I put the msan-instrumented libcxx in the LD_LIBRARY_PATH after compilation only?</div>
<div class=""><br class="">
</div>
<div class="">Thanks a lot in advance</div>
<div class=""><br class="">
</div>
<div class="">Michael</div>
<br class="">
<br class="">
<div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
--<br class="">
Michael Schlottke-Lakemper<br class="">
<br class="">
Chair of Fluid Mechanics and Institute of Aerodynamics<br class="">
RWTH Aachen University<br class="">
Wüllnerstraße 5a<br class="">
52062 Aachen<br class="">
Germany<br class="">
<br class="">
Phone: +49 (241) 80 95188<br class="">
Fax: +49 (241) 80 92257<br class="">
Mail: <a href="mailto:m.schlottke-lakemper@aia.rwth-aachen.de" class="">m.schlottke-lakemper@aia.rwth-aachen.de</a><br class="">
Web: <a href="http://www.aia.rwth-aachen.de" class="">http://www.aia.rwth-aachen.de</a></div>
</span></div>
</span></div>
</div>
<br class="">
</body>
</html>