|
From: <sv...@va...> - 2005-08-10 11:35:30
|
Author: dirk
Date: 2005-08-10 12:35:27 +0100 (Wed, 10 Aug 2005)
New Revision: 4367
Log:
- Fix up the sigaction results.
- When printing error counts, print the <unique> in the same way that
it is in the error itself. Otherwise it's totally useless :-)
Modified:
branches/VALGRIND_3_0_BRANCH/coregrind/m_errormgr.c
branches/VALGRIND_3_0_BRANCH/memcheck/tests/x86/scalar.c
branches/VALGRIND_3_0_BRANCH/memcheck/tests/x86/scalar.stderr.exp
branches/VALGRIND_3_0_BRANCH/memcheck/tests/x86/scalar.stderr.exp2
Modified: branches/VALGRIND_3_0_BRANCH/coregrind/m_errormgr.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/VALGRIND_3_0_BRANCH/coregrind/m_errormgr.c 2005-08-10 11:33:=
46 UTC (rev 4366)
+++ branches/VALGRIND_3_0_BRANCH/coregrind/m_errormgr.c 2005-08-10 11:35:=
27 UTC (rev 4367)
@@ -800,7 +800,7 @@
VG_(message)(
Vg_UserMsg, " <pair> <count>%d</count> "
"<unique>0x%llx</unique> </pair>",
- err->count, Ptr_to_ULong(err)
+ err->count, err->unique
);
}
VG_(message)(Vg_UserMsg, "</errorcounts>");
Modified: branches/VALGRIND_3_0_BRANCH/memcheck/tests/x86/scalar.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/VALGRIND_3_0_BRANCH/memcheck/tests/x86/scalar.c 2005-08-10 1=
1:33:46 UTC (rev 4366)
+++ branches/VALGRIND_3_0_BRANCH/memcheck/tests/x86/scalar.c 2005-08-10 1=
1:35:27 UTC (rev 4367)
@@ -763,7 +763,7 @@
=20
// __NR_rt_sigaction 174
GO(__NR_rt_sigaction, "4s 2m");
- SY(__NR_rt_sigaction, x0, x0+1, x0+1, x0); FAIL;
+ SY(__NR_rt_sigaction, x0, x0+&px[2], x0+&px[2], x0); FAIL;
=20
// __NR_rt_sigprocmask 175
GO(__NR_rt_sigprocmask, "4s 2m");
Modified: branches/VALGRIND_3_0_BRANCH/memcheck/tests/x86/scalar.stderr.e=
xp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/VALGRIND_3_0_BRANCH/memcheck/tests/x86/scalar.stderr.exp 200=
5-08-10 11:33:46 UTC (rev 4366)
+++ branches/VALGRIND_3_0_BRANCH/memcheck/tests/x86/scalar.stderr.exp 200=
5-08-10 11:35:27 UTC (rev 4367)
@@ -800,7 +800,7 @@
by 0x........: __libc_start_main (in /...libc...)
by 0x........: ...
=20
-Syscall param sigaction(act) points to unaddressable byte(s)
+Syscall param sigaction(act->sa_handler) points to unaddressable byte(s)
at 0x........: syscall (in /...libc...)
by 0x........: __libc_start_main (in /...libc...)
by 0x........: ...
@@ -808,6 +808,22 @@
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: main (scalar.c:24)
=20
+Syscall param sigaction(act->sa_mask) points to unaddressable byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: ...
+ Address 0x........ is 4 bytes after a block of size 4 alloc'd
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: main (scalar.c:24)
+
+Syscall param sigaction(act->sa_flags) points to unaddressable byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: ...
+ Address 0x........ is 8 bytes after a block of size 4 alloc'd
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: main (scalar.c:24)
+
Syscall param sigaction(oldact) points to unaddressable byte(s)
at 0x........: syscall (in /...libc...)
by 0x........: __libc_start_main (in /...libc...)
@@ -2400,17 +2416,35 @@
by 0x........: __libc_start_main (in /...libc...)
by 0x........: ...
=20
-Syscall param rt_sigaction(act) points to unaddressable byte(s)
+Syscall param rt_sigaction(act->sa_handler) points to unaddressable byte=
(s)
at 0x........: syscall (in /...libc...)
by 0x........: __libc_start_main (in /...libc...)
by 0x........: ...
+ Address 0x........ is 4 bytes after a block of size 4 alloc'd
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: main (scalar.c:24)
+
+Syscall param rt_sigaction(act->sa_mask) points to unaddressable byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: ...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
=20
+Syscall param rt_sigaction(act->sa_flags) points to unaddressable byte(s=
)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: ...
+ Address 0x........ is 8 bytes after a block of size 4 alloc'd
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: main (scalar.c:24)
+
Syscall param rt_sigaction(oldact) points to unaddressable byte(s)
at 0x........: syscall (in /...libc...)
by 0x........: __libc_start_main (in /...libc...)
by 0x........: ...
- Address 0x........ is not stack'd, malloc'd or (recently) free'd
+ Address 0x........ is 4 bytes after a block of size 4 alloc'd
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: main (scalar.c:24)
-----------------------------------------------------
175: __NR_rt_sigprocmask 4s 2m
-----------------------------------------------------
Modified: branches/VALGRIND_3_0_BRANCH/memcheck/tests/x86/scalar.stderr.e=
xp2
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/VALGRIND_3_0_BRANCH/memcheck/tests/x86/scalar.stderr.exp2 20=
05-08-10 11:33:46 UTC (rev 4366)
+++ branches/VALGRIND_3_0_BRANCH/memcheck/tests/x86/scalar.stderr.exp2 20=
05-08-10 11:35:27 UTC (rev 4367)
@@ -718,13 +718,27 @@
at 0x........: syscall (in /...libc...)
by 0x........: main (scalar.c:320)
=20
-Syscall param sigaction(act) points to unaddressable byte(s)
+Syscall param sigaction(act->sa_handler) points to unaddressable byte(s)
at 0x........: syscall (in /...libc...)
by 0x........: main (scalar.c:320)
Address 0x........ is 0 bytes after a block of size 4 alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: main (scalar.c:24)
=20
+Syscall param sigaction(act->sa_mask) points to unaddressable byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: main (scalar.c:320)
+ Address 0x........ is 4 bytes after a block of size 4 alloc'd
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: main (scalar.c:24)
+
+Syscall param sigaction(act->sa_flags) points to unaddressable byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: main (scalar.c:320)
+ Address 0x........ is 8 bytes after a block of size 4 alloc'd
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: main (scalar.c:24)
+
Syscall param sigaction(oldact) points to unaddressable byte(s)
at 0x........: syscall (in /...libc...)
by 0x........: main (scalar.c:320)
@@ -2081,15 +2095,31 @@
at 0x........: syscall (in /...libc...)
by 0x........: main (scalar.c:766)
=20
-Syscall param rt_sigaction(act) points to unaddressable byte(s)
+Syscall param rt_sigaction(act->sa_handler) points to unaddressable byte=
(s)
at 0x........: syscall (in /...libc...)
by 0x........: main (scalar.c:766)
+ Address 0x........ is 4 bytes after a block of size 4 alloc'd
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: main (scalar.c:24)
+
+Syscall param rt_sigaction(act->sa_mask) points to unaddressable byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: main (scalar.c:766)
Address 0x........ is not stack'd, malloc'd or (recently) free'd
=20
+Syscall param rt_sigaction(act->sa_flags) points to unaddressable byte(s=
)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: main (scalar.c:766)
+ Address 0x........ is 8 bytes after a block of size 4 alloc'd
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: main (scalar.c:24)
+
Syscall param rt_sigaction(oldact) points to unaddressable byte(s)
at 0x........: syscall (in /...libc...)
by 0x........: main (scalar.c:766)
- Address 0x........ is not stack'd, malloc'd or (recently) free'd
+ Address 0x........ is 4 bytes after a block of size 4 alloc'd
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: main (scalar.c:24)
-----------------------------------------------------
175: __NR_rt_sigprocmask 4s 2m
-----------------------------------------------------
|