http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55502



--- Comment #8 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-11-28 
01:08:34 UTC ---

Similar failures are seen for....



FAIL: gcc.c-torture/execute/builtins/strcpy-chk.c execution,  -O2 

FAIL: gcc.c-torture/execute/builtins/strcpy-chk.c execution,  -O3

-fomit-frame-pointer 

FAIL: gcc.c-torture/execute/builtins/strcpy-chk.c execution,  -O3

-fomit-frame-pointer -funroll-loops 

FAIL: gcc.c-torture/execute/builtins/strcpy-chk.c execution,  -O3

-fomit-frame-pointer -funroll-all-loops -finline-functions 

FAIL: gcc.c-torture/execute/builtins/strcpy-chk.c execution,  -O3 -g 

FAIL: gcc.c-torture/execute/builtins/strcpy-chk.c execution,  -O2 -flto

-flto-partition=none 

FAIL: gcc.c-torture/execute/builtins/strcpy-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/strcpy-chk.c

/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121127/gcc/testsuite/gcc.c-torture/execute/builtins/strcpy-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  -O2  -fno-tree-loop-distribute-patterns  -lm 

 -fsanitize=address -o

/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gcc/strcpy-chk.x2

   (timeout = 300)

PASS: gcc.c-torture/execute/builtins/strcpy-chk.c compilation,  -O2

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

=================================================================

==72385== ERROR: AddressSanitizer: stack-buffer-overflow on address

0x7fff54bbea54 at pc 0x10b040cd0 bp 0x7fff54bbe9f0 sp 0x7fff54bbe9e8

WRITE of size 1 at 0x7fff54bbea54 thread T0

    #0 0x10b040ccf

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gcc/strcpy-chk.x2+0x100002ccf)

    #1 0x10b045bc7

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gcc/strcpy-chk.x2+0x100007bc7)

Address 0x7fff54bbea54 is located at offset 52 in frame <test4> 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:

  0x1fffea977d4a: 4

  0x1fffea977d48: 00 00 04 f4 f3 f3 f3 f3

More shadow bytes:

  0x1fffea977d28: 00 00 00 00 00 00 00 00

  0x1fffea977d30: 00 00 00 00 00 00 00 00

  0x1fffea977d38: 00 00 00 00 00 00 00 00

  0x1fffea977d40: 00 00 00 00 f1 f1 f1 f1

=>0x1fffea977d48: 00 00 04 f4 f3 f3 f3 f3

  0x1fffea977d50: 00 00 00 00 00 00 00 00

  0x1fffea977d58: 00 00 00 00 00 00 00 00

  0x1fffea977d60: 00 00 00 00 00 00 00 00

  0x1fffea977d68: 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

==72385== ABORTING

FAIL: gcc.c-torture/execute/builtins/strcpy-chk.c execution,  -O2

Reply via email to