ftmemsim-valgrind/memcheck/tests/custom_alloc.stderr.exp
Philippe Waroquiers 825fdcf3cb Ensure VALGRIND_MALLOCLIKE_BLOCK protects the red zones.
* Redzones for custom alloc were not protected by VALGRIND_MALLOCLIKE_BLOCK.
  mc_main.c client request handling completed with protection
  of the redzones.
* custom_alloc.c test modified to test this case.
* mc_errors.c modified so as to first search for a malloc-ed block
  bracketting the error : for a custom allocator, a recently freed
  block can have just been re-allocated.
  In such a case, describing the address (e.g. in case of error)
  points to the block freed rather than to the block just allocated.
  If there is *also* a recently freed block bracketting the address,
  the block description is changed to indicate that.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12439
2012-03-11 17:59:00 +00:00

109 lines
4.3 KiB
Plaintext

Invalid write of size 4
at 0x........: main (custom_alloc.c:117)
Address 0x........ is 0 bytes after a block of size 40 alloc'd
at 0x........: custom_alloc (custom_alloc.c:47)
by 0x........: main (custom_alloc.c:114)
Invalid write of size 4
at 0x........: main (custom_alloc.c:121)
Address 0x........ is 0 bytes after a block of size 20 alloc'd
at 0x........: custom_alloc (custom_alloc.c:47)
by 0x........: main (custom_alloc.c:114)
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (custom_alloc.c:128)
Invalid write of size 4
at 0x........: main (custom_alloc.c:131)
Address 0x........ is 0 bytes after a block of size 28 alloc'd
at 0x........: custom_alloc (custom_alloc.c:47)
by 0x........: main (custom_alloc.c:114)
Invalid free() / delete / delete[] / realloc()
at 0x........: main (custom_alloc.c:134)
Address 0x........ is 4 bytes inside a block of size 28 alloc'd
at 0x........: custom_alloc (custom_alloc.c:47)
by 0x........: main (custom_alloc.c:114)
Invalid free() / delete / delete[] / realloc()
at 0x........: custom_free (custom_alloc.c:54)
by 0x........: main (custom_alloc.c:138)
Address 0x........ is not stack'd, malloc'd or (recently) free'd
Mismatched free() / delete / delete []
at 0x........: custom_free (custom_alloc.c:54)
by 0x........: main (custom_alloc.c:141)
Address 0x........ is 0 bytes inside a block of size 40 alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: main (custom_alloc.c:140)
Invalid read of size 4
at 0x........: main (custom_alloc.c:144)
Address 0x........ is 0 bytes inside a block of size 28 free'd
at 0x........: custom_free (custom_alloc.c:54)
by 0x........: main (custom_alloc.c:136)
Invalid write of size 1
at 0x........: checkredzone (custom_alloc.c:68)
by 0x........: main (custom_alloc.c:151)
Address 0x........ is 1 bytes before a block of size 20 alloc'd
at 0x........: checkredzone (custom_alloc.c:66)
by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
at 0x........: checkredzone (custom_alloc.c:69)
by 0x........: main (custom_alloc.c:151)
Address 0x........ is 8 bytes before a block of size 20 alloc'd
at 0x........: checkredzone (custom_alloc.c:66)
by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
at 0x........: checkredzone (custom_alloc.c:73)
by 0x........: main (custom_alloc.c:151)
Address 0x........ is 0 bytes after a block of size 20 alloc'd
at 0x........: checkredzone (custom_alloc.c:66)
by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
at 0x........: checkredzone (custom_alloc.c:74)
by 0x........: main (custom_alloc.c:151)
Address 0x........ is 7 bytes after a block of size 20 alloc'd
at 0x........: checkredzone (custom_alloc.c:66)
by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
at 0x........: checkredzone (custom_alloc.c:83)
by 0x........: main (custom_alloc.c:151)
Address 0x........ is 1 bytes before a recently re-allocated block of size 10 alloc'd
at 0x........: checkredzone (custom_alloc.c:81)
by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
at 0x........: checkredzone (custom_alloc.c:84)
by 0x........: main (custom_alloc.c:151)
Address 0x........ is 8 bytes before a recently re-allocated block of size 10 alloc'd
at 0x........: checkredzone (custom_alloc.c:81)
by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
at 0x........: checkredzone (custom_alloc.c:88)
by 0x........: main (custom_alloc.c:151)
Address 0x........ is 0 bytes after a recently re-allocated block of size 10 alloc'd
at 0x........: checkredzone (custom_alloc.c:81)
by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
at 0x........: checkredzone (custom_alloc.c:89)
by 0x........: main (custom_alloc.c:151)
Address 0x........ is 7 bytes after a recently re-allocated block of size 10 alloc'd
at 0x........: checkredzone (custom_alloc.c:81)
by 0x........: main (custom_alloc.c:151)
Invalid write of size 1
at 0x........: checkredzone (custom_alloc.c:90)
by 0x........: main (custom_alloc.c:151)
Address 0x........ is 8 bytes after a recently re-allocated block of size 10 alloc'd
at 0x........: checkredzone (custom_alloc.c:81)
by 0x........: main (custom_alloc.c:151)