http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55521
--- Comment #5 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-11-29 00:47:14 UTC --- This problem doesn't occur with x86_64 Fedora 15 built with --disable-tls. Also, using llvm 3.2's clang++ on x86_64-apple-darwin12, I can compile... /sw/opt/llvm-3.2/bin/clang++ -fsanitize=address cond1.C and the test case runs fine whereas... g++-fsf-4.8 -fsanitize=address cond1.C produces... ./a.out ASAN:SIGSEGV ================================================================= ==473== ERROR: AddressSanitizer: SEGV on unknown address 0x0000ffd27000 (pc 0x0000ffd27000 sp 0x7fff5928e848 bp 0x7fff5928e910 T0) AddressSanitizer can not provide additional info. #0 0xffd26fff (/Users/howarth/./a.out+0xf93b5fff) #1 0x7fff8bd827e0 (/usr/lib/system/libdyld.dylib+0x27e0) #2 0x0 Stats: 0M malloced (0M for red zones) by 3 calls Stats: 0M realloced by 0 calls Stats: 0M freed by 0 calls Stats: 0M really freed by 0 calls Stats: 1M (384 full pages) mmaped in 3 calls mmaps by size class: 7:4095; 8:2047; 9:1023; mallocs by size class: 7:1; 8:1; 9:1; frees by size class: rfrees by size class: Stats: malloc large: 0 small slow: 3 ==473== ABORTING