Re: [cfe-users] MSAN blacklist

2018-01-30 Thread Evgenii Stepanov via cfe-users
Interceptors are defined here: https://github.com/llvm-project/llvm-project-20170507/blob/master/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc On Tue, Jan 30, 2018 at 4:17 PM, Bernd Schubert wrote: > Thanks for your help Evgenii! > > This is actually another glibc feature

Re: [cfe-users] MSAN blacklist

2018-01-29 Thread Evgenii Stepanov via cfe-users
This is a report from an interceptor, it is not affected by blacklist, unfortunately. You could try MSAN_OPTIONS=intercept_strlen=0, but it is likely that something else will pop up instead. Try figuring out what is the actual reason for the report, i.e. what code is supposed to initialize this mem

Re: [cfe-users] Code locations from the Memory Sanitizer

2017-05-01 Thread Evgenii Stepanov via cfe-users
For MSan, you'll need MSAN_SYMBOLIZER_PATH. Or just add to PATH, it would work for all sanitizers. On Fri, Apr 28, 2017 at 3:30 AM, Rainer Gerhards via cfe-users wrote: > 2017-04-28 12:25 GMT+02:00 Erik de Castro Lopo via cfe-users > : >> Hi all, >> >> I've tried Clang versions 3.6, 3.9 and 5.0 (

Re: [cfe-users] Errors when trying to use libcxx/libcxxabi with memory sanitizer

2015-11-23 Thread Evgenii Stepanov via cfe-users
It works in general. On Mon, Nov 23, 2015 at 11:13 AM, Schlottke-Lakemper, Michael wrote: > >> On 23 Nov 2015, at 20:01 , Evgenii Stepanov >> wrote: >> >> Yes. Effectively you need two environments - one with >> msan-instrumented libraries, and one without. Compilation should >> happen in the l

Re: [cfe-users] Segmentation fault with memory sanitizer and OpenMPI's mpirun

2015-11-23 Thread Evgenii Stepanov via cfe-users
I think so. What probably happens here is MSan confuses the configure script into thinking that openpty is available without -lutil, but what's actually available is just a stub that tries calling the real openpty and fails, unless libutil is linked. On Mon, Nov 23, 2015 at 10:41 AM, Schlottke-Lak

Re: [cfe-users] Errors when trying to use libcxx/libcxxabi with memory sanitizer

2015-11-23 Thread Evgenii Stepanov via cfe-users
Yes. Effectively you need two environments - one with msan-instrumented libraries, and one without. Compilation should happen in the latter (unless you want to instrument the compiler which is not very productive), and resulting binaries should be run in the former. On Mon, Nov 23, 2015 at 10:50 A

Re: [cfe-users] Errors when trying to use libcxx/libcxxabi with memory sanitizer

2015-11-23 Thread Evgenii Stepanov via cfe-users
On Mon, Nov 23, 2015 at 12:59 AM, Schlottke-Lakemper, Michael via cfe-users wrote: > Hi folks, > > 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 :-/ > > I started with a regularly compiled cla

Re: [cfe-users] Segmentation fault with memory sanitizer and OpenMPI's mpirun

2015-11-23 Thread Evgenii Stepanov via cfe-users
This is caused by missing -lutil. FTR, http://llvm.org/viewvc/llvm-project?rev=245619&view=rev On Mon, Nov 23, 2015 at 7:33 AM, Schlottke-Lakemper, Michael via cfe-users wrote: > Hi folks, > > When running “mpirun” of an msan-instrumented installation of OpenMPI, I get > the following error: > >