I'm trying to build with -fsanitize=thread (just to try it), witht he following options: "-fsanitize=thread -pie" [I use "-pie" because the _first_ I tried, I got a link error saying "use -pie" :] I'm using g++ version: g++ (Debian 20130222-1) 4.8.0 20130223 (experimental) [trunk revision 196236] But I get a link error: g++-snapshot -O3 -fomit-frame-pointer -flto -ffast-math -march=native -mfpmath=sse -g -std=c++11 -Wall -Wextra -Winit-self -Wdouble-promotion -pedantic-errors -Wno-long-long -fsanitize=thread -pie -fno-finite-math-only -ftrapping-math -fno-associative-math -ffunction-sections -pthread -Wl,--icf=all -o snogray snogray.o recover-image.o libsnoglua.a libsnograw.a libluaexts.a -L/usr//lib -lluajit-5.1 libsnogrdrive.a libsnogloaders.a -l3ds libsnogmat.a libsnogsurf.a libsnoglight.a libsnogrender.a libsnogtex.a libsnogspace.a libsnogscene.a libsnogimagecli.a libsnogimage.a -lpng12 -pthread -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread -ljpeg -lnetpbm libsnogcolor.a libsnogcli.a libsnogutil.a /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.8.0/../../../../lib/libasan_preinit.o:asan_preinit.cc:function __asan_preinit: error: undefined reference to '__asan_init_v1' collect2: error: ld returned 1 exit status Are there any additional tricks needed to use -fsanitize=thread? Thanks, -miles -- ((lambda (x) (list x x)) (lambda (x) (list x x)))