trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Masakazu Kitajo <m4s...@gmail.com>
Subject Re: Build with ASAN
Date Wed, 13 Jan 2016 12:32:06 GMT
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 <bcall@apache.org> wrote:

> 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 <briangeffon@gmail.com>
> 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/ ASAN.
> >
> > Brian
> >
> > On Wed, Jan 13, 2016 at 2:21 AM, Bryan Call <bcall@apache.org> wrote:
> >
> >> 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@homer ~]$ type tsconfig
> >> tsconfig is aliased to `CXXFLAGS="-Werror" CFLAGS="-Werror" ./configure
> >> --enable-ccache --enable-experimental-plugins’
> >>
> >> -Bryan
> >>
> >>
> >>
> >>
> >>> On Jan 12, 2016, at 12:40 AM, Masakazu Kitajo <maskit@apache.org>
> wrote:
> >>>
> >>> 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-undefined.
> >>> https://github.com/google/sanitizers/wiki/AddressSanitizer
> >>>
> >>> So my questions are:
> >>> - How do you enable ASAN? (How/Where do you specify the flag?)
> >>> - How can I avoid the link error without manual modifications?
> >>>
> >>> My build environment is OS X (Yosemite) with Apple LLVM version 7.0.2
> >>> (clang-700.1.81)
> >>>
> >>> Thanks,
> >>> Masakazu
> >>
> >>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message