mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
Changed error message from:
Address 0x%x is not stack'd, malloc'd or free'd to Address 0x%x is not stack'd, malloc'd or (recently) free'd This makes things clearer in some circumstances, particularly when bogusly accessing heap memory that has been freed, but Memcheck is no longer tracking. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2358
This commit is contained in:
parent
f37f533f73
commit
6a0aeb3716
@ -25,7 +25,7 @@ Invalid write of size 4
|
||||
Invalid free() / delete / delete[]
|
||||
at 0x........: free (vg_replace_malloc.c:...)
|
||||
by 0x........: main (fprw.c:22)
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
|
||||
Invalid write of size 8
|
||||
at 0x........: main (fprw.c:24)
|
||||
|
||||
@ -2585,7 +2585,7 @@ static void pp_AddrInfo ( Addr a, AddrInfo* ai )
|
||||
" v 2.96 or 3.0.X. To suppress, use: --workaround-gcc296-bugs=yes");
|
||||
} else {
|
||||
VG_(message)(Vg_UserMsg,
|
||||
" Address %p is not stack'd, malloc'd or free'd", a);
|
||||
" Address %p is not stack'd, malloc'd or (recently) free'd", a);
|
||||
}
|
||||
break;
|
||||
case Segment:
|
||||
|
||||
@ -238,7 +238,7 @@ void MAC_(pp_AddrInfo) ( Addr a, AddrInfo* ai )
|
||||
" v 2.96 or 3.0.X. To suppress, use: --workaround-gcc296-bugs=yes");
|
||||
} else {
|
||||
VG_(message)(Vg_UserMsg,
|
||||
" Address 0x%x is not stack'd, malloc'd or free'd", a);
|
||||
" Address 0x%x is not stack'd, malloc'd or (recently) free'd",a);
|
||||
}
|
||||
break;
|
||||
case Freed: case Mallocd: case UserG: {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Invalid free() / delete / delete[]
|
||||
at 0x........: free (vg_replace_malloc.c:...)
|
||||
by 0x........: main (badfree.c:12)
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
|
||||
Invalid free() / delete / delete[]
|
||||
at 0x........: free (vg_replace_malloc.c:...)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Invalid free() / delete / delete[]
|
||||
at 0x........: free (vg_replace_malloc.c:...)
|
||||
by 0x........: main (badfree.c:12)
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
|
||||
Invalid free() / delete / delete[]
|
||||
at 0x........: free (vg_replace_malloc.c:...)
|
||||
|
||||
@ -3,7 +3,7 @@ Jump to the invalid address stated on the next line
|
||||
at 0x........: ???
|
||||
by 0x........: __libc_start_main (...libc...)
|
||||
by 0x........: ...
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
|
||||
Process terminating with default action of signal 11 (SIGSEGV)
|
||||
Access not within mapped region at address 0x........
|
||||
|
||||
@ -2,7 +2,7 @@ Syscall param socketcall.getsockname(name) contains unaddressable byte(s)
|
||||
at 0x........: getsockname (in /...libc...)
|
||||
by 0x........: __libc_start_main (...libc...)
|
||||
by 0x........: ...
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
|
||||
Syscall param socketcall.getsockname(namelen_in) contains uninitialised or unaddressable byte(s)
|
||||
at 0x........: getsockname (in /...libc...)
|
||||
|
||||
@ -8,7 +8,7 @@ Invalid write of size 4
|
||||
Invalid free() / delete / delete[]
|
||||
at 0x........: custom_free (custom_alloc.c:54)
|
||||
by 0x........: main (custom_alloc.c:83)
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
|
||||
Mismatched free() / delete / delete []
|
||||
at 0x........: custom_free (custom_alloc.c:54)
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
Syscall param execve(filename) contains uninitialised or unaddressable byte(s)
|
||||
at 0x........: execve (in /...libc...)
|
||||
by 0x........: main (execve.c:8)
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
|
||||
Syscall param execve(argv[i]) contains uninitialised or unaddressable byte(s)
|
||||
at 0x........: execve (in /...libc...)
|
||||
by 0x........: main (execve.c:8)
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
|
||||
Syscall param execve(envp[i]) contains uninitialised or unaddressable byte(s)
|
||||
at 0x........: execve (in /...libc...)
|
||||
by 0x........: main (execve.c:8)
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
|
||||
@ -37,7 +37,7 @@ Invalid write of size 4
|
||||
Invalid free() / delete / delete[]
|
||||
at 0x........: free (vg_replace_malloc.c:...)
|
||||
by 0x........: main (fprw.c:22)
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
|
||||
Invalid write of size 8
|
||||
at 0x........: main (fprw.c:24)
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
Invalid write of size 4
|
||||
at 0x........: main (signal2.c:17)
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
|
||||
@ -3,19 +3,19 @@ Test file created.
|
||||
Syscall param writev(vector[...]) contains uninitialised or unaddressable byte(s)
|
||||
at 0x........: writev (in /...libc...)
|
||||
by 0x........: main (writev.c:56)
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
Received EFAULT as expected
|
||||
|
||||
Syscall param writev(vector) contains uninitialised or unaddressable byte(s)
|
||||
at 0x........: writev (in /...libc...)
|
||||
by 0x........: main (writev.c:68)
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
Received EINVAL as expected
|
||||
|
||||
Syscall param readv(vector) contains uninitialised or unaddressable byte(s)
|
||||
at 0x........: readv (in /...libc...)
|
||||
by 0x........: main (writev.c:76)
|
||||
Address 0x........ is not stack'd, malloc'd or free'd
|
||||
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|
||||
Received EINVAL as expected
|
||||
|
||||
ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user