http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55502
--- Comment #2 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-11-28 00:51:22 UTC --- Similar failures are seen for.... FAIL: gcc.c-torture/execute/builtins/memmove-chk.c execution, -O1 FAIL: gcc.c-torture/execute/builtins/memmove-chk.c execution, -O2 FAIL: gcc.c-torture/execute/builtins/memmove-chk.c execution, -O3 -fomit-frame-pointer FAIL: gcc.c-torture/execute/builtins/memmove-chk.c execution, -O3 -fomit-frame-pointer -funroll-loops FAIL: gcc.c-torture/execute/builtins/memmove-chk.c execution, -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions FAIL: gcc.c-torture/execute/builtins/memmove-chk.c execution, -O3 -g FAIL: gcc.c-torture/execute/builtins/memmove-chk.c execution, -Os FAIL: gcc.c-torture/execute/builtins/memmove-chk.c execution, -Og -g FAIL: gcc.c-torture/execute/builtins/memmove-chk.c execution, -O2 -flto -flto-partition=none FAIL: gcc.c-torture/execute/builtins/memmove-chk.c execution, -O2 -flto which appears of the form... Executing on host: /sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/ /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121127/gcc/testsuite/gcc.c-torture/execute/builtins/memmove-chk.c /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121127/gcc/testsuite/gcc.c-torture/execute/builtins/memmove-chk-lib.c /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121127/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c -fno-diagnostics-show-caret -w -O1 -fno-tree-loop-distribute-patterns -lm -fsanitize=address -o /sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gcc/memmove-chk.x1 (timeout = 300) PASS: gcc.c-torture/execute/builtins/memmove-chk.c compilation, -O1 Setting LD_LIBRARY_PATH to :/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc::/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc ================================================================= ==67260== ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fff5268aa34 at pc 0x10d577acb bp 0x7fff5268a9e0 sp 0x7fff5268a9d8 WRITE of size 1 at 0x7fff5268aa34 thread T0 #0 0x10d577aca (/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gcc/memmove-chk.x1+0x100005aca) #1 0x0 Address 0x7fff5268aa34 is located at offset 52 in frame <test5> of T0's stack: This frame has 1 object(s): [32, 52) 'buf3' HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext (longjmp and C++ exceptions *are* supported) Shadow byte and word: 0x1fffea4d1546: 4 0x1fffea4d1540: f1 f1 f1 f1 00 00 04 f4 More shadow bytes: 0x1fffea4d1520: 00 00 00 00 00 00 00 00 0x1fffea4d1528: 00 00 00 00 00 00 00 00 0x1fffea4d1530: 00 00 00 00 00 00 00 00 0x1fffea4d1538: 00 00 00 00 00 00 00 00 =>0x1fffea4d1540: f1 f1 f1 f1 00 00 04 f4 0x1fffea4d1548: f3 f3 f3 f3 00 00 00 00 0x1fffea4d1550: 00 00 00 00 00 00 00 00 0x1fffea4d1558: 00 00 00 00 00 00 00 00 0x1fffea4d1560: 00 00 00 00 00 00 00 00 Stats: 0M malloced (0M for red zones) by 0 calls Stats: 0M realloced by 0 calls Stats: 0M freed by 0 calls Stats: 0M really freed by 0 calls Stats: 0M (0 full pages) mmaped in 0 calls mmaps by size class: mallocs by size class: frees by size class: rfrees by size class: Stats: malloc large: 0 small slow: 0 ==67260== ABORTING FAIL: gcc.c-torture/execute/builtins/memmove-chk.c execution, -O1