Re: Testing for memory safety issues with Address Sanitizer

On Wed, 2016-09-21 at 11:27 -0500, Michael Catanzaro wrote:
For some reason, Fedora doesn't seem to have a libasan-devel package,
so there's no plain Really strange. I tried changing it
to in my jhbuildrc but actually couldn't figure out how
to do that; jhbuild is playing with LD_PRELOAD as well. :(

these options used to work in some not so distant past for me (yeah,
when playing with evolution-data-server and evolution):

export CFLAGS="$CFLAGS -fsanitize=address,bounds,alignment,object-size -fno-omit-frame-pointer"
export LDFLAGS="-fsanitize=address,bounds,alignment,object-size -lasan -lubsan -lpthread -ldl"

I recall I was forced to use the LD_PRELOAD too. It was for cases when
mixing with and without asan built code, if I recall correctly. You
should teach jhbuild to add the asan/ubsan first, I'm afraid (or to
concatenate the LD_PRELOAD with some shell value, similar to CFLAGS

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]