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] Errors when trying to use libcxx/libcxxabi with memory sanitizer

2015-11-23 Thread MeldaProduction via cfe-users
unsubscribe Cheers! Vojtech www.meldaproduction.com Facebook , Twitter , Youtube 2015-11-23 20:13 GMT+01:00 Schlottke-Lakemper, Michael via cfe-users < cfe-users@lists.llvm.

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

2015-11-23 Thread Schlottke-Lakemper, Michael via cfe-users
> 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 latter (unless you want to instrument the compiler which > is not very productive), and resulting bina

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 Schlottke-Lakemper, Michael via cfe-users
> On 23 Nov 2015, at 18:11 , Evgenii Stepanov wrote: > > 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

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

2015-11-23 Thread Schlottke-Lakemper, Michael via cfe-users
Hi Evgenii, Just to clarify: you mean I should re-compile OpenMPI and add “-lutil” to LDFLAGS at configure time? Yours Michael > On 23 Nov 2015, at 18:07 , Evgenii Stepanov wrote: > > This is caused by missing -lutil. > FTR, http://llvm.org/viewvc/llvm-project?rev=245619&view=rev > > On Mon

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: > >

[cfe-users] UBSan: very long compile times for clang++ with -fsanitize=undefined, unsigned-integer-overflow

2015-11-23 Thread Schlottke-Lakemper, Michael via cfe-users
Hi folks, When compiling our simulation tool with the undefined behavior sanitizer, I noticed that some files take much longer to compile - I am talking about a 5x-250x increase: file1 (zfsdgblock_inst_3d_acousticperturb.cpp): 8.5s vs 41.3s (4.8x) file2 (zfsfvparticle.cpp): 9.5s vs 114.8s (12.1

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

2015-11-23 Thread Schlottke-Lakemper, Michael via cfe-users
Hi folks, When running “mpirun” of an msan-instrumented installation of OpenMPI, I get the following error: $> mpirun -n 1 hostname [aia308:48324] *** Process received signal *** [aia308:48324] Signal: Segmentation fault (11) [aia308:48324] Signal code: Address not mapped (1) [aia308:48324] Fail

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

2015-11-23 Thread Schlottke-Lakemper, Michael via cfe-users
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 clang installation (with libcxx, libcxxabi, and libomp built in-tree). With this, I compiled all