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



--- Comment #6 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-11-28 
01:03:55 UTC ---

Similar failures are seen for....



FAIL: gcc.c-torture/execute/builtins/memset-chk.c execution,  -O1 

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

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

-fomit-frame-pointer 

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

-fomit-frame-pointer -funroll-loops 

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

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

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

FAIL: gcc.c-torture/execute/builtins/memset-chk.c execution,  -Os 

FAIL: gcc.c-torture/execute/builtins/memset-chk.c execution,  -Og -g 

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

-flto-partition=none 

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

/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121127/gcc/testsuite/gcc.c-torture/execute/builtins/memset-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/memset-chk.x1

   (timeout = 300)

PASS: gcc.c-torture/execute/builtins/memset-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

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

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

0x7fff575a2a44 at pc 0x10865c517 bp 0x7fff575a29f0 sp 0x7fff575a29e8

WRITE of size 1 at 0x7fff575a2a44 thread T0

    #0 0x10865c516

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gcc/memset-chk.x1+0x100002516)

    #1 0x0

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

  0x1fffeaeb4548: 4

  0x1fffeaeb4548: 04 f4 f3 f3 f3 f3 00 00

More shadow bytes:

  0x1fffeaeb4528: 00 00 00 00 00 00 00 00

  0x1fffeaeb4530: 00 00 00 00 00 00 00 00

  0x1fffeaeb4538: 00 00 00 00 00 00 00 00

  0x1fffeaeb4540: 00 00 f1 f1 f1 f1 00 00

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

  0x1fffeaeb4550: 00 00 00 00 00 00 00 00

  0x1fffeaeb4558: 00 00 00 00 00 00 00 00

  0x1fffeaeb4560: 00 00 00 00 00 00 00 00

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

==68667== ABORTING

FAIL: gcc.c-torture/execute/builtins/memset-chk.c execution,  -O1

Reply via email to