ftmemsim-valgrind/memcheck/tests/err_disable3.stderr.exp
Philippe Waroquiers 8f0961e770 Change default value for --keep-stacktraces has been changed to alloc-and-free
Default value changed following discussion on valdev.

Giving more information for errors with freed blocks can help
when investigating difficult problems (e.g. double free, programs
using 'cleanup list' collecting different types of memory, ...)

Regression tested on various setup (x86, ppc64, s390x, amd64, debian or fedora)

Tests that have only one exp files have been updated to use the output
of the new default value in their .exp file.

Tests having more than one exp file have been changed so as to
specify explicitely the previous clo default value (i.e. adding
 --keep-stacktraces=alloc-then-free in the vgtest file).

Possibly, some tests might fail on non tested platforms
(e.g. mips, macos, solaris, tilegx).
Fixes should be straightforward, using one of the above fix techniques.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15597
2015-08-29 10:45:26 +00:00

42 lines
1.0 KiB
Plaintext

--------- p: disabling errors (expect 0) ---------
--------- p: creating child ---------
--------- c: start (expect 1) ---------
Thread 2:
Invalid read of size 1
at 0x........: err (err_disable3.c:25)
by 0x........: child_fn (err_disable3.c:31)
...
Address 0x........ is 5 bytes inside a block of size 10 free'd
at 0x........: free (vg_replace_malloc.c:...)
by 0x........: main (err_disable3.c:42)
Block was alloc'd at
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: main (err_disable3.c:41)
--------- c: end ---------
--------- p: join child ---------
--------- p: re_enabled (expect 1) ---------
Thread 1:
Invalid read of size 1
at 0x........: err (err_disable3.c:25)
by 0x........: main (err_disable3.c:60)
Address 0x........ is 5 bytes inside a block of size 10 free'd
at 0x........: free (vg_replace_malloc.c:...)
by 0x........: main (err_disable3.c:42)
Block was alloc'd at
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: main (err_disable3.c:41)