enable address sanitizer in jenkins builds
We already have a Jenkins project (codes-triton) that does automated testing each night. If we set it to use a newer version of gcc then we ought to be able to add in some memory usage checks via address sanitizer pretty easily.
To get a newer gcc, do this to enable softenv in a jenkins build script:
#!/bin/bash source /software/common/adm/etc/softenv-aliases.sh # example soft add +gcc-4.9.0 gcc -v
Then to enable address sanitizer, set the compiler flags as follows:
export CFLAGS="-fsanitize=address -fno-omit-frame-pointer -g" && export ASAN_OPTIONS="abort_on_error=1" && export LDFLAGS="-fsanitize=address"