Re: Build with ASAN

2016-01-24 Thread Masakazu Kitajo
It seems the issue is caused by libtool. clang refers to libclang_rt.asan_osx_dynamic.dylib automatically if -fsanitize=address flag has been passed. However, libtool-2.4.6 drops the flag[1][2]. The last commit of libtool adds support for the flag[3]. I modified libtool.sh in my TS build tree, an

Re: Build with ASAN

2016-01-13 Thread Masakazu Kitajo
Thank you all. I tried Bryan's command line, but I'm still not able to build with -no-undefined flag. -static-libasan flag doesn't work too. I'm going to dig a little deeper. It might be needed on TS-3939. Masakazu On Wed, Jan 13, 2016 at 5:57 AM, Bryan Call wrote: > Free lists are runtime

Re: Build with ASAN

2016-01-12 Thread Bryan Call
Free lists are runtime configurable with master and compile time with 6.0.0 and earlier releases. -Bryan > On Jan 12, 2016, at 10:58 AM, Brian Geffon wrote: > > Make sure to disable freelists too otherwise you'll miss out a number of > potential issues. Also, I've always disabled lua_jit w/

Re: Build with ASAN

2016-01-12 Thread Brian Geffon
Make sure to disable freelists too otherwise you'll miss out a number of potential issues. Also, I've always disabled lua_jit w/ ASAN. Brian On Wed, Jan 13, 2016 at 2:21 AM, Bryan Call wrote: > This is how I configure my bulids: > > With ASAN: > [bcall@homer ~]$ type tsconfig_asan > tsconfig_as

Re: Build with ASAN

2016-01-12 Thread Bryan Call
This is how I configure my bulids: With ASAN: [bcall@homer ~]$ type tsconfig_asan tsconfig_asan is aliased to `CXXFLAGS="-Werror -fno-omit-frame-pointer -fsanitize=address" CFLAGS="-Werror" ./configure --enable-ccache --enable-experimental-plugins --enable-example-plugins’ Without ASAN: [bcall@

Re: Build with ASAN

2016-01-12 Thread Jason Kenny
Jason  From: Masakazu Kitajo To: dev@trafficserver.apache.org Sent: Tuesday, January 12, 2016 2:40 AM Subject: Build with ASAN Hi there, I can enable ASAN with -fsanitize=address flag but I also needed to remove -no-undefined flag manually from some modules' Makefiles. Withou

Build with ASAN

2016-01-12 Thread Masakazu Kitajo
Hi there, I can enable ASAN with -fsanitize=address flag but I also needed to remove -no-undefined flag manually from some modules' Makefiles. Without the modification, I get link errors such like below: https://paste.apache.org/5sR6 According to the wiki, it seems we can't use ASAN with -no-und