You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(122) |
Nov
(152) |
Dec
(69) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(6) |
Feb
(25) |
Mar
(73) |
Apr
(82) |
May
(24) |
Jun
(25) |
Jul
(10) |
Aug
(11) |
Sep
(10) |
Oct
(54) |
Nov
(203) |
Dec
(182) |
| 2004 |
Jan
(307) |
Feb
(305) |
Mar
(430) |
Apr
(312) |
May
(187) |
Jun
(342) |
Jul
(487) |
Aug
(637) |
Sep
(336) |
Oct
(373) |
Nov
(441) |
Dec
(210) |
| 2005 |
Jan
(385) |
Feb
(480) |
Mar
(636) |
Apr
(544) |
May
(679) |
Jun
(625) |
Jul
(810) |
Aug
(838) |
Sep
(634) |
Oct
(521) |
Nov
(965) |
Dec
(543) |
| 2006 |
Jan
(494) |
Feb
(431) |
Mar
(546) |
Apr
(411) |
May
(406) |
Jun
(322) |
Jul
(256) |
Aug
(401) |
Sep
(345) |
Oct
(542) |
Nov
(308) |
Dec
(481) |
| 2007 |
Jan
(427) |
Feb
(326) |
Mar
(367) |
Apr
(255) |
May
(244) |
Jun
(204) |
Jul
(223) |
Aug
(231) |
Sep
(354) |
Oct
(374) |
Nov
(497) |
Dec
(362) |
| 2008 |
Jan
(322) |
Feb
(482) |
Mar
(658) |
Apr
(422) |
May
(476) |
Jun
(396) |
Jul
(455) |
Aug
(267) |
Sep
(280) |
Oct
(253) |
Nov
(232) |
Dec
(304) |
| 2009 |
Jan
(486) |
Feb
(470) |
Mar
(458) |
Apr
(423) |
May
(696) |
Jun
(461) |
Jul
(551) |
Aug
(575) |
Sep
(134) |
Oct
(110) |
Nov
(157) |
Dec
(102) |
| 2010 |
Jan
(226) |
Feb
(86) |
Mar
(147) |
Apr
(117) |
May
(107) |
Jun
(203) |
Jul
(193) |
Aug
(238) |
Sep
(300) |
Oct
(246) |
Nov
(23) |
Dec
(75) |
| 2011 |
Jan
(133) |
Feb
(195) |
Mar
(315) |
Apr
(200) |
May
(267) |
Jun
(293) |
Jul
(353) |
Aug
(237) |
Sep
(278) |
Oct
(611) |
Nov
(274) |
Dec
(260) |
| 2012 |
Jan
(303) |
Feb
(391) |
Mar
(417) |
Apr
(441) |
May
(488) |
Jun
(655) |
Jul
(590) |
Aug
(610) |
Sep
(526) |
Oct
(478) |
Nov
(359) |
Dec
(372) |
| 2013 |
Jan
(467) |
Feb
(226) |
Mar
(391) |
Apr
(281) |
May
(299) |
Jun
(252) |
Jul
(311) |
Aug
(352) |
Sep
(481) |
Oct
(571) |
Nov
(222) |
Dec
(231) |
| 2014 |
Jan
(185) |
Feb
(329) |
Mar
(245) |
Apr
(238) |
May
(281) |
Jun
(399) |
Jul
(382) |
Aug
(500) |
Sep
(579) |
Oct
(435) |
Nov
(487) |
Dec
(256) |
| 2015 |
Jan
(338) |
Feb
(357) |
Mar
(330) |
Apr
(294) |
May
(191) |
Jun
(108) |
Jul
(142) |
Aug
(261) |
Sep
(190) |
Oct
(54) |
Nov
(83) |
Dec
(22) |
| 2016 |
Jan
(49) |
Feb
(89) |
Mar
(33) |
Apr
(50) |
May
(27) |
Jun
(34) |
Jul
(53) |
Aug
(53) |
Sep
(98) |
Oct
(206) |
Nov
(93) |
Dec
(53) |
| 2017 |
Jan
(65) |
Feb
(82) |
Mar
(102) |
Apr
(86) |
May
(187) |
Jun
(67) |
Jul
(23) |
Aug
(93) |
Sep
(65) |
Oct
(45) |
Nov
(35) |
Dec
(17) |
| 2018 |
Jan
(26) |
Feb
(35) |
Mar
(38) |
Apr
(32) |
May
(8) |
Jun
(43) |
Jul
(27) |
Aug
(30) |
Sep
(43) |
Oct
(42) |
Nov
(38) |
Dec
(67) |
| 2019 |
Jan
(32) |
Feb
(37) |
Mar
(53) |
Apr
(64) |
May
(49) |
Jun
(18) |
Jul
(14) |
Aug
(53) |
Sep
(25) |
Oct
(30) |
Nov
(49) |
Dec
(31) |
| 2020 |
Jan
(87) |
Feb
(45) |
Mar
(37) |
Apr
(51) |
May
(99) |
Jun
(36) |
Jul
(11) |
Aug
(14) |
Sep
(20) |
Oct
(24) |
Nov
(40) |
Dec
(23) |
| 2021 |
Jan
(14) |
Feb
(53) |
Mar
(85) |
Apr
(15) |
May
(19) |
Jun
(3) |
Jul
(14) |
Aug
(1) |
Sep
(57) |
Oct
(73) |
Nov
(56) |
Dec
(22) |
| 2022 |
Jan
(3) |
Feb
(22) |
Mar
(6) |
Apr
(55) |
May
(46) |
Jun
(39) |
Jul
(15) |
Aug
(9) |
Sep
(11) |
Oct
(34) |
Nov
(20) |
Dec
(36) |
| 2023 |
Jan
(79) |
Feb
(41) |
Mar
(99) |
Apr
(169) |
May
(48) |
Jun
(16) |
Jul
(16) |
Aug
(57) |
Sep
(19) |
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
1
(18) |
2
(35) |
3
(34) |
4
(25) |
5
(16) |
6
(32) |
|
7
(7) |
8
(13) |
9
(20) |
10
(17) |
11
(10) |
12
(18) |
13
(9) |
|
14
(5) |
15
(26) |
16
(23) |
17
(5) |
18
(1) |
19
(4) |
20
(3) |
|
21
(10) |
22
(13) |
23
(13) |
24
(23) |
25
(30) |
26
(13) |
27
(6) |
|
28
(1) |
29
(16) |
30
(15) |
|
|
|
|
|
From: <sv...@va...> - 2009-06-10 23:26:19
|
Author: njn
Date: 2009-06-11 00:26:13 +0100 (Thu, 11 Jun 2009)
New Revision: 10297
Log:
Add wrappers for shmat() and shmdt() on Darwin. Fixes bug 191271.
Modified:
trunk/coregrind/m_syswrap/priv_syswrap-darwin.h
trunk/coregrind/m_syswrap/syswrap-amd64-linux.c
trunk/coregrind/m_syswrap/syswrap-darwin.c
trunk/memcheck/tests/darwin/scalar.c
trunk/memcheck/tests/darwin/scalar.stderr.exp
Modified: trunk/coregrind/m_syswrap/priv_syswrap-darwin.h
===================================================================
--- trunk/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-06-10 23:09:40 UTC (rev 10296)
+++ trunk/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-06-10 23:26:13 UTC (rev 10297)
@@ -317,9 +317,9 @@
// NYI msgget 259
// NYI msgsnd 260
// NYI msgrcv 261
-// NYI shmat 262
+DECL_TEMPLATE(darwin, shmat); // 262
DECL_TEMPLATE(darwin, shmctl); // 263
-// NYI shmdt 264
+DECL_TEMPLATE(darwin, shmdt); // 264
DECL_TEMPLATE(darwin, shmget); // 265
DECL_TEMPLATE(darwin, shm_open); // 266
// NYI shm_unlink 267
Modified: trunk/coregrind/m_syswrap/syswrap-amd64-linux.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-amd64-linux.c 2009-06-10 23:09:40 UTC (rev 10296)
+++ trunk/coregrind/m_syswrap/syswrap-amd64-linux.c 2009-06-10 23:26:13 UTC (rev 10297)
@@ -906,7 +906,7 @@
if (arg2tmp == 0)
SET_STATUS_Failure( VKI_EINVAL );
else
- ARG2 = arg2tmp;
+ ARG2 = arg2tmp; // used in POST
}
POST(wrap_sys_shmat)
{
Modified: trunk/coregrind/m_syswrap/syswrap-darwin.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-darwin.c 2009-06-10 23:09:40 UTC (rev 10296)
+++ trunk/coregrind/m_syswrap/syswrap-darwin.c 2009-06-10 23:26:13 UTC (rev 10297)
@@ -1780,11 +1780,23 @@
POST_MEM_WRITE( ARG2, (vki_ssize_t)RES );
}
-PRE(shmget)
+
+PRE(shmat)
{
- PRINT("shmget ( %ld, %ld, %ld )",ARG1,ARG2,ARG3);
- PRE_REG_READ3(long, "shmget", vki_key_t, key, vki_size_t, size, int, shmflg);
+ UWord arg2tmp;
+ PRINT("shmat ( %ld, %#lx, %ld )",ARG1,ARG2,ARG3);
+ PRE_REG_READ3(long, "shmat",
+ int, shmid, const void *, shmaddr, int, shmflg);
+ arg2tmp = ML_(generic_PRE_sys_shmat)(tid, ARG1,ARG2,ARG3);
+ if (arg2tmp == 0)
+ SET_STATUS_Failure( VKI_EINVAL );
+ else
+ ARG2 = arg2tmp; // used in POST
}
+POST(shmat)
+{
+ ML_(generic_POST_sys_shmat)(tid, RES,ARG1,ARG2,ARG3);
+}
PRE(shmctl)
{
@@ -1798,6 +1810,24 @@
ML_(generic_POST_sys_shmctl)(tid, RES,ARG1,ARG2,ARG3);
}
+PRE(shmdt)
+{
+ PRINT("shmdt ( %#lx )",ARG1);
+ PRE_REG_READ1(long, "shmdt", const void *, shmaddr);
+ if (!ML_(generic_PRE_sys_shmdt)(tid, ARG1))
+ SET_STATUS_Failure( VKI_EINVAL );
+}
+POST(shmdt)
+{
+ ML_(generic_POST_sys_shmdt)(tid, RES,ARG1);
+}
+
+PRE(shmget)
+{
+ PRINT("shmget ( %ld, %ld, %ld )",ARG1,ARG2,ARG3);
+ PRE_REG_READ3(long, "shmget", vki_key_t, key, vki_size_t, size, int, shmflg);
+}
+
PRE(shm_open)
{
PRINT("shm_open(%#lx(%s), %ld, %ld)", ARG1, (char *)ARG1, ARG2, ARG3);
@@ -7216,9 +7246,9 @@
// _____(__NR_msgget),
// _____(__NR_msgsnd), // 260
// _____(__NR_msgrcv),
-// _____(__NR_shmat),
+ MACXY(__NR_shmat, shmat),
MACXY(__NR_shmctl, shmctl),
-// _____(__NR_shmdt),
+ MACXY(__NR_shmdt, shmdt),
MACX_(__NR_shmget, shmget),
MACXY(__NR_shm_open, shm_open),
// _____(__NR_shm_unlink),
Modified: trunk/memcheck/tests/darwin/scalar.c
===================================================================
--- trunk/memcheck/tests/darwin/scalar.c 2009-06-10 23:09:40 UTC (rev 10296)
+++ trunk/memcheck/tests/darwin/scalar.c 2009-06-10 23:26:13 UTC (rev 10297)
@@ -313,13 +313,18 @@
// __NR_msgget 259
// __NR_msgsnd 260
// __NR_msgrcv 261
+
// __NR_shmat 262
+ GO(__NR_shmat, "3s 0m");
+ SY(__NR_shmat, x0, x0, x0); FAIL;
// __NR_shmctl 263
GO(__NR_shmctl, "3s 1m");
SY(__NR_shmctl, x0, x0+IPC_STAT, x0+1); FAIL;
// __NR_shmdt 264
+ GO(__NR_shmdt, "1s 0m");
+ SY(__NR_shmdt, x0); FAIL;
// __NR_shmget 265
GO(__NR_shmget, "3s 0m");
Modified: trunk/memcheck/tests/darwin/scalar.stderr.exp
===================================================================
--- trunk/memcheck/tests/darwin/scalar.stderr.exp 2009-06-10 23:09:40 UTC (rev 10296)
+++ trunk/memcheck/tests/darwin/scalar.stderr.exp 2009-06-10 23:26:13 UTC (rev 10297)
@@ -124,6 +124,18 @@
...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+x2000106(262): __NR_shmat 3s 0m
+-----------------------------------------------------
+
+Syscall param shmat(shmid) contains uninitialised byte(s)
+ ...
+
+Syscall param shmat(shmaddr) contains uninitialised byte(s)
+ ...
+
+Syscall param shmat(shmflg) contains uninitialised byte(s)
+ ...
+-----------------------------------------------------
x2000107(263): __NR_shmctl 3s 1m
-----------------------------------------------------
@@ -140,6 +152,12 @@
...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+x2000108(264): __NR_shmdt 1s 0m
+-----------------------------------------------------
+
+Syscall param shmdt(shmaddr) contains uninitialised byte(s)
+ ...
+-----------------------------------------------------
x2000109(265): __NR_shmget 3s 0m
-----------------------------------------------------
|
|
From: <sv...@va...> - 2009-06-10 23:11:08
|
Author: njn
Date: 2009-06-11 00:09:40 +0100 (Thu, 11 Jun 2009)
New Revision: 10296
Log:
Move the Darwin _nocancel tests to a different file so they can be tested
properly.
Added:
trunk/memcheck/tests/darwin/scalar_nocancel.c
trunk/memcheck/tests/darwin/scalar_nocancel.stderr.exp
trunk/memcheck/tests/darwin/scalar_nocancel.vgtest
Modified:
trunk/memcheck/tests/darwin/Makefile.am
trunk/memcheck/tests/darwin/scalar.c
trunk/memcheck/tests/darwin/scalar.stderr.exp
Modified: trunk/memcheck/tests/darwin/Makefile.am
===================================================================
--- trunk/memcheck/tests/darwin/Makefile.am 2009-06-10 22:58:27 UTC (rev 10295)
+++ trunk/memcheck/tests/darwin/Makefile.am 2009-06-10 23:09:40 UTC (rev 10296)
@@ -8,10 +8,14 @@
EXTRA_DIST = $(noinst_SCRIPTS) \
scalar.stderr.exp scalar.vgtest \
scalar_fork.stderr.exp scalar_fork.vgtest \
+ scalar_nocancel.stderr.exp scalar_nocancel.vgtest \
scalar_vfork.stderr.exp scalar_vfork.vgtest
check_PROGRAMS = \
- scalar scalar_fork scalar_vfork
+ scalar \
+ scalar_fork \
+ scalar_nocancel \
+ scalar_vfork
AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
Modified: trunk/memcheck/tests/darwin/scalar.c
===================================================================
--- trunk/memcheck/tests/darwin/scalar.c 2009-06-10 22:58:27 UTC (rev 10295)
+++ trunk/memcheck/tests/darwin/scalar.c 2009-06-10 23:09:40 UTC (rev 10296)
@@ -518,46 +518,16 @@
// __NR___mac_set_lctx 393
// __NR_setlcid 394
// __NR_getlcid 395
- // __NR_read_nocancel 396
- // __NR_write_nocancel 397
- // __NR_open_nocancel 398
- // __NR_close_nocancel 399
- // __NR_wait4_nocancel 400
- // __NR_recvmsg_nocancel 401
- // __NR_sendmsg_nocancel 402
- // __NR_recvfrom_nocancel 403
- // __NR_accept_nocancel 404
- // __NR_msync_nocancel 405
- // __NR_fcntl_nocancel 406
- // __NR_select_nocancel 407
- // __NR_fsync_nocancel 408
- // __NR_connect_nocancel 409
- // __NR_sigsuspend_nocancel 410
- // __NR_readv_nocancel 411
- // __NR_writev_nocancel 412
- // __NR_sendto_nocancel 413
- // __NR_pread_nocancel 414
- // __NR_pwrite_nocancel 415
- // __NR_waitid_nocancel 416
- // __NR_poll_nocancel 417
- // __NR_msgsnd_nocancel 418
- // __NR_msgrcv_nocancel 419
- // __NR_sem_wait_nocancel 420
- // The error doesn't appear because it's a dup of the one from sem_wait.
- GO(__NR_sem_wait_nocancel, "0s* 0m");
- SY(__NR_sem_wait_nocancel, x0); FAIL;
+ // The nocancel syscalls (396--423) are tested in scalar_nocancel.c.
- // __NR_aio_suspend_nocancel 421
- // __NR___sigwait_nocancel 422
- // __NR___semwait_signal_nocancel 423
// __NR___mac_mount 424
// __NR___mac_get_mount 425
// __NR___mac_getfsstat 426
// __NR_MAXSYSCALL 427
#if 0
- // XXX: all these are copied from x86-darwin/scalar.c.
+ // XXX: all these are copied from x86-linux/scalar.c.
// __NR_open 5
GO(__NR_open, "(2-args) 2s 1m");
Modified: trunk/memcheck/tests/darwin/scalar.stderr.exp
===================================================================
--- trunk/memcheck/tests/darwin/scalar.stderr.exp 2009-06-10 22:58:27 UTC (rev 10295)
+++ trunk/memcheck/tests/darwin/scalar.stderr.exp 2009-06-10 23:09:40 UTC (rev 10296)
@@ -358,9 +358,6 @@
...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
-x20001a4(420):__NR_sem_wait_nocancel 0s* 0m
------------------------------------------------------
------------------------------------------------------
x270f(9999): 9999 1e
-----------------------------------------------------
WARNING: unhandled syscall: unix:9999
Copied: trunk/memcheck/tests/darwin/scalar_nocancel.c (from rev 10295, trunk/memcheck/tests/darwin/scalar.c)
===================================================================
--- trunk/memcheck/tests/darwin/scalar_nocancel.c (rev 0)
+++ trunk/memcheck/tests/darwin/scalar_nocancel.c 2009-06-10 23:09:40 UTC (rev 10296)
@@ -0,0 +1,61 @@
+#include "../../memcheck.h"
+#include "scalar.h"
+#include <unistd.h>
+#include <sched.h>
+#include <signal.h>
+#include <sys/shm.h>
+
+// See memcheck/tests/x86-linux/scalar.c for an explanation of what this test
+// is doing.
+
+int main(void)
+{
+ // uninitialised, but we know px[0] is 0x0
+ long* px = malloc(sizeof(long));
+ long x0 = px[0];
+ long res;
+
+ VALGRIND_MAKE_MEM_NOACCESS(0, 0x1000);
+
+ // The nocancel syscalls all use the same wrappers as the corresponding
+ // non-nocancel syscall. This means that if we try to test both in the
+ // same file, the nocancel ones won't result in errors being generated
+ // because errors are too similar. So we test them in this separate file.
+
+ // __NR_read_nocancel 396
+ // __NR_write_nocancel 397
+ // __NR_open_nocancel 398
+ // __NR_close_nocancel 399
+ // __NR_wait4_nocancel 400
+ // __NR_recvmsg_nocancel 401
+ // __NR_sendmsg_nocancel 402
+ // __NR_recvfrom_nocancel 403
+ // __NR_accept_nocancel 404
+ // __NR_msync_nocancel 405
+ // __NR_fcntl_nocancel 406
+ // __NR_select_nocancel 407
+ // __NR_fsync_nocancel 408
+ // __NR_connect_nocancel 409
+ // __NR_sigsuspend_nocancel 410
+ // __NR_readv_nocancel 411
+ // __NR_writev_nocancel 412
+ // __NR_sendto_nocancel 413
+ // __NR_pread_nocancel 414
+ // __NR_pwrite_nocancel 415
+ // __NR_waitid_nocancel 416
+ // __NR_poll_nocancel 417
+ // __NR_msgsnd_nocancel 418
+ // __NR_msgrcv_nocancel 419
+
+ // __NR_sem_wait_nocancel 420
+ // The error doesn't appear because it's a dup of the one from sem_wait.
+ GO(__NR_sem_wait_nocancel, "1s 0m");
+ SY(__NR_sem_wait_nocancel, x0); FAIL;
+
+ // __NR_aio_suspend_nocancel 421
+ // __NR___sigwait_nocancel 422
+ // __NR___semwait_signal_nocancel 423
+
+ return 0;
+}
+
Added: trunk/memcheck/tests/darwin/scalar_nocancel.stderr.exp
===================================================================
--- trunk/memcheck/tests/darwin/scalar_nocancel.stderr.exp (rev 0)
+++ trunk/memcheck/tests/darwin/scalar_nocancel.stderr.exp 2009-06-10 23:09:40 UTC (rev 10296)
@@ -0,0 +1,5 @@
+-----------------------------------------------------
+x20001a4(420):__NR_sem_wait_nocancel 1s 0m
+-----------------------------------------------------
+Syscall param sem_wait(sem) contains uninitialised byte(s)
+ ...
Copied: trunk/memcheck/tests/darwin/scalar_nocancel.vgtest (from rev 10294, trunk/memcheck/tests/darwin/scalar.vgtest)
===================================================================
--- trunk/memcheck/tests/darwin/scalar_nocancel.vgtest (rev 0)
+++ trunk/memcheck/tests/darwin/scalar_nocancel.vgtest 2009-06-10 23:09:40 UTC (rev 10296)
@@ -0,0 +1,3 @@
+prog: scalar_nocancel
+vgopts: -q --error-limit=no
+args: < scalar_nocancel.c
|
|
From: <sv...@va...> - 2009-06-10 22:59:23
|
Author: njn
Date: 2009-06-10 23:58:27 +0100 (Wed, 10 Jun 2009)
New Revision: 10295
Log:
Added a wrapper and test for exchangedata() on Darwin. Fixes bug 195860.
Modified:
trunk/coregrind/m_syswrap/priv_syswrap-darwin.h
trunk/coregrind/m_syswrap/syswrap-darwin.c
trunk/memcheck/tests/darwin/scalar.c
trunk/memcheck/tests/darwin/scalar.stderr.exp
Modified: trunk/coregrind/m_syswrap/priv_syswrap-darwin.h
===================================================================
--- trunk/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-06-10 19:24:20 UTC (rev 10294)
+++ trunk/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-06-10 22:58:27 UTC (rev 10295)
@@ -278,7 +278,7 @@
DECL_TEMPLATE(darwin, getattrlist); // 220
DECL_TEMPLATE(darwin, setattrlist); // 221
DECL_TEMPLATE(darwin, getdirentriesattr); // 222
-// NYI exchangedata 223
+DECL_TEMPLATE(darwin, exchangedata); // 223
// 224 checkuseraccess
// NYI searchfs 225
// GEN delete 226
Modified: trunk/coregrind/m_syswrap/syswrap-darwin.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-darwin.c 2009-06-10 19:24:20 UTC (rev 10294)
+++ trunk/coregrind/m_syswrap/syswrap-darwin.c 2009-06-10 22:58:27 UTC (rev 10295)
@@ -2002,8 +2002,8 @@
PRE(getfsstat)
{
PRINT("getfsstat(%#lx, %ld, %ld)", ARG1, ARG2, ARG3);
- PRE_REG_READ3(int, "getfsstat", struct vki_statfs *, buf,
- int, bufsize, int, flags);
+ PRE_REG_READ3(int, "getfsstat",
+ struct vki_statfs *, buf, int, bufsize, int, flags);
if (ARG1) {
// ARG2 is a BYTE SIZE
PRE_MEM_WRITE("getfsstat", ARG1, ARG2);
@@ -2225,7 +2225,6 @@
PRE_MEM_WRITE("getdirentriesattr(basep)", ARG6, sizeof(unsigned int));
PRE_MEM_WRITE("getdirentriesattr(newState)", ARG7, sizeof(unsigned int));
}
-
POST(getdirentriesattr)
{
char *p, *end;
@@ -2251,6 +2250,16 @@
}
+PRE(exchangedata)
+{
+ PRINT("exchangedata(%#lx(%s), %#lx(%s), %lu)",
+ ARG1, (char*)ARG1, ARG2, (char*)ARG2, ARG3);
+ PRE_REG_READ3(int, "exchangedata",
+ char *, path1, char *, path2, unsigned long, options);
+ PRE_MEM_RASCIIZ( "exchangedata(path1)", ARG1 );
+ PRE_MEM_RASCIIZ( "exchangedata(path2)", ARG2 );
+}
+
PRE(fsctl)
{
PRINT("fsctl ( %#lx(%s), %ld, %#lx, %ld )",
@@ -7168,7 +7177,7 @@
MACXY(__NR_getattrlist, getattrlist), // 220
MACX_(__NR_setattrlist, setattrlist),
MACXY(__NR_getdirentriesattr, getdirentriesattr),
-// _____(__NR_exchangedata),
+ MACX_(__NR_exchangedata, exchangedata),
_____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(224)), // checkuseraccess
// _____(__NR_searchfs),
GENX_(__NR_delete, sys_unlink),
Modified: trunk/memcheck/tests/darwin/scalar.c
===================================================================
--- trunk/memcheck/tests/darwin/scalar.c 2009-06-10 19:24:20 UTC (rev 10294)
+++ trunk/memcheck/tests/darwin/scalar.c 2009-06-10 22:58:27 UTC (rev 10295)
@@ -270,7 +270,11 @@
// __NR_getattrlist 220
// __NR_setattrlist 221
// __NR_getdirentriesattr 222
+
// __NR_exchangedata 223
+ GO(__NR_exchangedata, "3s 2m");
+ SY(__NR_exchangedata, x0, x0, x0); FAIL;
+
// /* 224 checkuseraccess */
// __NR_searchfs 225
// __NR_delete 226
Modified: trunk/memcheck/tests/darwin/scalar.stderr.exp
===================================================================
--- trunk/memcheck/tests/darwin/scalar.stderr.exp 2009-06-10 19:24:20 UTC (rev 10294)
+++ trunk/memcheck/tests/darwin/scalar.stderr.exp 2009-06-10 22:58:27 UTC (rev 10295)
@@ -104,6 +104,26 @@
...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+x20000df(223): __NR_exchangedata 3s 2m
+-----------------------------------------------------
+
+Syscall param exchangedata(path1) contains uninitialised byte(s)
+ ...
+
+Syscall param exchangedata(path2) contains uninitialised byte(s)
+ ...
+
+Syscall param exchangedata(options) contains uninitialised byte(s)
+ ...
+
+Syscall param exchangedata(path1) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param exchangedata(path2) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+-----------------------------------------------------
x2000107(263): __NR_shmctl 3s 1m
-----------------------------------------------------
|
|
From: <sv...@va...> - 2009-06-10 19:24:25
|
Author: bart
Date: 2009-06-10 20:24:20 +0100 (Wed, 10 Jun 2009)
New Revision: 10294
Log:
- Added more comments in DRD's malloc wrappers.
- Fixed memory allocation counters.
- Client memory is now freed in the realloc() wrapper in all cases where
it should be freed.
Modified:
trunk/drd/drd_main.c
trunk/drd/drd_malloc_wrappers.c
Modified: trunk/drd/drd_main.c
===================================================================
--- trunk/drd/drd_main.c 2009-06-10 17:52:10 UTC (rev 10293)
+++ trunk/drd/drd_main.c 2009-06-10 19:24:20 UTC (rev 10294)
@@ -290,7 +290,7 @@
static __inline__
void drd_start_using_mem(const Addr a1, const SizeT len)
{
- tl_assert(a1 <= a1 + len);
+ tl_assert(a1 < a1 + len);
if (UNLIKELY(DRD_(any_address_is_traced)()))
{
@@ -318,7 +318,7 @@
{
const Addr a2 = a1 + len;
- tl_assert(a1 <= a2);
+ tl_assert(a1 < a2);
if (UNLIKELY(DRD_(any_address_is_traced)()))
{
Modified: trunk/drd/drd_malloc_wrappers.c
===================================================================
--- trunk/drd/drd_malloc_wrappers.c 2009-06-10 17:52:10 UTC (rev 10293)
+++ trunk/drd/drd_malloc_wrappers.c 2009-06-10 19:24:20 UTC (rev 10294)
@@ -40,11 +40,16 @@
/* Local type definitions. */
+/**
+ * Node with per-allocation information that will be stored in a hash map.
+ * As specified in <pub_tool_hashtable.h>, the first member must be a pointer
+ * and the second member must be an UWord.
+ */
typedef struct _DRD_Chunk {
struct _DRD_Chunk* next;
- Addr data; // ptr to actual block
- SizeT size : (sizeof(UWord)*8)-2; //size requested; 30 or 62 bits
- ExeContext* where; // where it was allocated
+ UWord data; // pointer to actual block
+ SizeT size; // size requested
+ ExeContext* where; // where it was allocated
} DRD_Chunk;
@@ -52,7 +57,7 @@
static StartUsingMem s_start_using_mem_callback;
static StopUsingMem s_stop_using_mem_callback;
-/* Stats ... */
+/* Statistics. */
static SizeT s_cmalloc_n_mallocs = 0;
static SizeT s_cmalloc_n_frees = 0;
static SizeT s_cmalloc_bs_mallocd = 0;
@@ -60,78 +65,58 @@
static VgHashTable s_malloc_list = NULL;
-/*------------------------------------------------------------*/
-/*--- Tracking malloc'd and free'd blocks ---*/
-/*------------------------------------------------------------*/
+/* Function definitions. */
-/** Allocate its shadow chunk, put it on the appropriate list. */
-static DRD_Chunk* create_chunk(ThreadId tid, Addr p, SizeT size)
-{
- DRD_Chunk* mc = VG_(malloc)("drd.malloc_wrappers.cDC.1",
- sizeof(DRD_Chunk));
- mc->data = p;
- mc->size = size;
- mc->where = VG_(record_ExeContext)(tid, 0);
-
- return mc;
-}
-
-/*------------------------------------------------------------*/
-/*--- client_malloc(), etc ---*/
-/*------------------------------------------------------------*/
-
-/* Allocate memory and note change in memory available */
+/** Allocate client memory memory and update the hash map. */
static void* new_block(ThreadId tid, SizeT size, SizeT align, Bool is_zeroed)
{
- Addr p;
+ void* p;
- s_cmalloc_n_mallocs ++;
-
- // Allocate and zero
- p = (Addr)VG_(cli_malloc)(align, size);
- if (!p) {
+ p = VG_(cli_malloc)(align, size);
+ if (!p)
return NULL;
- }
- if (is_zeroed) VG_(memset)((void*)p, 0, size);
+ if (is_zeroed)
+ VG_(memset)(p, 0, size);
- tl_assert(p <= p + size);
- DRD_(malloclike_block)(tid, p, size);
+ DRD_(malloclike_block)(tid, (Addr)p, size);
- return (void*)p;
+ return p;
}
/**
* Store information about a memory block that has been allocated by
- * malloc() or a malloc() replacement.
+ * malloc() or a malloc() replacement in the hash map.
*/
void DRD_(malloclike_block)(const ThreadId tid, const Addr p, const SizeT size)
{
+ DRD_Chunk* mc;
+
tl_assert(p);
- s_start_using_mem_callback(p, size, 0/*ec_uniq*/);
+ if (size > 0)
+ s_start_using_mem_callback(p, size, 0/*ec_uniq*/);
+ s_cmalloc_n_mallocs++;
// Only update this stat if allocation succeeded.
s_cmalloc_bs_mallocd += size;
- VG_(HT_add_node)(s_malloc_list, create_chunk(tid, p, size));
+ mc = VG_(malloc)("drd.malloc_wrappers.cDC.1", sizeof(DRD_Chunk));
+ mc->data = p;
+ mc->size = size;
+ mc->where = VG_(record_ExeContext)(tid, 0);
+ VG_(HT_add_node)(s_malloc_list, mc);
}
-static void* DRD_(malloc)(ThreadId tid, SizeT n)
+static void handle_free(ThreadId tid, void* p)
{
- return new_block(tid, n, VG_(clo_alignment), /*is_zeroed*/False);
-}
+ tl_assert(p);
-static void* DRD_(memalign)(ThreadId tid, SizeT align, SizeT n)
-{
- return new_block(tid, n, align, /*is_zeroed*/False);
+ if (DRD_(freelike_block)(tid, (Addr)p))
+ VG_(cli_free)(p);
+ else
+ tl_assert(False);
}
-static void* DRD_(calloc)(ThreadId tid, SizeT nmemb, SizeT size1)
-{
- return new_block(tid, nmemb*size1, VG_(clo_alignment),
- /*is_zeroed*/True);
-}
-
/**
* Remove the information that was stored by DRD_(malloclike_block)() about
* a memory block.
@@ -156,32 +141,61 @@
return False;
}
-static void handle_free(ThreadId tid, Addr p)
+/** Wrapper for malloc(). */
+static void* drd_malloc(ThreadId tid, SizeT n)
{
- if (DRD_(freelike_block)(tid, p))
- VG_(cli_free)((void*)p);
- else
- tl_assert(False);
+ return new_block(tid, n, VG_(clo_alignment), /*is_zeroed*/False);
}
-static void DRD_(free)(ThreadId tid, void* p)
+/** Wrapper for memalign(). */
+static void* drd_memalign(ThreadId tid, SizeT align, SizeT n)
{
- handle_free(tid, (Addr)p);
+ return new_block(tid, n, align, /*is_zeroed*/False);
}
-static void* DRD_(realloc)(ThreadId tid, void* p_old, SizeT new_size)
+/** Wrapper for calloc(). */
+static void* drd_calloc(ThreadId tid, SizeT nmemb, SizeT size1)
{
+ return new_block(tid, nmemb*size1, VG_(clo_alignment),
+ /*is_zeroed*/True);
+}
+
+/** Wrapper for free(). */
+static void drd_free(ThreadId tid, void* p)
+{
+ handle_free(tid, p);
+}
+
+/**
+ * Wrapper for realloc(). Returns a pointer to the new block of memory, or
+ * NULL if no new block could not be allocated. Notes:
+ * - realloc(NULL, size) has the same effect as malloc(size).
+ * - realloc(p, 0) has the same effect as free(p).
+ * - success is not guaranteed even if the requested size is smaller than the
+ * allocated size.
+*/
+static void* drd_realloc(ThreadId tid, void* p_old, SizeT new_size)
+{
DRD_Chunk* mc;
- void* p_new;
- SizeT old_size;
+ void* p_new;
+ SizeT old_size;
- s_cmalloc_n_frees ++;
- s_cmalloc_n_mallocs ++;
+ if (! p_old)
+ return drd_malloc(tid, new_size);
+
+ if (new_size == 0)
+ {
+ drd_free(tid, p_old);
+ return NULL;
+ }
+
+ s_cmalloc_n_mallocs++;
+ s_cmalloc_n_frees++;
s_cmalloc_bs_mallocd += new_size;
- /* Remove the old block */
- mc = VG_(HT_remove)(s_malloc_list, (UWord)p_old);
- if (mc == NULL) {
+ mc = VG_(HT_lookup)(s_malloc_list, (UWord)p_old);
+ if (mc == NULL)
+ {
tl_assert(0);
return NULL;
}
@@ -193,109 +207,107 @@
/* size unchanged */
mc->where = VG_(record_ExeContext)(tid, 0);
p_new = p_old;
-
}
- else if (old_size > new_size)
+ else if (new_size < old_size)
{
- /* new size is smaller */
+ /* new size is smaller but nonzero */
s_stop_using_mem_callback(mc->data + new_size, old_size - new_size);
mc->size = new_size;
mc->where = VG_(record_ExeContext)(tid, 0);
p_new = p_old;
-
}
else
{
/* new size is bigger */
- /* Get new memory */
- const Addr a_new = (Addr)VG_(cli_malloc)(VG_(clo_alignment), new_size);
+ p_new = VG_(cli_malloc)(VG_(clo_alignment), new_size);
- if (a_new)
+ if (p_new)
{
- /* Copy from old to new */
- VG_(memcpy)((void*)a_new, p_old, mc->size);
-
- /* Free old memory */
+ /* Copy from old to new. */
+ VG_(memcpy)(p_new, p_old, mc->size);
+
+ /* Free old memory. */
+ VG_(cli_free)(p_old);
s_stop_using_mem_callback(mc->data, mc->size);
- VG_(free)(mc);
+ VG_(HT_remove)(s_malloc_list, (UWord)p_old);
- // Allocate a new chunk.
- mc = create_chunk(tid, a_new, new_size);
- s_start_using_mem_callback(a_new, new_size, 0/*ec_uniq*/);
+ /* Update state information. */
+ mc->data = (Addr)p_new;
+ mc->size = new_size;
+ mc->where = VG_(record_ExeContext)(tid, 0);
+ VG_(HT_add_node)(s_malloc_list, mc);
+ s_start_using_mem_callback((Addr)p_new, new_size, 0/*ec_uniq*/);
}
else
{
/* Allocation failed -- leave original block untouched. */
}
-
- p_new = (void*)a_new;
}
- // Now insert the new mc (with a possibly new 'data' field) into
- // malloc_list. If this realloc() did not increase the memory size, we
- // will have removed and then re-added mc unnecessarily. But that's ok
- // because shrinking a block with realloc() is (presumably) much rarer
- // than growing it, and this way simplifies the growing case.
- VG_(HT_add_node)(s_malloc_list, mc);
-
return p_new;
}
-static void* DRD_(__builtin_new)(ThreadId tid, SizeT n)
+/** Wrapper for __builtin_new(). */
+static void* drd___builtin_new(ThreadId tid, SizeT n)
{
- void* const result = new_block(tid, n, VG_(clo_alignment),
- /*is_zeroed*/False);
- //VG_(message)(Vg_DebugMsg, "__builtin_new(%d, %d) = %p", tid, n, result);
- return result;
+ return new_block(tid, n, VG_(clo_alignment), /*is_zeroed*/False);
}
-static void DRD_(__builtin_delete)(ThreadId tid, void* p)
+/** Wrapper for __builtin_delete(). */
+static void drd___builtin_delete(ThreadId tid, void* p)
{
- //VG_(message)(Vg_DebugMsg, "__builtin_delete(%d, %p)", tid, p);
- handle_free(tid, (Addr)p);
+ handle_free(tid, p);
}
-static void* DRD_(__builtin_vec_new)(ThreadId tid, SizeT n)
+/** Wrapper for __builtin_vec_new(). */
+static void* drd___builtin_vec_new(ThreadId tid, SizeT n)
{
return new_block(tid, n, VG_(clo_alignment), /*is_zeroed*/False);
}
-static void DRD_(__builtin_vec_delete)(ThreadId tid, void* p)
+/** Wrapper for __builtin_vec_delete(). */
+static void drd___builtin_vec_delete(ThreadId tid, void* p)
{
- handle_free(tid, (Addr)p);
+ handle_free(tid, p);
}
-static SizeT DRD_(malloc_usable_size) ( ThreadId tid, void* p )
+/**
+ * Wrapper for malloc_usable_size() / malloc_size(). This function takes
+ * a pointer to a block allocated by `malloc' and returns the amount of space
+ * that is available in the block. This may or may not be more than the size
+ * requested from `malloc', due to alignment or minimum size constraints.
+ */
+static SizeT drd_malloc_usable_size(ThreadId tid, void* p)
{
- DRD_Chunk *mc = VG_(HT_lookup)( s_malloc_list, (UWord)p );
+ DRD_Chunk* mc;
- // There may be slop, but pretend there isn't because only the asked-for
- // area will have been shadowed properly.
- return ( mc ? mc->size : 0 );
+ mc = VG_(HT_lookup)(s_malloc_list, (UWord)p);
+
+ return mc ? mc->size : 0;
}
void DRD_(register_malloc_wrappers)(const StartUsingMem start_callback,
const StopUsingMem stop_callback)
{
tl_assert(s_malloc_list == 0);
- s_malloc_list = VG_(HT_construct)("drd_malloc_list"); // a big prime
- tl_assert(s_malloc_list != 0);
+ s_malloc_list = VG_(HT_construct)("drd_malloc_list");
+ tl_assert(s_malloc_list);
tl_assert(start_callback);
tl_assert(stop_callback);
s_start_using_mem_callback = start_callback;
s_stop_using_mem_callback = stop_callback;
- VG_(needs_malloc_replacement)(DRD_(malloc),
- DRD_(__builtin_new),
- DRD_(__builtin_vec_new),
- DRD_(memalign),
- DRD_(calloc),
- DRD_(free),
- DRD_(__builtin_delete),
- DRD_(__builtin_vec_delete),
- DRD_(realloc),
- DRD_(malloc_usable_size),
+ VG_(needs_malloc_replacement)(drd_malloc,
+ drd___builtin_new,
+ drd___builtin_vec_new,
+ drd_memalign,
+ drd_calloc,
+ drd_free,
+ drd___builtin_delete,
+ drd___builtin_vec_delete,
+ drd_realloc,
+ drd_malloc_usable_size,
0);
}
|
|
From: <sv...@va...> - 2009-06-10 17:52:16
|
Author: bart Date: 2009-06-10 18:52:10 +0100 (Wed, 10 Jun 2009) New Revision: 10293 Log: Updated ignore list. Modified: trunk/drd/tests/ Property changes on: trunk/drd/tests ___________________________________________________________________ Name: svn:ignore - *.dSYM *.stderr.diff* *.stderr.out *.stdout.diff* *.stdout.out .deps Makefile Makefile.in annotate_rwlock atomic_var bar_bad bar_trivial boost_thread circular_buffer drd_bitmap_test fp_race hg01_all_ok hg02_deadlock hg03_inherit hg04_race hg05_race2 hg06_readshared hold_lock linuxthreads_det matinv memory_allocation monitor_example new_delete omp_matinv omp_prime omp_printf pth_barrier pth_barrier_race pth_barrier_reinit pth_broadcast pth_cancel_locked pth_cond_race pth_create_chain pth_create_glibc_2_0 pth_detached pth_detached_sem pth_inconsistent_cond_wait pth_mutex_reinit pth_process_shared_mutex pth_spinlock qt4_mutex qt4_rwlock qt4_semaphore recursive_mutex rwlock_race rwlock_test sem_as_mutex sigalrm tc01_simple_race tc02_simple_tls tc03_re_excl tc04_free_lock tc05_simple_race tc06_two_races tc07_hbl1 tc08_hbl2 tc09_bad_unlock tc10_rec_lock tc11_XCHG tc12_rwl_trivial tc13_laog1 tc15_laog_lockdel tc16_byterace tc17_sembar tc18_semabuse tc19_shadowmem tc20_verifywrap tc21_pthonce tc22_exit_w_lock tc23_bogus_condwait tc24_nonzero_sem thread_name trylock tsan_unittest vg_regtest.tmp* + *.dSYM *.stderr.diff* *.stderr.out *.stdout.diff* *.stdout.out .deps annotate_rwlock atomic_var bar_bad bar_trivial boost_thread circular_buffer drd_bitmap_test fp_race hg01_all_ok hg02_deadlock hg03_inherit hg04_race hg05_race2 hg06_readshared hold_lock linuxthreads_det Makefile Makefile.in matinv memory_allocation monitor_example new_delete omp_matinv omp_prime omp_printf pth_barrier pth_barrier_race pth_barrier_reinit pth_broadcast pth_cancel_locked pth_cond_race pth_create_chain pth_create_glibc_2_0 pth_detached pth_detached_sem pth_inconsistent_cond_wait pth_mutex_reinit pth_process_shared_mutex pth_spinlock qt4_mutex qt4_rwlock qt4_semaphore recursive_mutex rwlock_race rwlock_test sem_as_mutex sigalrm tc01_simple_race tc02_simple_tls tc03_re_excl tc04_free_lock tc05_simple_race tc06_two_races tc07_hbl1 tc08_hbl2 tc09_bad_unlock tc10_rec_lock tc11_XCHG tc12_rwl_trivial tc13_laog1 tc15_laog_lockdel tc16_byterace tc17_sembar tc18_semabuse tc19_shadowmem tc20_verifywrap tc21_pthonce tc22_exit_w_lock tc23_bogus_condwait tc24_nonzero_sem thread_name trylock tsan_unittest unit_bitmap unit_vc vg_regtest.tmp* |
|
From: <sv...@va...> - 2009-06-10 17:51:59
|
Author: bart Date: 2009-06-10 18:51:52 +0100 (Wed, 10 Jun 2009) New Revision: 10292 Log: Added test code for realloc(). Modified: trunk/drd/tests/memory_allocation.c Modified: trunk/drd/tests/memory_allocation.c =================================================================== --- trunk/drd/tests/memory_allocation.c 2009-06-10 06:13:34 UTC (rev 10291) +++ trunk/drd/tests/memory_allocation.c 2009-06-10 17:51:52 UTC (rev 10292) @@ -1,15 +1,28 @@ -/* Repeatedly allocate and free memory. Tests whether drd */ -/* really frees memory allocated by a client. See also */ -/* http://bugs.kde.org/show_bug.cgi?id=161036 */ +/** + * @brief Repeatedly allocate and free memory. Tests whether drd really frees + * memory allocated by a client. See also + * http://bugs.kde.org/show_bug.cgi?id=161036. + */ +#include <assert.h> #include <stdlib.h> int main() { int i; + void* p; + for (i = 0; i < 100000; i++) + free(malloc(40960)); + + for (i = 0; i < 100000; i++) { - free(malloc(40960)); + p = realloc(NULL, 40960); + p = realloc(p, 50000); + p = realloc(p, 40000); + p = realloc(p, 0); + assert(! p); } + return 0; } |
|
From: Nicholas N. <n.n...@gm...> - 2009-06-10 17:21:34
|
Nightly build on ocean32 ( Ubuntu 9.04, x86_64 (32-bit only) )
Started at 2009-06-11 03:00:01 EST
Ended at 2009-06-11 03:21:29 EST
Results unchanged from 24 hours ago
Checking out valgrind source tree ... done
Configuring valgrind ... done
Building valgrind ... done
Running regression tests ... failed
Regression test results follow
== 458 tests, 7 stderr failures, 2 stdout failures, 0 post failures ==
memcheck/tests/linux/stack_switch (stderr)
memcheck/tests/origin1-yes (stderr)
memcheck/tests/origin5-bz2 (stderr)
none/tests/linux/mremap2 (stdout)
none/tests/shell (stdout)
none/tests/shell (stderr)
none/tests/shell_valid1 (stderr)
none/tests/shell_valid2 (stderr)
none/tests/shell_valid3 (stderr)
=================================================
./valgrind-new/memcheck/tests/linux/stack_switch.stderr.diff
=================================================
--- stack_switch.stderr.exp 2009-06-11 03:11:38.000000000 +1000
+++ stack_switch.stderr.out 2009-06-11 03:16:41.000000000 +1000
@@ -0,0 +1,2 @@
+Syscall param clone(child_tidptr) contains uninitialised byte(s)
+ ...
=================================================
./valgrind-new/memcheck/tests/origin1-yes.stderr.diff
=================================================
--- origin1-yes.stderr.exp 2009-06-11 03:11:41.000000000 +1000
+++ origin1-yes.stderr.out 2009-06-11 03:16:58.000000000 +1000
@@ -47,7 +47,7 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (origin1-yes.c:101)
Uninitialised value was created
- at 0x........: brk (in /...libc...)
+ at 0x........: ??? (in /lib32/ld-2.9.so)
by 0x........: sbrk (in /...libc...)
by 0x........: main (origin1-yes.c:98)
=================================================
./valgrind-new/memcheck/tests/origin1-yes.stderr.diff-darwin
=================================================
--- origin1-yes.stderr.exp-darwin 2009-06-11 03:11:41.000000000 +1000
+++ origin1-yes.stderr.out 2009-06-11 03:16:58.000000000 +1000
@@ -44,7 +44,12 @@
Undef 7 of 8 (brk)
-(no complaint; sbrk initialises memory on Darwin)
+Conditional jump or move depends on uninitialised value(s)
+ at 0x........: main (origin1-yes.c:101)
+ Uninitialised value was created
+ at 0x........: ??? (in /lib32/ld-2.9.so)
+ by 0x........: sbrk (in /...libc...)
+ by 0x........: main (origin1-yes.c:98)
Undef 8 of 8 (MAKE_MEM_UNDEFINED)
=================================================
./valgrind-new/memcheck/tests/origin5-bz2.stderr.diff-glibc25-amd64
=================================================
--- origin5-bz2.stderr.exp-glibc25-amd64 2009-06-11 03:11:41.000000000 +1000
+++ origin5-bz2.stderr.out 2009-06-11 03:17:03.000000000 +1000
@@ -11,7 +11,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
@@ -19,7 +19,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
@@ -27,7 +27,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2820)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -38,7 +38,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2823)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -49,7 +49,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2854)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -60,7 +60,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2858)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -71,7 +71,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2963)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -82,7 +82,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2964)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -93,7 +93,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: fallbackSort (origin5-bz2.c:2269)
by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -104,7 +104,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: fallbackSort (origin5-bz2.c:2275)
by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
=================================================
./valgrind-new/memcheck/tests/origin5-bz2.stderr.diff-glibc25-x86
=================================================
--- origin5-bz2.stderr.exp-glibc25-x86 2009-06-11 03:11:41.000000000 +1000
+++ origin5-bz2.stderr.out 2009-06-11 03:17:03.000000000 +1000
@@ -28,7 +28,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2820)
+ at 0x........: mainSort (origin5-bz2.c:2820)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -38,7 +39,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2823)
+ at 0x........: mainSort (origin5-bz2.c:2823)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -48,7 +50,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2855)
+ at 0x........: mainSort (origin5-bz2.c:2854)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -58,7 +61,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2859)
+ at 0x........: mainSort (origin5-bz2.c:2858)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -68,7 +72,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2963)
+ at 0x........: mainSort (origin5-bz2.c:2963)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -78,7 +83,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2964)
+ at 0x........: mainSort (origin5-bz2.c:2964)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
=================================================
./valgrind-new/memcheck/tests/origin5-bz2.stderr.diff-glibc27-ppc64
=================================================
--- origin5-bz2.stderr.exp-glibc27-ppc64 2009-06-11 03:11:41.000000000 +1000
+++ origin5-bz2.stderr.out 2009-06-11 03:17:03.000000000 +1000
@@ -1,7 +1,7 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (origin5-bz2.c:6481)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
Conditional jump or move depends on uninitialised value(s)
at 0x........: handle_compress (origin5-bz2.c:4686)
@@ -9,85 +9,91 @@
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2820)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2820)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2823)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2823)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2854)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2854)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2858)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2858)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2963)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2963)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
<truncated beyond 100 lines>
=================================================
./valgrind-new/none/tests/linux/mremap2.stdout.diff
=================================================
--- mremap2.stdout.exp 2009-06-11 03:12:15.000000000 +1000
+++ mremap2.stdout.out 2009-06-11 03:18:22.000000000 +1000
@@ -27,38 +27,38 @@
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
@@ -173,40 +173,40 @@
..................................................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
..................................................
<truncated beyond 100 lines>
=================================================
./valgrind-new/none/tests/linux/mremap2.stdout.diff-glibc28-amd64
=================================================
--- mremap2.stdout.exp-glibc28-amd64 2009-06-11 03:12:15.000000000 +1000
+++ mremap2.stdout.out 2009-06-11 03:18:22.000000000 +1000
@@ -188,37 +188,37 @@
maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
..................................................
maymv 1 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
..................................................
maymv 1 fixed 0 newsz 31 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...................
..................................................
maymv 1 fixed 0 newsz 31 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...................
..................................................
=================================================
./valgrind-new/none/tests/linux/mremap2.stdout.diff2
=================================================
--- mremap2.stdout.exp2 2009-06-11 03:12:15.000000000 +1000
+++ mremap2.stdout.out 2009-06-11 03:18:22.000000000 +1000
@@ -27,38 +27,38 @@
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
@@ -173,52 +173,52 @@
..................................................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
..................................................
<truncated beyond 100 lines>
=================================================
./valgrind-new/none/tests/shell.stderr.diff
=================================================
--- shell.stderr.exp 2009-06-11 03:12:21.000000000 +1000
+++ shell.stderr.out 2009-06-11 03:18:37.000000000 +1000
@@ -1,8 +1 @@
-./shell: ./x86/: is a directory
-./shell: ./shell.vgtest: Permission denied
-execve(0x........(./shell_badinterp), 0x........, 0x........) failed, errno 2
-EXEC FAILED: I can't recover from execve() failing, so I'm dying.
-Add more stringent tests in PRE(sys_execve), or work out how to recover.
-./shell: ./shell_binaryfile: cannot execute binary file
-./shell: ./shell_nosuchfile: No such file or directory
-./shell: shell_nosuchfile: command not found
+valgrind: failed to start tool 'none' for platform 'amd64-linux': No such file or directory
=================================================
./valgrind-new/none/tests/shell.stderr.diff-dash
=================================================
--- shell.stderr.exp-dash 2009-06-11 03:12:21.000000000 +1000
+++ shell.stderr.out 2009-06-11 03:18:37.000000000 +1000
@@ -1,8 +1 @@
-./shell: 10: ./x86/: Permission denied
-./shell: 13: ./shell.vgtest: Permission denied
-execve(0x........(./shell_badinterp), 0x........, 0x........) failed, errno 2
-EXEC FAILED: I can't recover from execve() failing, so I'm dying.
-Add more stringent tests in PRE(sys_execve), or work out how to recover.
-./shell_binaryfile: 4: Syntax error: ")" unexpected
-./shell: 22: ./shell_nosuchfile: not found
-./shell: 25: shell_nosuchfile: not found
+valgrind: failed to start tool 'none' for platform 'amd64-linux': No such file or directory
=================================================
./valgrind-new/none/tests/shell.stdout.diff
=================================================
--- shell.stdout.exp 2009-06-11 03:12:21.000000000 +1000
+++ shell.stdout.out 2009-06-11 03:18:37.000000000 +1000
@@ -1,10 +0,0 @@
-Execute a directory
-Execute a non-executable file
-Execute a script with a bad interpreter name
-Execute a binary file
-Execute a non-existent file
-Execute a non-existent file (2)
-Execute a valid script with a #! line
-Execute a valid script without a #! line
-Execute a valid script with #! but no interpname
-Execute a zero-length file
=================================================
./valgrind-new/none/tests/shell_valid1.stderr.diff
=================================================
--- shell_valid1.stderr.exp 2009-06-11 03:12:21.000000000 +1000
+++ shell_valid1.stderr.out 2009-06-11 03:18:38.000000000 +1000
@@ -0,0 +1 @@
+valgrind: failed to start tool 'none' for platform 'amd64-linux': No such file or directory
=================================================
./valgrind-new/none/tests/shell_valid2.stderr.diff
=================================================
--- shell_valid2.stderr.exp 2009-06-11 03:12:21.000000000 +1000
+++ shell_valid2.stderr.out 2009-06-11 03:18:38.000000000 +1000
@@ -0,0 +1,2 @@
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./shell_valid2: bad interpreter (/bin/sh): VG_(strerror): unknown error
=================================================
./valgrind-new/none/tests/shell_valid3.stderr.diff
=================================================
--- shell_valid3.stderr.exp 2009-06-11 03:12:21.000000000 +1000
+++ shell_valid3.stderr.out 2009-06-11 03:18:38.000000000 +1000
@@ -0,0 +1,2 @@
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./shell_valid3: bad interpreter (/bin/sh): VG_(strerror): unknown error
=================================================
./valgrind-old/memcheck/tests/linux/stack_switch.stderr.diff
=================================================
--- stack_switch.stderr.exp 2009-06-11 03:01:04.000000000 +1000
+++ stack_switch.stderr.out 2009-06-11 03:06:02.000000000 +1000
@@ -0,0 +1,2 @@
+Syscall param clone(child_tidptr) contains uninitialised byte(s)
+ ...
=================================================
./valgrind-old/memcheck/tests/origin1-yes.stderr.diff
=================================================
--- origin1-yes.stderr.exp 2009-06-11 03:01:08.000000000 +1000
+++ origin1-yes.stderr.out 2009-06-11 03:06:20.000000000 +1000
@@ -47,7 +47,7 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (origin1-yes.c:101)
Uninitialised value was created
- at 0x........: brk (in /...libc...)
+ at 0x........: ??? (in /lib32/ld-2.9.so)
by 0x........: sbrk (in /...libc...)
by 0x........: main (origin1-yes.c:98)
=================================================
./valgrind-old/memcheck/tests/origin1-yes.stderr.diff-darwin
=================================================
--- origin1-yes.stderr.exp-darwin 2009-06-11 03:01:08.000000000 +1000
+++ origin1-yes.stderr.out 2009-06-11 03:06:20.000000000 +1000
@@ -44,7 +44,12 @@
Undef 7 of 8 (brk)
-(no complaint; sbrk initialises memory on Darwin)
+Conditional jump or move depends on uninitialised value(s)
+ at 0x........: main (origin1-yes.c:101)
+ Uninitialised value was created
+ at 0x........: ??? (in /lib32/ld-2.9.so)
+ by 0x........: sbrk (in /...libc...)
+ by 0x........: main (origin1-yes.c:98)
Undef 8 of 8 (MAKE_MEM_UNDEFINED)
=================================================
./valgrind-old/memcheck/tests/origin5-bz2.stderr.diff-glibc25-amd64
=================================================
--- origin5-bz2.stderr.exp-glibc25-amd64 2009-06-11 03:01:08.000000000 +1000
+++ origin5-bz2.stderr.out 2009-06-11 03:06:24.000000000 +1000
@@ -11,7 +11,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
@@ -19,7 +19,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
@@ -27,7 +27,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2820)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -38,7 +38,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2823)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -49,7 +49,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2854)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -60,7 +60,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2858)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -71,7 +71,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2963)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -82,7 +82,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2964)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -93,7 +93,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: fallbackSort (origin5-bz2.c:2269)
by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -104,7 +104,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: fallbackSort (origin5-bz2.c:2275)
by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
=================================================
./valgrind-old/memcheck/tests/origin5-bz2.stderr.diff-glibc25-x86
=================================================
--- origin5-bz2.stderr.exp-glibc25-x86 2009-06-11 03:01:08.000000000 +1000
+++ origin5-bz2.stderr.out 2009-06-11 03:06:24.000000000 +1000
@@ -28,7 +28,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2820)
+ at 0x........: mainSort (origin5-bz2.c:2820)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -38,7 +39,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2823)
+ at 0x........: mainSort (origin5-bz2.c:2823)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -48,7 +50,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2855)
+ at 0x........: mainSort (origin5-bz2.c:2854)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -58,7 +61,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2859)
+ at 0x........: mainSort (origin5-bz2.c:2858)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -68,7 +72,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2963)
+ at 0x........: mainSort (origin5-bz2.c:2963)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -78,7 +83,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2964)
+ at 0x........: mainSort (origin5-bz2.c:2964)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
=================================================
./valgrind-old/memcheck/tests/origin5-bz2.stderr.diff-glibc27-ppc64
=================================================
--- origin5-bz2.stderr.exp-glibc27-ppc64 2009-06-11 03:01:08.000000000 +1000
+++ origin5-bz2.stderr.out 2009-06-11 03:06:24.000000000 +1000
@@ -1,7 +1,7 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (origin5-bz2.c:6481)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
Conditional jump or move depends on uninitialised value(s)
at 0x........: handle_compress (origin5-bz2.c:4686)
@@ -9,85 +9,91 @@
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2820)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2820)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2823)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2823)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2854)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2854)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2858)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2858)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2963)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2963)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
<truncated beyond 100 lines>
=================================================
./valgrind-old/none/tests/linux/mremap2.stdout.diff
=================================================
--- mremap2.stdout.exp 2009-06-11 03:01:44.000000000 +1000
+++ mremap2.stdout.out 2009-06-11 03:07:45.000000000 +1000
@@ -27,38 +27,38 @@
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
@@ -173,40 +173,40 @@
..................................................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
..................................................
<truncated beyond 100 lines>
=================================================
./valgrind-old/none/tests/linux/mremap2.stdout.diff-glibc28-amd64
=================================================
--- mremap2.stdout.exp-glibc28-amd64 2009-06-11 03:01:44.000000000 +1000
+++ mremap2.stdout.out 2009-06-11 03:07:45.000000000 +1000
@@ -188,37 +188,37 @@
maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
..................................................
maymv 1 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
..................................................
maymv 1 fixed 0 newsz 31 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...................
..................................................
maymv 1 fixed 0 newsz 31 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...................
..................................................
=================================================
./valgrind-old/none/tests/linux/mremap2.stdout.diff2
=================================================
--- mremap2.stdout.exp2 2009-06-11 03:01:44.000000000 +1000
+++ mremap2.stdout.out 2009-06-11 03:07:45.000000000 +1000
@@ -27,38 +27,38 @@
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
@@ -173,52 +173,52 @@
..................................................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
..................................................
<truncated beyond 100 lines>
=================================================
./valgrind-old/none/tests/shell.stderr.diff
=================================================
--- shell.stderr.exp 2009-06-11 03:01:48.000000000 +1000
+++ shell.stderr.out 2009-06-11 03:08:00.000000000 +1000
@@ -1,8 +1 @@
-./shell: ./x86/: is a directory
-./shell: ./shell.vgtest: Permission denied
-execve(0x........(./shell_badinterp), 0x........, 0x........) failed, errno 2
-EXEC FAILED: I can't recover from execve() failing, so I'm dying.
-Add more stringent tests in PRE(sys_execve), or work out how to recover.
-./shell: ./shell_binaryfile: cannot execute binary file
-./shell: ./shell_nosuchfile: No such file or directory
-./shell: shell_nosuchfile: command not found
+valgrind: failed to start tool 'none' for platform 'amd64-linux': No such file or directory
=================================================
./valgrind-old/none/tests/shell.stderr.diff-dash
=================================================
--- shell.stderr.exp-dash 2009-06-11 03:01:48.000000000 +1000
+++ shell.stderr.out 2009-06-11 03:08:00.000000000 +1000
@@ -1,8 +1 @@
-./shell: 10: ./x86/: Permission denied
-./shell: 13: ./shell.vgtest: Permission denied
-execve(0x........(./shell_badinterp), 0x........, 0x........) failed, errno 2
-EXEC FAILED: I can't recover from execve() failing, so I'm dying.
-Add more stringent tests in PRE(sys_execve), or work out how to recover.
-./shell_binaryfile: 4: Syntax error: ")" unexpected
-./shell: 22: ./shell_nosuchfile: not found
-./shell: 25: shell_nosuchfile: not found
+valgrind: failed to start tool 'none' for platform 'amd64-linux': No such file or directory
=================================================
./valgrind-old/none/tests/shell.stdout.diff
=================================================
--- shell.stdout.exp 2009-06-11 03:01:48.000000000 +1000
+++ shell.stdout.out 2009-06-11 03:08:00.000000000 +1000
@@ -1,10 +0,0 @@
-Execute a directory
-Execute a non-executable file
-Execute a script with a bad interpreter name
-Execute a binary file
-Execute a non-existent file
-Execute a non-existent file (2)
-Execute a valid script with a #! line
-Execute a valid script without a #! line
-Execute a valid script with #! but no interpname
-Execute a zero-length file
=================================================
./valgrind-old/none/tests/shell_valid1.stderr.diff
=================================================
--- shell_valid1.stderr.exp 2009-06-11 03:01:48.000000000 +1000
+++ shell_valid1.stderr.out 2009-06-11 03:08:00.000000000 +1000
@@ -0,0 +1 @@
+valgrind: failed to start tool 'none' for platform 'amd64-linux': No such file or directory
=================================================
./valgrind-old/none/tests/shell_valid2.stderr.diff
=================================================
--- shell_valid2.stderr.exp 2009-06-11 03:01:48.000000000 +1000
+++ shell_valid2.stderr.out 2009-06-11 03:08:00.000000000 +1000
@@ -0,0 +1,2 @@
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./shell_valid2: bad interpreter (/bin/sh): VG_(strerror): unknown error
=================================================
./valgrind-old/none/tests/shell_valid3.stderr.diff
=================================================
--- shell_valid3.stderr.exp 2009-06-11 03:01:48.000000000 +1000
+++ shell_valid3.stderr.out 2009-06-11 03:08:00.000000000 +1000
@@ -0,0 +1,2 @@
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./shell_valid3: bad interpreter (/bin/sh): VG_(strerror): unknown error
=================================================
./valgrind/memcheck/tests/linux/stack_switch.stderr.diff
=================================================
--- stack_switch.stderr.exp 2009-06-05 03:12:28.000000000 +1000
+++ stack_switch...
[truncated message content] |
|
From: Nicholas N. <n.n...@gm...> - 2009-06-10 16:23:13
|
Nightly build on ocean ( Ubuntu 9.04, x86_64 ) Started at 2009-06-11 02:00:01 EST Ended at 2009-06-11 02:23:14 EST Results differ from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 495 tests, 1 stderr failure, 2 stdout failures, 0 post failures == none/tests/linux/mremap2 (stdout) none/tests/stackgrowth (stdout) none/tests/stackgrowth (stderr) ================================================= == Results from 24 hours ago == ================================================= Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 495 tests, 0 stderr failures, 1 stdout failure, 0 post failures == none/tests/linux/mremap2 (stdout) ================================================= == Difference between 24 hours ago and now == ================================================= *** old.short Thu Jun 11 02:10:59 2009 --- new.short Thu Jun 11 02:23:14 2009 *************** *** 8,11 **** ! == 495 tests, 0 stderr failures, 1 stdout failure, 0 post failures == none/tests/linux/mremap2 (stdout) --- 8,13 ---- ! == 495 tests, 1 stderr failure, 2 stdout failures, 0 post failures == none/tests/linux/mremap2 (stdout) + none/tests/stackgrowth (stdout) + none/tests/stackgrowth (stderr) ================================================= ./valgrind-new/none/tests/linux/mremap2.stdout.diff ================================================= --- mremap2.stdout.exp 2009-06-11 02:12:29.000000000 +1000 +++ mremap2.stdout.out 2009-06-11 02:20:17.000000000 +1000 @@ -27,38 +27,38 @@ .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. @@ -173,40 +173,40 @@ .................................................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... .................................................. <truncated beyond 100 lines> ================================================= ./valgrind-new/none/tests/linux/mremap2.stdout.diff-glibc28-amd64 ================================================= --- mremap2.stdout.exp-glibc28-amd64 2009-06-11 02:12:29.000000000 +1000 +++ mremap2.stdout.out 2009-06-11 02:20:17.000000000 +1000 @@ -188,37 +188,37 @@ maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... .................................................. maymv 1 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... .................................................. maymv 1 fixed 0 newsz 31 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX................... .................................................. maymv 1 fixed 0 newsz 31 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX................... .................................................. ================================================= ./valgrind-new/none/tests/linux/mremap2.stdout.diff2 ================================================= --- mremap2.stdout.exp2 2009-06-11 02:12:29.000000000 +1000 +++ mremap2.stdout.out 2009-06-11 02:20:17.000000000 +1000 @@ -27,38 +27,38 @@ .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. @@ -173,52 +173,52 @@ .................................................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... .................................................. <truncated beyond 100 lines> ================================================= ./valgrind-new/none/tests/stackgrowth.stderr.diff ================================================= --- stackgrowth.stderr.exp 2009-06-11 02:12:32.000000000 +1000 +++ stackgrowth.stderr.out 2009-06-11 02:20:35.000000000 +1000 @@ -1,2 +1,127 @@ +valgrind: m_scheduler/scheduler.c:1211 (vgPlain_scheduler): the 'impossible' happened. +valgrind: VG_(scheduler), phase 3: run_innerloop detected host state invariant failure + at 0x........: report_and_quit (m_libcassert.c:145) + by 0x........: vgPlain_assert_fail (m_libcassert.c:216) + by 0x........: vgPlain_scheduler (scheduler.c:1236) + by 0x........: run_a_thread_NORETURN (syswrap-linux.c:89) + +sched status: + running_tid=1 + +Thread 1: status = VgTs_Runnable + at 0x........: test (stackgrowth.c:15) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) + by 0x........: test (stackgrowth.c:14) <truncated beyond 100 lines> ================================================= ./valgrind-new/none/tests/stackgrowth.stdout.diff ================================================= --- stackgrowth.stdout.exp 2009-06-11 02:12:32.000000000 +1000 +++ stackgrowth.stdout.out 2009-06-11 02:20:34.000000000 +1000 @@ -1 +0,0 @@ -PASSED ================================================= ./valgrind-old/none/tests/linux/mremap2.stdout.diff ================================================= --- mremap2.stdout.exp 2009-06-11 02:01:01.000000000 +1000 +++ mremap2.stdout.out 2009-06-11 02:08:02.000000000 +1000 @@ -27,38 +27,38 @@ .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. @@ -173,40 +173,40 @@ .................................................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... .................................................. <truncated beyond 100 lines> ================================================= ./valgrind-old/none/tests/linux/mremap2.stdout.diff-glibc28-amd64 ================================================= --- mremap2.stdout.exp-glibc28-amd64 2009-06-11 02:01:01.000000000 +1000 +++ mremap2.stdout.out 2009-06-11 02:08:02.000000000 +1000 @@ -188,37 +188,37 @@ maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... .................................................. maymv 1 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... .................................................. maymv 1 fixed 0 newsz 31 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX................... .................................................. maymv 1 fixed 0 newsz 31 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX................... .................................................. ================================================= ./valgrind-old/none/tests/linux/mremap2.stdout.diff2 ================================================= --- mremap2.stdout.exp2 2009-06-11 02:01:01.000000000 +1000 +++ mremap2.stdout.out 2009-06-11 02:08:02.000000000 +1000 @@ -27,38 +27,38 @@ .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. @@ -173,52 +173,52 @@ .................................................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... .................................................. <truncated beyond 100 lines> |
|
From: Joseph W. <jos...@ma...> - 2009-06-10 12:55:36
|
On Tuesday, June 09, 2009, at 06:04PM, "Josef Weidendorfer" <Jos...@gm...> wrote: >On Tuesday 09 June 2009, Joseph Winston wrote: >> Here's what happens when I run callgrind inside of gdb: >> ... >> (gdb) run --num-callers=50 --show-emwarns=yes --smc-check=all bin/Test1.exe > >You should run it in the debugger including the option "--tool=callgrind" >(this needs to be added to README_DEVELOPERS), because otherwise, the >preload library for memcheck will be loaded, leading to errors such as > >> ==16049== For interactive control, run 'callgrind_control -h'. >> --16049-- VG_USERREQ__CLIENT_CALL1: func=0x0 > >which is bogus. > >> Operating system error: Success >> Memory allocation failed > >No idea what's wrong here. As Julian said, your program seems to have a bug somewhere. > >Josef > > I've asked for the source code to the library that has the issues and I'm still waiting for that request to be filled. Until then, here's the output with --tool=callgrind: $ setenv VALGRIND_LAUNCHER ~/src/Tools/VALGRIND/RemoteSVN/valgrind/coregrind/valgrind $ gdb ~/src/Tools/VALGRIND/RemoteSVN/valgrind/.in_place/callgrind-amd64-linux GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu"... (gdb) handle SIGILL SIGSEGV nostop noprint Signal Stop Print Pass to program Description SIGILL No No Yes Illegal instruction SIGSEGV No No Yes Segmentation fault (gdb) run --tool=callgrind bin/Test1.exe Starting program: /scratch/jody/src/Tools/VALGRIND/RemoteSVN/valgrind/.in_place/callgrind-amd64-linux --tool=callgrind bin/Test1.exe ==13658== Callgrind, a call-graph generating cache profiler. ==13658== Copyright (C) 2002-2009, and GNU GPL'd, by Josef Weidendorfer et al. ==13658== Using LibVEX rev 1899, a library for dynamic binary translation. ==13658== Copyright (C) 2004-2009, and GNU GPL'd, by OpenWorks LLP. ==13658== Using valgrind-3.5.0.SVN, a dynamic binary instrumentation framework. ==13658== Copyright (C) 2000-2009, and GNU GPL'd, by Julian Seward et al. ==13658== For more details, rerun with: -v ==13658== ==13658== For interactive control, run 'callgrind_control -h'. Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb) |
|
From: Bart V. A. <bar...@gm...> - 2009-06-10 07:45:28
|
Nightly build on georgia-tech-cellbuzz-native ( cellbuzz, ppc64, Fedora 7, native ) Started at 2009-06-10 02:00:05 EDT Ended at 2009-06-10 03:44:30 EDT Results differ from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... done Regression test results follow == 419 tests, 36 stderr failures, 12 stdout failures, 0 post failures == memcheck/tests/deep_templates (stdout) memcheck/tests/leak-cases-full (stderr) memcheck/tests/leak-cases-summary (stderr) memcheck/tests/leak-cycle (stderr) memcheck/tests/origin5-bz2 (stderr) memcheck/tests/varinfo1 (stderr) memcheck/tests/varinfo2 (stderr) memcheck/tests/varinfo3 (stderr) memcheck/tests/varinfo4 (stderr) memcheck/tests/varinfo5 (stderr) memcheck/tests/varinfo6 (stderr) memcheck/tests/wrap8 (stderr) none/tests/linux/mremap (stderr) none/tests/linux/mremap2 (stdout) none/tests/ppc32/jm-fp (stdout) none/tests/ppc32/jm-vmx (stdout) none/tests/ppc32/round (stdout) none/tests/ppc32/test_gx (stdout) none/tests/ppc64/jm-fp (stdout) none/tests/ppc64/jm-vmx (stdout) none/tests/ppc64/round (stdout) none/tests/shell_valid2 (stderr) none/tests/shell_valid3 (stderr) helgrind/tests/hg05_race2 (stderr) exp-ptrcheck/tests/bad_percentify (stdout) exp-ptrcheck/tests/bad_percentify (stderr) exp-ptrcheck/tests/base (stderr) exp-ptrcheck/tests/ccc (stderr) exp-ptrcheck/tests/fp (stderr) exp-ptrcheck/tests/globalerr (stderr) exp-ptrcheck/tests/hackedbz2 (stdout) exp-ptrcheck/tests/hackedbz2 (stderr) exp-ptrcheck/tests/hp_bounds (stderr) exp-ptrcheck/tests/hp_dangle (stderr) exp-ptrcheck/tests/justify (stderr) exp-ptrcheck/tests/partial_bad (stderr) exp-ptrcheck/tests/partial_good (stderr) exp-ptrcheck/tests/preen_invars (stdout) exp-ptrcheck/tests/preen_invars (stderr) exp-ptrcheck/tests/pth_create (stderr) exp-ptrcheck/tests/pth_specific (stderr) exp-ptrcheck/tests/realloc (stderr) exp-ptrcheck/tests/stackerr (stderr) exp-ptrcheck/tests/strcpy (stderr) exp-ptrcheck/tests/supp (stderr) exp-ptrcheck/tests/tricky (stderr) exp-ptrcheck/tests/unaligned (stderr) exp-ptrcheck/tests/zero (stderr) ================================================= == Results from 24 hours ago == ================================================= Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... done Regression test results follow == 419 tests, 37 stderr failures, 12 stdout failures, 0 post failures == memcheck/tests/deep_templates (stdout) memcheck/tests/leak-cases-full (stderr) memcheck/tests/leak-cases-summary (stderr) memcheck/tests/leak-cycle (stderr) memcheck/tests/origin5-bz2 (stderr) memcheck/tests/varinfo1 (stderr) memcheck/tests/varinfo2 (stderr) memcheck/tests/varinfo3 (stderr) memcheck/tests/varinfo4 (stderr) memcheck/tests/varinfo5 (stderr) memcheck/tests/varinfo6 (stderr) memcheck/tests/wrap8 (stderr) none/tests/linux/mremap (stderr) none/tests/linux/mremap2 (stdout) none/tests/ppc32/jm-fp (stdout) none/tests/ppc32/jm-vmx (stdout) none/tests/ppc32/round (stdout) none/tests/ppc32/test_gx (stdout) none/tests/ppc64/jm-fp (stdout) none/tests/ppc64/jm-vmx (stdout) none/tests/ppc64/round (stdout) none/tests/shell_valid2 (stderr) none/tests/shell_valid3 (stderr) helgrind/tests/hg05_race2 (stderr) drd/tests/pth_create_chain (stderr) exp-ptrcheck/tests/bad_percentify (stdout) exp-ptrcheck/tests/bad_percentify (stderr) exp-ptrcheck/tests/base (stderr) exp-ptrcheck/tests/ccc (stderr) exp-ptrcheck/tests/fp (stderr) exp-ptrcheck/tests/globalerr (stderr) exp-ptrcheck/tests/hackedbz2 (stdout) exp-ptrcheck/tests/hackedbz2 (stderr) exp-ptrcheck/tests/hp_bounds (stderr) exp-ptrcheck/tests/hp_dangle (stderr) exp-ptrcheck/tests/justify (stderr) exp-ptrcheck/tests/partial_bad (stderr) exp-ptrcheck/tests/partial_good (stderr) exp-ptrcheck/tests/preen_invars (stdout) exp-ptrcheck/tests/preen_invars (stderr) exp-ptrcheck/tests/pth_create (stderr) exp-ptrcheck/tests/pth_specific (stderr) exp-ptrcheck/tests/realloc (stderr) exp-ptrcheck/tests/stackerr (stderr) exp-ptrcheck/tests/strcpy (stderr) exp-ptrcheck/tests/supp (stderr) exp-ptrcheck/tests/tricky (stderr) exp-ptrcheck/tests/unaligned (stderr) exp-ptrcheck/tests/zero (stderr) ================================================= == Difference between 24 hours ago and now == ================================================= *** old.short Wed Jun 10 02:51:53 2009 --- new.short Wed Jun 10 03:44:30 2009 *************** *** 8,10 **** ! == 419 tests, 37 stderr failures, 12 stdout failures, 0 post failures == memcheck/tests/deep_templates (stdout) --- 8,10 ---- ! == 419 tests, 36 stderr failures, 12 stdout failures, 0 post failures == memcheck/tests/deep_templates (stdout) *************** *** 33,35 **** helgrind/tests/hg05_race2 (stderr) - drd/tests/pth_create_chain (stderr) exp-ptrcheck/tests/bad_percentify (stdout) --- 33,34 ---- |
|
From: <sv...@va...> - 2009-06-10 06:14:49
|
Author: njn
Date: 2009-06-10 07:13:34 +0100 (Wed, 10 Jun 2009)
New Revision: 10291
Log:
Implement and test wrappers for lstat_extended, stat64_extended,
lstat64_extended, and improve the existing wrapper for stat_extended.
Modified:
trunk/coregrind/m_syswrap/priv_syswrap-darwin.h
trunk/coregrind/m_syswrap/syswrap-darwin.c
trunk/coregrind/m_syswrap/syswrap-generic.c
trunk/memcheck/tests/darwin/scalar.c
trunk/memcheck/tests/darwin/scalar.stderr.exp
Modified: trunk/coregrind/m_syswrap/priv_syswrap-darwin.h
===================================================================
--- trunk/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-06-10 04:11:56 UTC (rev 10290)
+++ trunk/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-06-10 06:13:34 UTC (rev 10291)
@@ -335,7 +335,7 @@
// NYI open_extended 277
// NYI umask_extended 278
DECL_TEMPLATE(darwin, stat_extended); // 279
-// NYI lstat_extended 280
+DECL_TEMPLATE(darwin, lstat_extended); // 280
// NYI fstat_extended 281
DECL_TEMPLATE(darwin, chmod_extended); // 282
DECL_TEMPLATE(darwin, fchmod_extended); // 283
@@ -396,8 +396,8 @@
DECL_TEMPLATE(darwin, stat64); // 338
DECL_TEMPLATE(darwin, fstat64); // 339
DECL_TEMPLATE(darwin, lstat64); // 340
-// NYI stat64_extended 341
-// NYI lstat64_extended 342
+DECL_TEMPLATE(darwin, stat64_extended); // 341
+DECL_TEMPLATE(darwin, lstat64_extended); // 342
// NYI fstat64_extended 343
DECL_TEMPLATE(darwin, getdirentries64); // 344
DECL_TEMPLATE(darwin, statfs64); // 345
Modified: trunk/coregrind/m_syswrap/syswrap-darwin.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-darwin.c 2009-06-10 04:11:56 UTC (rev 10290)
+++ trunk/coregrind/m_syswrap/syswrap-darwin.c 2009-06-10 06:13:34 UTC (rev 10291)
@@ -1828,22 +1828,90 @@
PRE_REG_READ4(int, "stat_extended", char *, file_name, struct stat *, buf,
void *, fsacl, vki_size_t *, fsacl_size);
PRE_MEM_RASCIIZ( "stat_extended(file_name)", ARG1 );
+ PRE_MEM_WRITE( "stat_extended(buf)", ARG2, sizeof(struct vki_stat) );
+ if (ML_(safe_to_deref)( (void*)ARG4, sizeof(vki_size_t) ))
+ PRE_MEM_WRITE("stat_extended(fsacl)", ARG3, *(vki_size_t *)ARG4 );
PRE_MEM_READ( "stat_extended(fsacl_size)", ARG4, sizeof(vki_size_t) );
- PRE_MEM_WRITE( "stat_extended(buf)", ARG2, sizeof(struct vki_stat) );
PRE_MEM_WRITE( "stat_extended(fsacl_size)", ARG4, sizeof(vki_size_t) );
- PRE_MEM_WRITE( "stat_extended(fsacl)", ARG3, *(vki_size_t *)ARG4 );
}
POST(stat_extended)
{
POST_MEM_WRITE( ARG2, sizeof(struct vki_stat) );
+ if (ML_(safe_to_deref)( (void*)ARG4, sizeof(vki_size_t) ))
+ POST_MEM_WRITE( ARG3, *(vki_size_t *)ARG4 );
POST_MEM_WRITE( ARG4, sizeof(vki_size_t) );
- POST_MEM_WRITE( ARG3, *(vki_size_t *)ARG4 );
}
+PRE(lstat_extended)
+{
+ PRINT("lstat_extended( %#lx(%s), %#lx, %#lx, %#lx )",
+ ARG1, (char *)ARG1, ARG2, ARG3, ARG4);
+ PRE_REG_READ4(int, "lstat_extended", char *, file_name, struct stat *, buf,
+ void *, fsacl, vki_size_t *, fsacl_size);
+ PRE_MEM_RASCIIZ( "lstat_extended(file_name)", ARG1 );
+ PRE_MEM_WRITE( "lstat_extended(buf)", ARG2, sizeof(struct vki_stat) );
+ if (ML_(safe_to_deref)( (void*)ARG4, sizeof(vki_size_t) ))
+ PRE_MEM_WRITE("lstat_extended(fsacl)", ARG3, *(vki_size_t *)ARG4 );
+ PRE_MEM_READ( "lstat_extended(fsacl_size)", ARG4, sizeof(vki_size_t) );
+ PRE_MEM_WRITE( "lstat_extended(fsacl_size)", ARG4, sizeof(vki_size_t) );
+}
+POST(lstat_extended)
+{
+ POST_MEM_WRITE( ARG2, sizeof(struct vki_stat) );
+ if (ML_(safe_to_deref)( (void*)ARG4, sizeof(vki_size_t) ))
+ POST_MEM_WRITE( ARG3, *(vki_size_t *)ARG4 );
+ POST_MEM_WRITE( ARG4, sizeof(vki_size_t) );
+}
+
+
+PRE(stat64_extended)
+{
+ PRINT("stat64_extended( %#lx(%s), %#lx, %#lx, %#lx )",
+ ARG1, (char *)ARG1, ARG2, ARG3, ARG4);
+ PRE_REG_READ4(int, "stat64_extended", char *, file_name, struct stat64 *, buf,
+ void *, fsacl, vki_size_t *, fsacl_size);
+ PRE_MEM_RASCIIZ( "stat64_extended(file_name)", ARG1 );
+ PRE_MEM_WRITE( "stat64_extended(buf)", ARG2, sizeof(struct vki_stat64) );
+ if (ML_(safe_to_deref)( (void*)ARG4, sizeof(vki_size_t) ))
+ PRE_MEM_WRITE("stat64_extended(fsacl)", ARG3, *(vki_size_t *)ARG4 );
+ PRE_MEM_READ( "stat64_extended(fsacl_size)", ARG4, sizeof(vki_size_t) );
+ PRE_MEM_WRITE( "stat64_extended(fsacl_size)", ARG4, sizeof(vki_size_t) );
+}
+POST(stat64_extended)
+{
+ POST_MEM_WRITE( ARG2, sizeof(struct vki_stat64) );
+ if (ML_(safe_to_deref)( (void*)ARG4, sizeof(vki_size_t) ))
+ POST_MEM_WRITE( ARG3, *(vki_size_t *)ARG4 );
+ POST_MEM_WRITE( ARG4, sizeof(vki_size_t) );
+}
+
+
+PRE(lstat64_extended)
+{
+ PRINT("lstat64_extended( %#lx(%s), %#lx, %#lx, %#lx )",
+ ARG1, (char *)ARG1, ARG2, ARG3, ARG4);
+ PRE_REG_READ4(int, "lstat64_extended", char *, file_name, struct stat64 *, buf,
+ void *, fsacl, vki_size_t *, fsacl_size);
+ PRE_MEM_RASCIIZ( "lstat64_extended(file_name)", ARG1 );
+ PRE_MEM_WRITE( "lstat64_extended(buf)", ARG2, sizeof(struct vki_stat64) );
+ if (ML_(safe_to_deref)( (void*)ARG4, sizeof(vki_size_t) ))
+ PRE_MEM_WRITE( "lstat64_extended(fsacl)", ARG3, *(vki_size_t *)ARG4 );
+ PRE_MEM_READ( "lstat64_extended(fsacl_size)", ARG4, sizeof(vki_size_t) );
+ PRE_MEM_WRITE( "lstat64_extended(fsacl_size)", ARG4, sizeof(vki_size_t) );
+}
+POST(lstat64_extended)
+{
+ POST_MEM_WRITE( ARG2, sizeof(struct vki_stat64) );
+ if (ML_(safe_to_deref)( (void*)ARG4, sizeof(vki_size_t) ))
+ POST_MEM_WRITE( ARG3, *(vki_size_t *)ARG4 );
+ POST_MEM_WRITE( ARG4, sizeof(vki_size_t) );
+}
+
+
PRE(fchmod_extended)
{
- /* Note: this is not really correct. Handling of
+ /* DDD: Note: this is not really correct. Handling of
chmod_extended is broken in the same way. */
PRINT("fchmod_extended ( %ld, %ld, %ld, %ld, %#lx )",
ARG1, ARG2, ARG3, ARG4, ARG5);
@@ -1853,7 +1921,7 @@
gid_t, gid,
vki_mode_t, mode,
void* /*really,user_addr_t*/, xsecurity);
- /* relative to the xnu sources (kauth_copyinfilesec), this
+ /* DDD: relative to the xnu sources (kauth_copyinfilesec), this
is just way wrong. */
PRE_MEM_READ( "fchmod_extended(xsecurity)", ARG5,
sizeof(struct kauth_filesec) );
@@ -1861,7 +1929,7 @@
PRE(chmod_extended)
{
- /* Note: this is not really correct. Handling of
+ /* DDD: Note: this is not really correct. Handling of
fchmod_extended is broken in the same way. */
PRINT("chmod_extended ( %#lx(%s), %ld, %ld, %ld, %#lx )",
ARG1, ARG1 ? (HChar*)ARG1 : "(null)", ARG2, ARG3, ARG4, ARG5);
@@ -1872,7 +1940,7 @@
vki_mode_t, mode,
void* /*really,user_addr_t*/, xsecurity);
PRE_MEM_RASCIIZ("chmod_extended(path)", ARG1);
- /* relative to the xnu sources (kauth_copyinfilesec), this
+ /* DDD: relative to the xnu sources (kauth_copyinfilesec), this
is just way wrong. */
PRE_MEM_READ( "chmod_extended(xsecurity)", ARG5,
sizeof(struct kauth_filesec) );
@@ -7157,7 +7225,7 @@
// _____(__NR_open_extended),
// _____(__NR_umask_extended),
MACXY(__NR_stat_extended, stat_extended),
-// _____(__NR_lstat_extended), // 280
+ MACXY(__NR_lstat_extended, lstat_extended), // 280
// _____(__NR_fstat_extended),
MACX_(__NR_chmod_extended, chmod_extended),
MACX_(__NR_fchmod_extended, fchmod_extended),
@@ -7218,8 +7286,8 @@
MACXY(__NR_stat64, stat64),
MACXY(__NR_fstat64, fstat64),
MACXY(__NR_lstat64, lstat64), // 340
-// _____(__NR_stat64_extended),
-// _____(__NR_lstat64_extended),
+ MACXY(__NR_stat64_extended, stat64_extended),
+ MACXY(__NR_lstat64_extended, lstat64_extended),
// _____(__NR_fstat64_extended),
MACXY(__NR_getdirentries64, getdirentries64),
MACXY(__NR_statfs64, statfs64),
Modified: trunk/coregrind/m_syswrap/syswrap-generic.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-generic.c 2009-06-10 04:11:56 UTC (rev 10290)
+++ trunk/coregrind/m_syswrap/syswrap-generic.c 2009-06-10 06:13:34 UTC (rev 10291)
@@ -109,7 +109,7 @@
Bool ML_(safe_to_deref) ( void* start, SizeT size )
{
- return VG_(am_is_valid_for_client)( (Addr)start, size, VKI_PROT_NONE );
+ return VG_(am_is_valid_for_client)( (Addr)start, size, VKI_PROT_READ );
}
Modified: trunk/memcheck/tests/darwin/scalar.c
===================================================================
--- trunk/memcheck/tests/darwin/scalar.c 2009-06-10 04:11:56 UTC (rev 10290)
+++ trunk/memcheck/tests/darwin/scalar.c 2009-06-10 06:13:34 UTC (rev 10291)
@@ -364,8 +364,24 @@
// __NR_open_extended 277
// __NR_umask_extended 278
+
// __NR_stat_extended 279
+ {
+ size_t one = 1;
+ GO(__NR_stat_extended, "4s 4m");
+ SY(__NR_stat_extended, x0, x0, x0, x0); FAIL;
+ // Go again to get a complaint about where the 3rd arg points; it
+ // requires the 4th arg to point to a valid value.
+ SY(__NR_stat_extended, 0, 0, 0, &one); FAIL;
+
// __NR_lstat_extended 280
+ GO(__NR_lstat_extended, "4s 4m");
+ SY(__NR_lstat_extended, x0, x0, x0, x0); FAIL;
+ // Go again to get a complaint about where the 3rd arg points; it
+ // requires the 4th arg to point to a valid value.
+ SY(__NR_lstat_extended, 0, 0, 0, &one); FAIL;
+ }
+
// __NR_fstat_extended 281
// __NR_chmod_extended 282
// __NR_fchmod_extended 283
@@ -428,8 +444,24 @@
// __NR_fstat64 339
// __NR_lstat64 340
// __NR_stat64_extended 341
+
// __NR_lstat64_extended 342
+ {
+ size_t one = 1;
+ GO(__NR_stat64_extended, "4s 4m");
+ SY(__NR_stat64_extended, x0, x0, x0, x0); FAIL;
+ // Go again to get a complaint about where the 3rd arg points; it
+ // requires the 4th arg to point to a valid value.
+ SY(__NR_stat64_extended, 0, 0, 0, &one); FAIL;
+
// __NR_fstat64_extended 343
+ GO(__NR_lstat64_extended, "4s 4m");
+ SY(__NR_lstat64_extended, x0, x0, x0, x0); FAIL;
+ // Go again to get a complaint about where the 3rd arg points; it
+ // requires the 4th arg to point to a valid value.
+ SY(__NR_lstat64_extended, 0, 0, 0, &one); FAIL;
+ }
+
// __NR_getdirentries64 344
// __NR_statfs64 345
// __NR_fstatfs64 346
Modified: trunk/memcheck/tests/darwin/scalar.stderr.exp
===================================================================
--- trunk/memcheck/tests/darwin/scalar.stderr.exp 2009-06-10 04:11:56 UTC (rev 10290)
+++ trunk/memcheck/tests/darwin/scalar.stderr.exp 2009-06-10 06:13:34 UTC (rev 10291)
@@ -214,6 +214,130 @@
...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+x2000117(279): __NR_stat_extended 4s 4m
+-----------------------------------------------------
+
+Syscall param stat_extended(file_name) contains uninitialised byte(s)
+ ...
+
+Syscall param stat_extended(buf) contains uninitialised byte(s)
+ ...
+
+Syscall param stat_extended(fsacl) contains uninitialised byte(s)
+ ...
+
+Syscall param stat_extended(fsacl_size) contains uninitialised byte(s)
+ ...
+
+Syscall param stat_extended(file_name) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param stat_extended(buf) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param stat_extended(fsacl_size) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param stat_extended(fsacl) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+-----------------------------------------------------
+x2000118(280): __NR_lstat_extended 4s 4m
+-----------------------------------------------------
+
+Syscall param lstat_extended(file_name) contains uninitialised byte(s)
+ ...
+
+Syscall param lstat_extended(buf) contains uninitialised byte(s)
+ ...
+
+Syscall param lstat_extended(fsacl) contains uninitialised byte(s)
+ ...
+
+Syscall param lstat_extended(fsacl_size) contains uninitialised byte(s)
+ ...
+
+Syscall param lstat_extended(file_name) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param lstat_extended(buf) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param lstat_extended(fsacl_size) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param lstat_extended(fsacl) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+-----------------------------------------------------
+x2000155(341):__NR_stat64_extended 4s 4m
+-----------------------------------------------------
+
+Syscall param stat64_extended(file_name) contains uninitialised byte(s)
+ ...
+
+Syscall param stat64_extended(buf) contains uninitialised byte(s)
+ ...
+
+Syscall param stat64_extended(fsacl) contains uninitialised byte(s)
+ ...
+
+Syscall param stat64_extended(fsacl_size) contains uninitialised byte(s)
+ ...
+
+Syscall param stat64_extended(file_name) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param stat64_extended(buf) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param stat64_extended(fsacl_size) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param stat64_extended(fsacl) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+-----------------------------------------------------
+x2000156(342):__NR_lstat64_extended 4s 4m
+-----------------------------------------------------
+
+Syscall param lstat64_extended(file_name) contains uninitialised byte(s)
+ ...
+
+Syscall param lstat64_extended(buf) contains uninitialised byte(s)
+ ...
+
+Syscall param lstat64_extended(fsacl) contains uninitialised byte(s)
+ ...
+
+Syscall param lstat64_extended(fsacl_size) contains uninitialised byte(s)
+ ...
+
+Syscall param lstat64_extended(file_name) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param lstat64_extended(buf) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param lstat64_extended(fsacl_size) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param lstat64_extended(fsacl) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+-----------------------------------------------------
x20001a4(420):__NR_sem_wait_nocancel 0s* 0m
-----------------------------------------------------
-----------------------------------------------------
|
|
From: <sv...@va...> - 2009-06-10 04:13:07
|
Author: njn
Date: 2009-06-10 05:11:56 +0100 (Wed, 10 Jun 2009)
New Revision: 10290
Log:
Darwin syscall wrapper cleanups:
- Put Darwin syscall DECL_TEMPLATEs in syscall order.
- Removed the "sys_" prefix from Darwin-specific wrappers, it's not
necessary. Renamed a couple of other wrappers similarly.
- Removed the sys_fcntl64 Darwin wrapper, it was unused.
- Improved some code layout.
Overall this removes 6 "DDD"/"GrP" fixme comments.
Modified:
trunk/coregrind/m_syswrap/priv_syswrap-darwin.h
trunk/coregrind/m_syswrap/syswrap-darwin.c
trunk/include/vki/vki-scnums-darwin.h
trunk/memcheck/tests/darwin/scalar.c
trunk/memcheck/tests/darwin/scalar.stderr.exp
Modified: trunk/coregrind/m_syswrap/priv_syswrap-darwin.h
===================================================================
--- trunk/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-06-10 03:30:07 UTC (rev 10289)
+++ trunk/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-06-10 04:11:56 UTC (rev 10290)
@@ -50,109 +50,438 @@
void VG_(show_open_ports)(void);
-// Unix syscalls
-DECL_TEMPLATE(darwin, sys_semget);
-DECL_TEMPLATE(darwin, sys_semop);
-DECL_TEMPLATE(darwin, sys_semctl);
-DECL_TEMPLATE(darwin, sys_sem_open);
-DECL_TEMPLATE(darwin, sys_sem_close);
-DECL_TEMPLATE(darwin, sys_sem_unlink);
-DECL_TEMPLATE(darwin, sys_sem_wait);
-DECL_TEMPLATE(darwin, sys_sem_trywait);
-DECL_TEMPLATE(darwin, sys_sem_post);
-DECL_TEMPLATE(darwin, sys_sem_init);
-DECL_TEMPLATE(darwin, sys_sem_destroy);
-DECL_TEMPLATE(darwin, sys_sem_wait_nocancel);
-DECL_TEMPLATE(darwin, sys_sem_trywait);
-DECL_TEMPLATE(darwin, sys_bsdthread_create);
-DECL_TEMPLATE(darwin, sys_bsdthread_terminate);
-DECL_TEMPLATE(darwin, sys_kqueue);
-DECL_TEMPLATE(darwin, sys_kevent);
-DECL_TEMPLATE(darwin, sys_bsdthread_register);
-DECL_TEMPLATE(darwin, sys_workq_open);
-DECL_TEMPLATE(darwin, sys_workq_ops);
-DECL_TEMPLATE(darwin, sys___mac_syscall);
-DECL_TEMPLATE(darwin, sys_exit);
-DECL_TEMPLATE(darwin, sys_sigaction);
-DECL_TEMPLATE(darwin, sys___pthread_canceled);
-DECL_TEMPLATE(darwin, sys___pthread_markcancel);
-DECL_TEMPLATE(darwin, sys___pthread_sigmask);
-DECL_TEMPLATE(darwin, sys___disable_threadsignal);
-DECL_TEMPLATE(darwin, sys_kdebug_trace);
-DECL_TEMPLATE(darwin, sys_seteuid);
-DECL_TEMPLATE(darwin, sys_setegid);
-DECL_TEMPLATE(darwin, sys_listxattr);
-DECL_TEMPLATE(darwin, sys_flistxattr);
-DECL_TEMPLATE(darwin, sys_shmctl);
-DECL_TEMPLATE(darwin, sys_shmget);
-DECL_TEMPLATE(darwin, sys_shm_open);
-DECL_TEMPLATE(darwin, sys_statx);
-DECL_TEMPLATE(darwin, sys_fchmod_extended);
-DECL_TEMPLATE(darwin, sys_chmod_extended);
-DECL_TEMPLATE(darwin, sys_accessx);
-DECL_TEMPLATE(darwin, sys_chflags);
-DECL_TEMPLATE(darwin, sys_fchflags);
-DECL_TEMPLATE(darwin, sys_stat64);
-DECL_TEMPLATE(darwin, sys_lstat64);
-DECL_TEMPLATE(darwin, sys_fstat64);
-DECL_TEMPLATE(darwin, sys_getfsstat);
-DECL_TEMPLATE(darwin, sys_getattrlist);
-DECL_TEMPLATE(darwin, sys_setattrlist);
-DECL_TEMPLATE(darwin, sys_getdirentriesattr);
-DECL_TEMPLATE(darwin, sys_fsctl);
-DECL_TEMPLATE(darwin, sys_socket);
-DECL_TEMPLATE(darwin, sys_setsockopt);
-DECL_TEMPLATE(darwin, sys_getsockopt);
-DECL_TEMPLATE(darwin, sys_connect);
-DECL_TEMPLATE(darwin, sys_accept);
-DECL_TEMPLATE(darwin, sys_sendto);
-DECL_TEMPLATE(darwin, sys_recvfrom);
-DECL_TEMPLATE(darwin, sys_sendmsg);
-DECL_TEMPLATE(darwin, sys_recvmsg);
-DECL_TEMPLATE(darwin, sys_shutdown);
-DECL_TEMPLATE(darwin, sys_bind);
-DECL_TEMPLATE(darwin, sys_listen);
-DECL_TEMPLATE(darwin, sys_getsockname);
-DECL_TEMPLATE(darwin, sys_getpeername);
-DECL_TEMPLATE(darwin, sys_socketpair);
-DECL_TEMPLATE(darwin, sys_gethostuuid);
-DECL_TEMPLATE(darwin, sys_pipe);
-DECL_TEMPLATE(darwin, sys_getlogin);
-DECL_TEMPLATE(darwin, sys_ptrace);
-DECL_TEMPLATE(darwin, sys_issetugid);
-DECL_TEMPLATE(darwin, sys_getdtablesize);
-DECL_TEMPLATE(darwin, sys_lseek);
-DECL_TEMPLATE(darwin, sys_getdirentries);
-DECL_TEMPLATE(darwin, sys_getdirentries64);
-DECL_TEMPLATE(darwin, sys_statfs64);
-DECL_TEMPLATE(darwin, sys_fstatfs64);
-DECL_TEMPLATE(darwin, sys_csops);
-DECL_TEMPLATE(darwin, sys_auditon);
-DECL_TEMPLATE(darwin, sys_pathconf);
-DECL_TEMPLATE(darwin, sys_fpathconf);
-DECL_TEMPLATE(darwin, sys_shared_region_map_file_np);
-DECL_TEMPLATE(darwin, sys_mmap);
-DECL_TEMPLATE(darwin, sys_sysctl);
-DECL_TEMPLATE(darwin, sys_sigpending);
-DECL_TEMPLATE(darwin, sys_sigprocmask);
-DECL_TEMPLATE(darwin, sys_sigsuspend);
-DECL_TEMPLATE(darwin, sys_watchevent);
-DECL_TEMPLATE(darwin, sys_waitevent);
-DECL_TEMPLATE(darwin, sys_modwatch);
-DECL_TEMPLATE(darwin, sys_getxattr);
-DECL_TEMPLATE(darwin, sys_fgetxattr);
-DECL_TEMPLATE(darwin, sys_setxattr);
-DECL_TEMPLATE(darwin, sys_fsetxattr);
-DECL_TEMPLATE(darwin, sys_initgroups);
-DECL_TEMPLATE(darwin, sys_posix_spawn);
-DECL_TEMPLATE(darwin, sys_settid);
-DECL_TEMPLATE(darwin, sys_sendfile);
-DECL_TEMPLATE(darwin, sys_fcntl);
-DECL_TEMPLATE(darwin, sys_fcntl64);
-DECL_TEMPLATE(darwin, sys_ioctl);
-DECL_TEMPLATE(darwin, sys_futimes);
-DECL_TEMPLATE(darwin, sys_FAKE_SIGRETURN);
-DECL_TEMPLATE(darwin, sys_sigreturn);
+// Unix syscalls.
+// GEN = it uses the generic wrapper
+// NYI = wrapper not yet implemented in Valgrind
+// NOC = the non-"_nocancel" wrapper is used
+// old = the syscall no longer exists in Darwin
+DECL_TEMPLATE(darwin, exit); // 1
+// GEN fork 2
+// GEN read 3
+// GEN write 4
+// GEN open 5
+// GEN close 6
+// GEN wait4 7
+// old creat 8
+// GEN link 9
+// GEN unlink 10
+// old execv 11
+// GEN chdir 12
+// GEN fchdir 13
+// GEN mknod 14
+// GEN chmod 15
+// GEN chown 16
+// old break 17
+DECL_TEMPLATE(darwin, getfsstat); // 18
+// old lseek 19
+// GEN getpid 20
+// old mount 21
+// old umount 22
+// GEN setuid 23
+// GEN getuid 24
+// GEN geteuid 25
+DECL_TEMPLATE(darwin, ptrace); // 26
+DECL_TEMPLATE(darwin, recvmsg); // 27
+DECL_TEMPLATE(darwin, sendmsg); // 28
+DECL_TEMPLATE(darwin, recvfrom); // 29
+DECL_TEMPLATE(darwin, accept); // 30
+DECL_TEMPLATE(darwin, getpeername); // 31
+DECL_TEMPLATE(darwin, getsockname); // 32
+// GEN access 33
+DECL_TEMPLATE(darwin, chflags); // 34
+DECL_TEMPLATE(darwin, fchflags); // 35
+// GEN sync 36
+// GEN kill 37
+// old stat 38
+// GEN getppid 39
+// old lstat 40
+// GEN dup 41
+DECL_TEMPLATE(darwin, pipe); // 42
+// GEN getegid 43
+// NYI profil
+// old ktrace
+DECL_TEMPLATE(darwin, sigaction); // 46
+// GEN getgid 47
+DECL_TEMPLATE(darwin, sigprocmask); // 48
+DECL_TEMPLATE(darwin, getlogin); // 49
+// NYI setlogin 50
+// NYI acct 51
+DECL_TEMPLATE(darwin, sigpending); // 52
+// GEN sigaltstack 53
+DECL_TEMPLATE(darwin, ioctl); // 54
+// NYI reboot 55
+// NYI revoke 56
+// NYI symlink 57
+// GEN readlink 58
+// GEN execve 59
+// GEN umask 60
+// GEN chroot 61
+// old fstat
+// 63 used internally, reserved
+// old getpagesize 64
+// GEN msync 65
+// GEN vfork 66
+// old vread
+// old vwrite
+// old sbrk
+// old sstk
+// old mmap
+// old vadvise
+// GEN munmap 73
+// GEN mprotect 74
+// GEN madvise 75
+// old vhangup
+// old vlimit
+// NYI mincore 78
+// GEN getgroups 79
+// NYI setgroups 80
+// GEN getpgrp 81
+// NYI setpgid 82
+// GEN setitimer 83
+// old wait
+// NYI swapon 85
+// GEN getitimer 86
+// old gethostname
+// old sethostname
+DECL_TEMPLATE(darwin, getdtablesize); // 89
+// GEN dup2 90
+// old getdopt
+DECL_TEMPLATE(darwin, fcntl); // 92
+// GEN select 93
+// old setdopt
+// GEN fsync 95
+// GEN setpriority 96
+DECL_TEMPLATE(darwin, socket); // 97
+DECL_TEMPLATE(darwin, connect); // 98
+// old accept
+// GEN getpriority 100
+// old send
+// old recv
+// old sigreturn
+DECL_TEMPLATE(darwin, bind); // 104
+DECL_TEMPLATE(darwin, setsockopt); // 105
+DECL_TEMPLATE(darwin, listen); // 106
+// old vtimes
+// old sigvec
+// old sigblock
+// old sigsetmask
+DECL_TEMPLATE(darwin, sigsuspend); // 111
+// old sigstack
+// old recvmsg
+// old sendmsg
+// old vtrace
+// GEN gettimeofday 116
+// GEN getrusage 117
+DECL_TEMPLATE(darwin, getsockopt); // 118
+// old resuba
+// GEN readv 120
+// GEN writev 121
+// NYI settimeofday 122
+// GEN fchown 123
+// GEN fchmod 124
+// old recvfrom
+// NYI setreuid 126
+// NYI setregid 127
+// GEN rename 128
+// old truncate
+// old ftruncate
+// GEN flock 131
+// NYI mkfifo 132
+DECL_TEMPLATE(darwin, sendto); // 133
+DECL_TEMPLATE(darwin, shutdown); // 134
+DECL_TEMPLATE(darwin, socketpair); // 135
+// GEN mkdir 136
+// GEN rmdir 137
+// GEN utimes 138
+DECL_TEMPLATE(darwin, futimes); // 139
+// NYI adjtime 140
+// old getpeername
+DECL_TEMPLATE(darwin, gethostuuid); // 142
+// old sethostid
+// old getrlimit
+// old setrlimit
+// old killpg
+// GEN setsid 147
+// old setquota
+// old qquota
+// old getsockname
+// NYI getpgid 151
+// NYI setprivexec 152
+// GEN pread 153
+// GEN pwrite 154
+// NYI nfssvc 155
+// old getdirentries
+// GEN statfs 157
+// GEN fstatfs 158
+// NYI unmount 159
+// old async_daemon
+// NYI getfh 161
+// old getdomainname
+// old setdomainname
+// 164
+// NYI quotactl 165
+// old exportfs
+// NYI mount 167
+// old ustat
+DECL_TEMPLATE(darwin, csops); // 169
+// old table
+// old wait3
+// old rpause
+// NYI waitid 173
+// old getdents
+// old gc_control
+// NYI add_profil 176
+// 177
+// 178
+// 179
+DECL_TEMPLATE(darwin, kdebug_trace); // 180
+// GEN setgid 181
+DECL_TEMPLATE(darwin, setegid); // 182
+DECL_TEMPLATE(darwin, seteuid); // 183
+DECL_TEMPLATE(darwin, sigreturn); // 184
+DECL_TEMPLATE(darwin, FAKE_SIGRETURN);
+// NYI chud 185
+// 186
+// 187
+// GEN stat 188
+// GEN fstat 189
+// GEN lstat 190
+DECL_TEMPLATE(darwin, pathconf); // 191
+DECL_TEMPLATE(darwin, fpathconf); // 192
+// 193
+// GEN getrlimit 194
+// GEN setrlimit 195
+DECL_TEMPLATE(darwin, getdirentries); // 196
+DECL_TEMPLATE(darwin, mmap); // 197
+// 198 __syscall
+DECL_TEMPLATE(darwin, lseek); // 199 (was UX64)
+// GEN truncate 200
+// GEN ftruncate 201
+DECL_TEMPLATE(darwin, __sysctl); // 202
+// GEN mlock 203
+// GEN munlock 204
+// NYI undelete 205
+// NYI ATsocket 206
+// NYI ATgetmsg 207
+// NYI ATputmsg 208
+// NYI ATPsndreq 209
+// NYI ATPsndrsp 210
+// NYI ATPgetreq 211
+// NYI ATPgetrsp 212
+// 213 Reserved for AppleTalk
+// NYI kqueue_from_portset_np 214
+// NYI kqueue_portset_np 215
+// NYI mkcomplex 216
+// NYI statv 217
+// NYI lstatv 218
+// NYI fstatv 219
+DECL_TEMPLATE(darwin, getattrlist); // 220
+DECL_TEMPLATE(darwin, setattrlist); // 221
+DECL_TEMPLATE(darwin, getdirentriesattr); // 222
+// NYI exchangedata 223
+// 224 checkuseraccess
+// NYI searchfs 225
+// GEN delete 226
+// NYI copyfile 226
+// 228
+// 229
+// GEN poll 230
+DECL_TEMPLATE(darwin, watchevent); // 231
+DECL_TEMPLATE(darwin, waitevent); // 232
+DECL_TEMPLATE(darwin, modwatch); // 233
+DECL_TEMPLATE(darwin, getxattr); // 234
+DECL_TEMPLATE(darwin, fgetxattr); // 235
+DECL_TEMPLATE(darwin, setxattr); // 236
+DECL_TEMPLATE(darwin, fsetxattr); // 237
+// NYI removexattr 238
+// NYI fremovexattr 239
+DECL_TEMPLATE(darwin, listxattr); // 240
+DECL_TEMPLATE(darwin, flistxattr); // 241
+DECL_TEMPLATE(darwin, fsctl); // 242
+DECL_TEMPLATE(darwin, initgroups); // 243
+DECL_TEMPLATE(darwin, posix_spawn); // 244
+// 245
+// 246
+// NYI nfsclnt 247
+// NYI fhopen 248
+// 249
+// NYI minherit 250
+// NYI semsys 251
+// NYI msgsys 252
+// NYI shmsys 253
+DECL_TEMPLATE(darwin, semctl); // 254
+DECL_TEMPLATE(darwin, semget); // 255
+DECL_TEMPLATE(darwin, semop); // 256
+// 257
+// NYI msgctl 258
+// NYI msgget 259
+// NYI msgsnd 260
+// NYI msgrcv 261
+// NYI shmat 262
+DECL_TEMPLATE(darwin, shmctl); // 263
+// NYI shmdt 264
+DECL_TEMPLATE(darwin, shmget); // 265
+DECL_TEMPLATE(darwin, shm_open); // 266
+// NYI shm_unlink 267
+DECL_TEMPLATE(darwin, sem_open); // 268
+DECL_TEMPLATE(darwin, sem_close); // 269
+DECL_TEMPLATE(darwin, sem_unlink); // 270
+DECL_TEMPLATE(darwin, sem_wait); // 271
+DECL_TEMPLATE(darwin, sem_trywait); // 272
+DECL_TEMPLATE(darwin, sem_post); // 273
+// NYI sem_getvalue 274
+DECL_TEMPLATE(darwin, sem_init); // 275
+DECL_TEMPLATE(darwin, sem_destroy); // 276
+// NYI open_extended 277
+// NYI umask_extended 278
+DECL_TEMPLATE(darwin, stat_extended); // 279
+// NYI lstat_extended 280
+// NYI fstat_extended 281
+DECL_TEMPLATE(darwin, chmod_extended); // 282
+DECL_TEMPLATE(darwin, fchmod_extended); // 283
+// NYI access_extended 284
+DECL_TEMPLATE(darwin, settid); // 285
+// NYI gettid 286
+// NYI setsgroups 287
+// NYI getsgroups 288
+// NYI setwgroups 289
+// NYI getwgroups 290
+// NYI mkfifo_extended 291
+// NYI mkdir_extended 292
+// NYI identitysvc 293
+// NYI shared_region_check_np 294
+// NYI shared_region_map_np 295
+// old load_shared_file
+// old reset_shared_file
+// old new_system_shared_regions
+// old shared_region_map_file_np
+// old shared_region_make_private_np
+// NYI __pthread_mutex_destroy 301
+// NYI __pthread_mutex_init 302
+// NYI __pthread_mutex_lock 303
+// NYI __pthread_mutex_trylock 304
+// NYI __pthread_mutex_unlock 305
+// NYI __pthread_cond_init 306
+// NYI __pthread_cond_destroy 307
+// NYI __pthread_cond_broadcast 308
+// NYI __pthread_cond_signal 309
+// NYI getsid 310
+// NYI settid_with_pid 311
+// NYI __pthread_cond_timedwait 312
+// NYI aio_fsync 313
+// NYI aio_return 314
+// NYI aio_suspend 315
+// NYI aio_cancel 316
+// NYI aio_error 317
+// NYI aio_read 318
+// NYI aio_write 319
+// NYI lio_listio 320
+// NYI __pthread_cond_wait 321
+// NYI iopolicysys 322
+// 323
+// NYI mlockall 324
+// NYI munlockall 325
+// 326
+DECL_TEMPLATE(darwin, issetugid); // 327
+// NYI __pthread_kill 328
+DECL_TEMPLATE(darwin, __pthread_sigmask); // 329
+// NYI __sigwait 330
+DECL_TEMPLATE(darwin, __disable_threadsignal); // 331
+DECL_TEMPLATE(darwin, __pthread_markcancel); // 332
+DECL_TEMPLATE(darwin, __pthread_canceled); // 333
+DECL_TEMPLATE(darwin, __semwait_signal); // 334
+// old utrace
+// NYI proc_info 336
+DECL_TEMPLATE(darwin, sendfile); // 337
+DECL_TEMPLATE(darwin, stat64); // 338
+DECL_TEMPLATE(darwin, fstat64); // 339
+DECL_TEMPLATE(darwin, lstat64); // 340
+// NYI stat64_extended 341
+// NYI lstat64_extended 342
+// NYI fstat64_extended 343
+DECL_TEMPLATE(darwin, getdirentries64); // 344
+DECL_TEMPLATE(darwin, statfs64); // 345
+DECL_TEMPLATE(darwin, fstatfs64); // 346
+// NYI getfsstat64 347
+// NYI __pthread_chdir 348
+// NYI __pthread_fchdir 349
+// NYI audit 350
+DECL_TEMPLATE(darwin, auditon); // 351
+// 352
+// NYI getauid 353
+// NYI setauid 354
+// NYI getaudit 355
+// NYI setaudit 356
+// NYI getaudit_addr 357
+// NYI setaudit_addr 358
+// NYI auditctl 359
+DECL_TEMPLATE(darwin, bsdthread_create); // 360
+DECL_TEMPLATE(darwin, bsdthread_terminate); // 361
+DECL_TEMPLATE(darwin, kqueue); // 362
+DECL_TEMPLATE(darwin, kevent); // 363
+// NYI lchown 364
+// NYI stack_snapshot 365
+DECL_TEMPLATE(darwin, bsdthread_register); // 366
+DECL_TEMPLATE(darwin, workq_open); // 367
+DECL_TEMPLATE(darwin, workq_ops); // 368
+// 369
+// 370
+// 371
+// 372
+// 373
+// 374
+// 375
+// 376
+// 377
+// 378
+// 379
+// NYI __mac_execve 380
+DECL_TEMPLATE(darwin, __mac_syscall); // 381
+// NYI __mac_get_file 382
+// NYI __mac_set_file 383
+// NYI __mac_get_link 384
+// NYI __mac_set_link 385
+// NYI __mac_get_proc 386
+// NYI __mac_set_proc 387
+// NYI __mac_get_fd 388
+// NYI __mac_set_fd 389
+// NYI __mac_get_pid 390
+// NYI __mac_get_lcid 391
+// NYI __mac_get_lctx 392
+// NYI __mac_set_lctx 393
+// NYI setlcid 394
+// NYI getlcid 395
+// GEN read_nocancel 396
+// GEN write_nocancel 397
+// GEN open_nocancel 398
+// GEN close_nocancel 399
+// GEN wait4_nocancel 400
+// NOC recvmsg_nocancel 401
+// NOC sendmsg_nocancel 402
+// NOC recvfrom_nocancel 403
+// NOC accept_nocancel 404
+// GEN msync_nocancel 405
+// NOC fcntl_nocancel 406
+// GEN select_nocancel 407
+// GEN fsync_nocancel 408
+// NOC connect_nocancel 409
+// NYI sigsuspend_nocancel 410
+// GEN readv_nocancel 411
+// GEN writev_nocancel 412
+// NOC sendto_nocancel 413
+// GEN pread_nocancel 414
+// GEN pwrite_nocancel 415
+// NYI waitid_nocancel 416
+// GEN poll_nocancel 417
+// NYI msgsnd_nocancel 418
+// NYI msgrcv_nocancel 419
+// NOC sem_wait_nocancel 420
+// NYI aio_suspend_nocancel 421
+// NYI __sigwait_nocancel 422
+// NOC __semwait_signal_nocancel 423
+// NYI __mac_mount 424
+// NYI __mac_get_mount 425
+// NYI __mac_getfsstat 426
// Mach message helpers
DECL_TEMPLATE(darwin, host_info);
@@ -230,7 +559,6 @@
DECL_TEMPLATE(darwin, semaphore_wait_signal);
DECL_TEMPLATE(darwin, semaphore_timedwait);
DECL_TEMPLATE(darwin, semaphore_timedwait_signal);
-DECL_TEMPLATE(darwin, sys___semwait_signal);
DECL_TEMPLATE(darwin, task_for_pid);
DECL_TEMPLATE(darwin, pid_for_task);
DECL_TEMPLATE(darwin, mach_timebase_info);
Modified: trunk/coregrind/m_syswrap/syswrap-darwin.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-darwin.c 2009-06-10 03:30:07 UTC (rev 10289)
+++ trunk/coregrind/m_syswrap/syswrap-darwin.c 2009-06-10 04:11:56 UTC (rev 10290)
@@ -667,10 +667,10 @@
darwin ioctl wrapper
------------------------------------------------------------------ */
-PRE(sys_ioctl)
+PRE(ioctl)
{
*flags |= SfMayBlock;
- PRINT("sys_ioctl ( %ld, 0x%lx, %#lx )",ARG1,ARG2,ARG3);
+ PRINT("ioctl ( %ld, 0x%lx, %#lx )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "ioctl",
unsigned int, fd, unsigned int, request, unsigned long, arg);
@@ -857,7 +857,7 @@
}
-POST(sys_ioctl)
+POST(ioctl)
{
vg_assert(SUCCESS);
switch (ARG2 /* request */) {
@@ -1008,14 +1008,14 @@
#undef F
}
-PRE(sys_fcntl)
+PRE(fcntl)
{
switch (ARG2) {
// These ones ignore ARG3.
case VKI_F_GETFD:
case VKI_F_GETFL:
case VKI_F_GETOWN:
- PRINT("sys_fcntl ( %ld, %ld )", ARG1,ARG2);
+ PRINT("fcntl ( %ld, %ld )", ARG1,ARG2);
PRE_REG_READ2(long, "fcntl", unsigned int, fd, unsigned int, cmd);
break;
@@ -1024,7 +1024,7 @@
case VKI_F_SETFD:
case VKI_F_SETFL:
case VKI_F_SETOWN:
- PRINT("sys_fcntl[ARG3=='arg'] ( %ld, %ld, %ld )", ARG1,ARG2,ARG3);
+ PRINT("fcntl[ARG3=='arg'] ( %ld, %ld, %ld )", ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "fcntl",
unsigned int, fd, unsigned int, cmd, unsigned long, arg);
break;
@@ -1033,7 +1033,7 @@
case VKI_F_GETLK:
case VKI_F_SETLK:
case VKI_F_SETLKW:
- PRINT("sys_fcntl[ARG3=='lock'] ( %ld, %ld, %#lx )", ARG1,ARG2,ARG3);
+ PRINT("fcntl[ARG3=='lock'] ( %ld, %ld, %#lx )", ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "fcntl",
unsigned int, fd, unsigned int, cmd,
struct flock64 *, lock);
@@ -1050,13 +1050,13 @@
case VKI_F_FREEZE_FS:
case VKI_F_THAW_FS:
case VKI_F_GLOBAL_NOCACHE:
- PRINT("sys_fcntl ( %ld, %s )", ARG1, name_for_fcntl(ARG1));
+ PRINT("fcntl ( %ld, %s )", ARG1, name_for_fcntl(ARG1));
PRE_REG_READ2(long, "fcntl", unsigned int, fd, unsigned int, cmd);
break;
// struct fstore
case VKI_F_PREALLOCATE:
- PRINT("sys_fcntl ( %ld, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
+ PRINT("fcntl ( %ld, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
PRE_REG_READ3(long, "fcntl",
unsigned int, fd, unsigned int, cmd,
struct fstore *, fstore);
@@ -1077,7 +1077,7 @@
// off_t
case VKI_F_SETSIZE:
- PRINT("sys_fcntl ( %ld, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
+ PRINT("fcntl ( %ld, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
PRE_REG_READ3(long, "fcntl",
unsigned int, fd, unsigned int, cmd,
vki_off_t *, offset);
@@ -1085,7 +1085,7 @@
// struct radvisory
case VKI_F_RDADVISE:
- PRINT("sys_fcntl ( %ld, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
+ PRINT("fcntl ( %ld, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
PRE_REG_READ3(long, "fcntl",
unsigned int, fd, unsigned int, cmd,
struct vki_radvisory *, radvisory);
@@ -1101,7 +1101,7 @@
// struct fbootstraptransfer
case VKI_F_READBOOTSTRAP:
case VKI_F_WRITEBOOTSTRAP:
- PRINT("sys_fcntl ( %ld, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
+ PRINT("fcntl ( %ld, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
PRE_REG_READ3(long, "fcntl",
unsigned int, fd, unsigned int, cmd,
struct fbootstraptransfer *, bootstrap);
@@ -1111,7 +1111,7 @@
// struct log2phys (out)
case VKI_F_LOG2PHYS:
- PRINT("sys_fcntl ( %ld, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
+ PRINT("fcntl ( %ld, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
PRE_REG_READ3(long, "fcntl",
unsigned int, fd, unsigned int, cmd,
struct log2phys *, l2p);
@@ -1121,7 +1121,7 @@
// char[maxpathlen] (out)
case VKI_F_GETPATH:
- PRINT("sys_fcntl ( %ld, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
+ PRINT("fcntl ( %ld, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
PRE_REG_READ3(long, "fcntl",
unsigned int, fd, unsigned int, cmd,
char *, pathbuf);
@@ -1131,7 +1131,7 @@
// char[maxpathlen] (in)
case VKI_F_PATHPKG_CHECK:
- PRINT("sys_fcntl ( %ld, %s, %#lx '%s')", ARG1, name_for_fcntl(ARG2), ARG3,
+ PRINT("fcntl ( %ld, %s, %#lx '%s')", ARG1, name_for_fcntl(ARG2), ARG3,
(char *)ARG3);
PRE_REG_READ3(long, "fcntl",
unsigned int, fd, unsigned int, cmd,
@@ -1140,7 +1140,7 @@
break;
case VKI_F_ADDSIGS: /* Add detached signatures (for code signing) */
- PRINT("sys_fcntl ( %ld, %s )", ARG1, name_for_fcntl(ARG2));
+ PRINT("fcntl ( %ld, %s )", ARG1, name_for_fcntl(ARG2));
PRE_REG_READ3(long, "fcntl",
unsigned int, fd, unsigned int, cmd,
vki_fsignatures_t *, sigs);
@@ -1159,13 +1159,13 @@
break;
default:
- PRINT("sys_fcntl ( %ld, %ld [??] )", ARG1, ARG2);
+ PRINT("fcntl ( %ld, %ld [??] )", ARG1, ARG2);
VG_(printf)("UNKNOWN fcntl %ld!", ARG2);
break;
}
}
-POST(sys_fcntl)
+POST(fcntl)
{
vg_assert(SUCCESS);
switch (ARG2) {
@@ -1212,84 +1212,13 @@
}
}
-// XXX: wrapper only suitable for 32-bit systems
-PRE(sys_fcntl64)
-{
- switch (ARG2) {
- // These ones ignore ARG3.
- case VKI_F_GETFD:
- case VKI_F_GETFL:
- case VKI_F_GETOWN:
- PRINT("sys_fcntl64 ( %ld, %ld )", ARG1,ARG2);
- PRE_REG_READ2(long, "fcntl64", unsigned int, fd, unsigned int, cmd);
- break;
-
- // These ones use ARG3 as "arg".
- case VKI_F_DUPFD:
- case VKI_F_SETFD:
- case VKI_F_SETFL:
- case VKI_F_SETOWN:
- PRINT("sys_fcntl64[ARG3=='arg'] ( %ld, %ld, %ld )", ARG1,ARG2,ARG3);
- PRE_REG_READ3(long, "fcntl64",
- unsigned int, fd, unsigned int, cmd, unsigned long, arg);
- break;
-
- // These ones use ARG3 as "lock".
- case VKI_F_GETLK:
- case VKI_F_SETLK:
- case VKI_F_SETLKW:
- PRINT("sys_fcntl64[ARG3=='lock'] ( %ld, %ld, %#lx )", ARG1,ARG2,ARG3);
- PRE_REG_READ3(long, "fcntl64",
- unsigned int, fd, unsigned int, cmd,
- struct flock64 *, lock);
- if (ARG2 == VKI_F_SETLKW)
- *flags |= SfMayBlock;
- break;
-
- default:
- I_die_here; // DDD: do something better here
- break;
- }
-}
-
-POST(sys_fcntl64)
-{
- vg_assert(SUCCESS);
- switch (ARG2) {
- case VKI_F_DUPFD:
- if (!ML_(fd_allowed)(RES, "fcntl64(DUPFD)", tid, True)) {
- VG_(close)(RES);
- SET_STATUS_Failure( VKI_EMFILE );
- } else {
- if (VG_(clo_track_fds))
- ML_(record_fd_open_named)(tid, RES);
- }
- break;
-
- case VKI_F_GETFD:
- case VKI_F_GETFL:
- case VKI_F_GETOWN:
- case VKI_F_SETFD:
- case VKI_F_SETFL:
- case VKI_F_SETOWN:
- case VKI_F_GETLK:
- case VKI_F_SETLK:
- case VKI_F_SETLKW:
- break;
-
- default:
- I_die_here; // DDD: do something better here
- break;
- }
-}
-
/* ---------------------------------------------------------------------
unix syscalls
------------------------------------------------------------------ */
-PRE(sys_futimes)
+PRE(futimes)
{
- PRINT("sys_futimes ( %ld, %#lx )", ARG1,ARG2);
+ PRINT("futimes ( %ld, %#lx )", ARG1,ARG2);
PRE_REG_READ2(long, "futimes", int, fd, struct timeval *, tvp);
if (ARG2 != 0) {
PRE_timeval_READ( "futimes(tvp[0])", ARG2 );
@@ -1297,66 +1226,66 @@
}
}
-PRE(sys_semget)
+PRE(semget)
{
- PRINT("sys_semget ( %ld, %ld, %ld )",ARG1,ARG2,ARG3);
+ PRINT("semget ( %ld, %ld, %ld )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "semget", vki_key_t, key, int, nsems, int, semflg);
}
-PRE(sys_semop)
+PRE(semop)
{
*flags |= SfMayBlock;
- PRINT("sys_semop ( %ld, %#lx, %lu )",ARG1,ARG2,ARG3);
+ PRINT("semop ( %ld, %#lx, %lu )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "semop",
int, semid, struct sembuf *, sops, vki_size_t, nsoops);
ML_(generic_PRE_sys_semop)(tid, ARG1,ARG2,ARG3);
}
-PRE(sys_semctl)
+PRE(semctl)
{
switch (ARG3) {
case VKI_IPC_STAT:
case VKI_IPC_SET:
- PRINT("sys_semctl ( %ld, %ld, %ld, %#lx )",ARG1,ARG2,ARG3,ARG4);
+ PRINT("semctl ( %ld, %ld, %ld, %#lx )",ARG1,ARG2,ARG3,ARG4);
PRE_REG_READ4(long, "semctl",
int, semid, int, semnum, int, cmd, struct semid_ds *, arg);
break;
case VKI_GETALL:
case VKI_SETALL:
- PRINT("sys_semctl ( %ld, %ld, %ld, %#lx )",ARG1,ARG2,ARG3,ARG4);
+ PRINT("semctl ( %ld, %ld, %ld, %#lx )",ARG1,ARG2,ARG3,ARG4);
PRE_REG_READ4(long, "semctl",
int, semid, int, semnum, int, cmd, unsigned short *, arg);
break;
case VKI_SETVAL:
- PRINT("sys_semctl ( %ld, %ld, %ld, %#lx )",ARG1,ARG2,ARG3,ARG4);
+ PRINT("semctl ( %ld, %ld, %ld, %#lx )",ARG1,ARG2,ARG3,ARG4);
PRE_REG_READ4(long, "semctl",
int, semid, int, semnum, int, cmd, int, arg);
break;
default:
- PRINT("sys_semctl ( %ld, %ld, %ld )",ARG1,ARG2,ARG3);
+ PRINT("semctl ( %ld, %ld, %ld )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "semctl",
int, semid, int, semnum, int, cmd);
break;
}
ML_(generic_PRE_sys_semctl)(tid, ARG1,ARG2,ARG3,ARG4);
}
-POST(sys_semctl)
+POST(semctl)
{
ML_(generic_POST_sys_semctl)(tid, RES,ARG1,ARG2,ARG3,ARG4);
}
-PRE(sys_sem_open)
+PRE(sem_open)
{
if (ARG2 & VKI_O_CREAT) {
// 4-arg version
- PRINT("sys_sem_open ( %#lx(%s), %ld, %ld, %ld )",
+ PRINT("sem_open ( %#lx(%s), %ld, %ld, %ld )",
ARG1,(char*)ARG1,ARG2,ARG3,ARG4);
PRE_REG_READ4(vki_sem_t *, "sem_open",
const char *, name, int, oflag, vki_mode_t, mode,
unsigned int, value);
} else {
// 2-arg version
- PRINT("sys_sem_open ( %#lx(%s), %ld )",ARG1,(char*)ARG1,ARG2);
+ PRINT("sem_open ( %#lx(%s), %ld )",ARG1,(char*)ARG1,ARG2);
PRE_REG_READ2(vki_sem_t *, "sem_open",
const char *, name, int, oflag);
}
@@ -1366,34 +1295,34 @@
*flags |= SfMayBlock;
}
-PRE(sys_sem_close)
+PRE(sem_close)
{
PRINT("sem_close( %#lx )", ARG1);
PRE_REG_READ1(int, "sem_close", vki_sem_t *, sem);
}
-PRE(sys_sem_unlink)
+PRE(sem_unlink)
{
PRINT("sem_unlink( %#lx(%s) )", ARG1,(char*)ARG1);
PRE_REG_READ1(int, "sem_unlink", const char *, name);
PRE_MEM_RASCIIZ( "sem_unlink(name)", ARG1 );
}
-PRE(sys_sem_post)
+PRE(sem_post)
{
PRINT("sem_post( %#lx )", ARG1);
PRE_REG_READ1(int, "sem_post", vki_sem_t *, sem);
*flags |= SfMayBlock;
}
-PRE(sys_sem_destroy)
+PRE(sem_destroy)
{
PRINT("sem_destroy( %#lx )", ARG1);
PRE_REG_READ1(int, "sem_destroy", vki_sem_t *, sem);
PRE_MEM_READ("sem_destroy(sem)", ARG1, sizeof(vki_sem_t));
}
-PRE(sys_sem_init)
+PRE(sem_init)
{
PRINT("sem_init( %#lx, %ld, %ld )", ARG1, ARG2, ARG3);
PRE_REG_READ3(int, "sem_init", vki_sem_t *, sem,
@@ -1401,38 +1330,31 @@
PRE_MEM_WRITE("sem_init(sem)", ARG1, sizeof(vki_sem_t));
}
-POST(sys_sem_init)
+POST(sem_init)
{
POST_MEM_WRITE(ARG1, sizeof(vki_sem_t));
}
-PRE(sys_sem_wait)
+PRE(sem_wait)
{
PRINT("sem_wait( %#lx )", ARG1);
PRE_REG_READ1(int, "sem_wait", vki_sem_t *, sem);
*flags |= SfMayBlock;
}
-PRE(sys_sem_wait_nocancel)
+PRE(sem_trywait)
{
- PRINT("sem_wait_nocancel( %#lx )", ARG1);
- PRE_REG_READ1(int, "sem_wait_nocancel", vki_sem_t *, sem);
- *flags |= SfMayBlock;
-}
-
-PRE(sys_sem_trywait)
-{
PRINT("sem_trywait( %#lx )", ARG1);
PRE_REG_READ1(int, "sem_trywait", vki_sem_t *, sem);
*flags |= SfMayBlock;
}
-PRE(sys_kqueue)
+PRE(kqueue)
{
PRINT("kqueue()");
}
-POST(sys_kqueue)
+POST(kqueue)
{
if (!ML_(fd_allowed)(RES, "kqueue", tid, True)) {
VG_(close)(RES);
@@ -1444,7 +1366,7 @@
}
}
-PRE(sys_kevent)
+PRE(kevent)
{
PRINT("kevent( %ld, %#lx, %ld, %#lx, %ld, %#lx )",
ARG1, ARG2, ARG3, ARG4, ARG5, ARG6);
@@ -1463,7 +1385,7 @@
*flags |= SfMayBlock;
}
-POST(sys_kevent)
+POST(kevent)
{
PRINT("kevent ret %ld dst %#lx (%zu)", RES, ARG4, sizeof(struct vki_kevent));
if (RES > 0) POST_MEM_WRITE(ARG4, RES * sizeof(struct vki_kevent));
@@ -1474,7 +1396,7 @@
Addr wqthread_starter = 0;
SizeT pthread_structsize = 0;
-PRE(sys_bsdthread_register)
+PRE(bsdthread_register)
{
PRINT("bsdthread_register( %#lx, %#lx, %lu )", ARG1, ARG2, ARG3);
PRE_REG_READ3(int,"__bsdthread_register", void *,"threadstart",
@@ -1487,7 +1409,7 @@
ARG2 = (Word)&wqthread_hijack_asm;
}
-PRE(sys_workq_open)
+PRE(workq_open)
{
PRINT("workq_open()");
PRE_REG_READ0(int, "workq_open");
@@ -1507,7 +1429,7 @@
}
-PRE(sys_workq_ops)
+PRE(workq_ops)
{
PRINT("workq_ops( %ld(%s), %#lx, %ld )", ARG1, workqop_name(ARG1), ARG2,
ARG3);
@@ -1543,8 +1465,7 @@
break;
}
}
-
-POST(sys_workq_ops)
+POST(workq_ops)
{
ThreadState *tst = VG_(get_ThreadState)(tid);
tst->os_state.wq_jmpbuf_valid = False;
@@ -1552,7 +1473,7 @@
-PRE(sys___mac_syscall)
+PRE(__mac_syscall)
{
PRINT("__mac_syscall( %#lx, %ld, %#lx )", ARG1, ARG2, ARG3);
PRE_REG_READ3(int,"__mac_syscall", char *,"policy",
@@ -1563,9 +1484,9 @@
}
-/* Not syswrap-generic's sys_exit, which exits only one thread.
+/* Not like syswrap-generic's sys_exit, which exits only one thread.
More like syswrap-generic's sys_exit_group. */
-PRE(sys_exit)
+PRE(exit)
{
ThreadId t;
ThreadState* tst;
@@ -1596,9 +1517,9 @@
}
-PRE(sys_sigaction)
+PRE(sigaction)
{
- PRINT("sys_sigaction ( %ld, %#lx, %#lx )", ARG1,ARG2,ARG3);
+ PRINT("sigaction ( %ld, %#lx, %#lx )", ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "sigaction",
int, signum, vki_sigaction_toK_t *, act,
vki_sigaction_fromK_t *, oldact);
@@ -1621,7 +1542,7 @@
(vki_sigaction_fromK_t *)ARG3)
);
}
-POST(sys_sigaction)
+POST(sigaction)
{
vg_assert(SUCCESS);
if (RES == 0 && ARG3 != 0)
@@ -1629,7 +1550,7 @@
}
-PRE(sys___pthread_sigmask)
+PRE(__pthread_sigmask)
{
// GrP fixme
// JRS: arguments are identical to sigprocmask
@@ -1644,7 +1565,7 @@
}
-PRE(sys___pthread_canceled)
+PRE(__pthread_canceled)
{
*flags |= SfMayBlock; /* might kill this thread??? */
/* I don't think so -- I think it just changes the cancellation
@@ -1654,7 +1575,7 @@
}
-PRE(sys___pthread_markcancel)
+PRE(__pthread_markcancel)
{
*flags |= SfMayBlock; /* might kill this thread??? */
PRINT("__pthread_markcancel ( %#lx )", ARG1);
@@ -1663,7 +1584,7 @@
}
-PRE(sys___disable_threadsignal)
+PRE(__disable_threadsignal)
{
vki_sigset_t set;
PRINT("__disable_threadsignal(%ld, %ld, %ld)", ARG1, ARG2, ARG3);
@@ -1683,7 +1604,7 @@
}
-PRE(sys_kdebug_trace)
+PRE(kdebug_trace)
{
PRINT("kdebug_trace(%ld, %ld, %ld, %ld, %ld, %ld)",
ARG1, ARG2, ARG3, ARG4, ARG5, ARG6);
@@ -1694,20 +1615,20 @@
}
-PRE(sys_seteuid)
+PRE(seteuid)
{
PRINT("seteuid(%ld)", ARG1);
PRE_REG_READ1(long, "seteuid", vki_uid_t, "uid");
}
-PRE(sys_setegid)
+PRE(setegid)
{
PRINT("setegid(%ld)", ARG1);
PRE_REG_READ1(long, "setegid", vki_uid_t, "uid");
}
-PRE(sys_settid)
+PRE(settid)
{
PRINT("settid(%ld, %ld)", ARG1, ARG2);
PRE_REG_READ2(long, "settid", vki_uid_t, "uid", vki_gid_t, "gid");
@@ -1716,7 +1637,7 @@
/* XXX need to check whether we need POST operations for
* waitevent, watchevent, modwatch -- jpeach
*/
-PRE(sys_watchevent)
+PRE(watchevent)
{
PRINT("watchevent(%#lx, %#lx)", ARG1, ARG2);
PRE_REG_READ2(long, "watchevent",
@@ -1728,7 +1649,7 @@
}
#define WAITEVENT_FAST_POLL ((Addr)(struct timeval *)-1)
-PRE(sys_waitevent)
+PRE(waitevent)
{
PRINT("waitevent(%#lx, %#lx)", ARG1, ARG2);
PRE_REG_READ2(long, "waitevent",
@@ -1743,12 +1664,12 @@
*flags |= SfMayBlock;
}
-POST(sys_waitevent)
+POST(waitevent)
{
POST_MEM_WRITE(ARG1, sizeof(vki_eventreq));
}
-PRE(sys_modwatch)
+PRE(modwatch)
{
PRINT("modwatch(%#lx, %#lx)", ARG1, ARG2);
PRE_REG_READ2(long, "modwatch",
@@ -1758,7 +1679,7 @@
PRE_MEM_READ("modwatch(eventmask)", ARG2, sizeof(unsigned int));
}
-PRE(sys_getxattr)
+PRE(getxattr)
{
PRINT("getxattr(%#lx(%s), %#lx(%s), %#lx, %lu, %lu, %ld)",
ARG1, (char *)ARG1, ARG2, (char *)ARG2, ARG3, ARG4, ARG5, ARG6);
@@ -1771,13 +1692,13 @@
PRE_MEM_WRITE( "getxattr(value)", ARG3, ARG4);
}
-POST(sys_getxattr)
+POST(getxattr)
{
vg_assert((vki_ssize_t)RES >= 0);
POST_MEM_WRITE(ARG3, (vki_ssize_t)RES);
}
-PRE(sys_fgetxattr)
+PRE(fgetxattr)
{
PRINT("fgetxattr(%ld, %#lx(%s), %#lx, %lu, %lu, %ld)",
ARG1, ARG2, (char *)ARG2, ARG3, ARG4, ARG5, ARG6);
@@ -1789,13 +1710,13 @@
PRE_MEM_WRITE( "getxattr(value)", ARG3, ARG4);
}
-POST(sys_fgetxattr)
+POST(fgetxattr)
{
vg_assert((vki_ssize_t)RES >= 0);
POST_MEM_WRITE(ARG3, (vki_ssize_t)RES);
}
-PRE(sys_setxattr)
+PRE(setxattr)
{
PRINT("setxattr ( %#lx(%s), %#lx(%s), %#lx, %lu, %lu, %ld )",
ARG1, (char *)ARG1, ARG2, (char*)ARG2, ARG3, ARG4, ARG5, ARG6 );
@@ -1809,7 +1730,7 @@
}
-PRE(sys_fsetxattr)
+PRE(fsetxattr)
{
PRINT( "fsetxattr ( %ld, %#lx(%s), %#lx, %lu, %lu, %ld )",
ARG1, ARG2, (char*)ARG2, ARG3, ARG4, ARG5, ARG6 );
@@ -1822,7 +1743,7 @@
}
-PRE(sys_listxattr)
+PRE(listxattr)
{
PRINT( "listxattr ( %#lx(%s), %#lx, %lu, %ld )",
ARG1, (char *)ARG1, ARG2, ARG3, ARG4 );
@@ -1834,7 +1755,7 @@
PRE_MEM_WRITE( "listxattr(namebuf)", ARG2, ARG3 );
*flags |= SfMayBlock;
}
-POST(sys_listxattr)
+POST(listxattr)
{
vg_assert(SUCCESS);
vg_assert((vki_ssize_t)RES >= 0);
@@ -1842,7 +1763,7 @@
}
-PRE(sys_flistxattr)
+PRE(flistxattr)
{
PRINT( "flistxattr ( %ld, %#lx, %lu, %ld )",
ARG1, ARG2, ARG3, ARG4 );
@@ -1852,33 +1773,32 @@
PRE_MEM_WRITE( "flistxattr(namebuf)", ARG2, ARG3 );
*flags |= SfMayBlock;
}
-POST(sys_flistxattr)
+POST(flistxattr)
{
vg_assert(SUCCESS);
vg_assert((vki_ssize_t)RES >= 0);
POST_MEM_WRITE( ARG2, (vki_ssize_t)RES );
}
-PRE(sys_shmget)
+PRE(shmget)
{
- PRINT("sys_shmget ( %ld, %ld, %ld )",ARG1,ARG2,ARG3);
+ PRINT("shmget ( %ld, %ld, %ld )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "shmget", vki_key_t, key, vki_size_t, size, int, shmflg);
}
-PRE(sys_shmctl)
+PRE(shmctl)
{
- PRINT("sys_shmctl ( %ld, %ld, %#lx )",ARG1,ARG2,ARG3);
+ PRINT("shmctl ( %ld, %ld, %#lx )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "shmctl",
int, shmid, int, cmd, struct vki_shmid_ds *, buf);
ML_(generic_PRE_sys_shmctl)(tid, ARG1,ARG2,ARG3);
}
-
-POST(sys_shmctl)
+POST(shmctl)
{
ML_(generic_POST_sys_shmctl)(tid, RES,ARG1,ARG2,ARG3);
}
-PRE(sys_shm_open)
+PRE(shm_open)
{
PRINT("shm_open(%#lx(%s), %ld, %ld)", ARG1, (char *)ARG1, ARG2, ARG3);
PRE_REG_READ3(long, "shm_open",
@@ -1888,8 +1808,7 @@
*flags |= SfMayBlock;
}
-
-POST(sys_shm_open)
+POST(shm_open)
{
vg_assert(SUCCESS);
if (!ML_(fd_allowed)(RES, "shm_open", tid, True)) {
@@ -1902,19 +1821,19 @@
}
-PRE(sys_statx)
+PRE(stat_extended)
{
- PRINT("statx( %#lx(%s), %#lx, %#lx, %#lx )",
+ PRINT("stat_extended( %#lx(%s), %#lx, %#lx, %#lx )",
ARG1, (char *)ARG1, ARG2, ARG3, ARG4);
- PRE_REG_READ4(int, "statx", char *, file_name, struct stat *, buf,
+ PRE_REG_READ4(int, "stat_extended", char *, file_name, struct stat *, buf,
void *, fsacl, vki_size_t *, fsacl_size);
- PRE_MEM_RASCIIZ( "statx(file_name)", ARG1 );
- PRE_MEM_READ( "statx(fsacl_size)", ARG4, sizeof(vki_size_t) );
- PRE_MEM_WRITE( "statx(buf)", ARG2, sizeof(struct vki_stat) );
- PRE_MEM_WRITE( "statx(fsacl_size)", ARG4, sizeof(vki_size_t) );
- PRE_MEM_WRITE( "statx(fsacl)", ARG3, *(vki_size_t *)ARG4 );
+ PRE_MEM_RASCIIZ( "stat_extended(file_name)", ARG1 );
+ PRE_MEM_READ( "stat_extended(fsacl_size)", ARG4, sizeof(vki_size_t) );
+ PRE_MEM_WRITE( "stat_extended(buf)", ARG2, sizeof(struct vki_stat) );
+ PRE_MEM_WRITE( "stat_extended(fsacl_size)", ARG4, sizeof(vki_size_t) );
+ PRE_MEM_WRITE( "stat_extended(fsacl)", ARG3, *(vki_size_t *)ARG4 );
}
-POST(sys_statx)
+POST(stat_extended)
{
POST_MEM_WRITE( ARG2, sizeof(struct vki_stat) );
POST_MEM_WRITE( ARG4, sizeof(vki_size_t) );
@@ -1922,11 +1841,11 @@
}
-PRE(sys_fchmod_extended)
+PRE(fchmod_extended)
{
/* Note: this is not really correct. Handling of
- sys_chmod_extended is broken in the same way. */
- PRINT("sys_fchmod_extended ( %ld, %ld, %ld, %ld, %#lx )",
+ chmod_extended is broken in the same way. */
+ PRINT("fchmod_extended ( %ld, %ld, %ld, %ld, %#lx )",
ARG1, ARG2, ARG3, ARG4, ARG5);
PRE_REG_READ5(long, "fchmod",
unsigned int, fildes,
@@ -1940,11 +1859,11 @@
sizeof(struct kauth_filesec) );
}
-PRE(sys_chmod_extended)
+PRE(chmod_extended)
{
/* Note: this is not really correct. Handling of
- sys_fchmod_extended is broken in the same way. */
- PRINT("sys_chmod_extended ( %#lx(%s), %ld, %ld, %ld, %#lx )",
+ fchmod_extended is broken in the same way. */
+ PRINT("chmod_extended ( %#lx(%s), %ld, %ld, %ld, %#lx )",
ARG1, ARG1 ? (HChar*)ARG1 : "(null)", ARG2, ARG3, ARG4, ARG5);
PRE_REG_READ5(long, "chmod",
unsigned int, fildes,
@@ -1960,75 +1879,59 @@
}
-PRE(sys_accessx)
+PRE(chflags)
{
- // GrP fixme difficult
-}
-
-POST(sys_accessx)
-{
- // GrP fixme
-}
-
-PRE(sys_chflags)
-{
- PRINT("sys_chflags ( %#lx(%s), %lu )", ARG1, (char *)ARG1, ARG2);
+ PRINT("chflags ( %#lx(%s), %lu )", ARG1, (char *)ARG1, ARG2);
PRE_REG_READ2(int, "chflags", const char *,path, unsigned int,flags);
PRE_MEM_RASCIIZ("chflags(path)", ARG1);
// GrP fixme sanity-check flags value?
}
-PRE(sys_fchflags)
+PRE(fchflags)
{
- PRINT("sys_fchflags ( %ld, %lu )", ARG1, ARG2);
+ PRINT("fchflags ( %ld, %lu )", ARG1, ARG2);
PRE_REG_READ2(int, "fchflags", int,fd, unsigned int,flags);
// GrP fixme sanity-check flags value?
}
-POST(sys_stat64)
+PRE(stat64)
{
- POST_MEM_WRITE( ARG2, sizeof(struct vki_stat64) );
-}
-
-PRE(sys_stat64)
-{
- PRINT("sys_stat64 ( %#lx(%s), %#lx )", ARG1, (char *)ARG1, ARG2);
+ PRINT("stat64 ( %#lx(%s), %#lx )", ARG1, (char *)ARG1, ARG2);
PRE_REG_READ2(long, "stat", const char *,path, struct stat64 *,buf);
PRE_MEM_RASCIIZ("stat64(path)", ARG1);
PRE_MEM_WRITE( "stat64(buf)", ARG2, sizeof(struct vki_stat64) );
}
-
-
-POST(sys_lstat64)
+POST(stat64)
{
POST_MEM_WRITE( ARG2, sizeof(struct vki_stat64) );
}
-PRE(sys_lstat64)
+PRE(lstat64)
{
- PRINT("sys_lstat64 ( %#lx(%s), %#lx )", ARG1, (char *)ARG1, ARG2);
+ PRINT("lstat64 ( %#lx(%s), %#lx )", ARG1, (char *)ARG1, ARG2);
PRE_REG_READ2(long, "stat", const char *,path, struct stat64 *,buf);
PRE_MEM_RASCIIZ("lstat64(path)", ARG1);
PRE_MEM_WRITE( "lstat64(buf)", ARG2, sizeof(struct vki_stat64) );
}
-
-
-POST(sys_fstat64)
+POST(lstat64)
{
POST_MEM_WRITE( ARG2, sizeof(struct vki_stat64) );
}
-PRE(sys_fstat64)
+PRE(fstat64)
{
- PRINT("sys_fstat64 ( %ld, %#lx )", ARG1,ARG2);
+ PRINT("fstat64 ( %ld, %#lx )", ARG1,ARG2);
PRE_REG_READ2(long, "fstat", unsigned int, fd, struct stat64 *, buf);
PRE_MEM_WRITE( "fstat64(buf)", ARG2, sizeof(struct vki_stat64) );
}
+POST(fstat64)
+{
+ POST_MEM_WRITE( ARG2, sizeof(struct vki_stat64) );
+}
-
-PRE(sys_getfsstat)
+PRE(getfsstat)
{
PRINT("getfsstat(%#lx, %ld, %ld)", ARG1, ARG2, ARG3);
PRE_REG_READ3(int, "getfsstat", struct vki_statfs *, buf,
@@ -2039,7 +1942,7 @@
}
}
-POST(sys_getfsstat)
+POST(getfsstat)
{
if (ARG1) {
// RES is a STRUCT COUNT
@@ -2201,7 +2104,7 @@
PRE_MEM_READ("setattrlist(attrBuf value)", (Addr)attrData, attrDataSize);
}
-PRE(sys_getattrlist)
+PRE(getattrlist)
{
PRINT("getattrlist(%#lx(%s), %#lx, %#lx, %lu, %lu)",
ARG1, (char *)ARG1, ARG2, ARG3, ARG4, ARG5);
@@ -2213,7 +2116,7 @@
PRE_MEM_WRITE("getattrlist(attrBuf)", ARG3, ARG4);
}
-POST(sys_getattrlist)
+POST(getattrlist)
{
if (ARG4 > sizeof(vki_uint32_t)) {
// attrBuf is uint32_t bytes written followed by attr data
@@ -2224,7 +2127,7 @@
}
-PRE(sys_setattrlist)
+PRE(setattrlist)
{
PRINT("setattrlist(%#lx(%s), %#lx, %#lx, %lu, %lu)",
ARG1, (char *)ARG1, ARG2, ARG3, ARG4, ARG5);
@@ -2237,7 +2140,7 @@
}
-PRE(sys_getdirentriesattr)
+PRE(getdirentriesattr)
{
PRINT("getdirentriesattr(%ld, %#lx, %#lx, %ld, %#lx, %#lx, %#lx, %ld)",
ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7, ARG8);
@@ -2255,7 +2158,7 @@
PRE_MEM_WRITE("getdirentriesattr(newState)", ARG7, sizeof(unsigned int));
}
-POST(sys_getdirentriesattr)
+POST(getdirentriesattr)
{
char *p, *end;
unsigned int count;
@@ -2280,7 +2183,7 @@
}
-PRE(sys_fsctl)
+PRE(fsctl)
{
PRINT("fsctl ( %#lx(%s), %ld, %#lx, %ld )",
ARG1, (char *)ARG1, ARG2, ARG3, ARG4);
@@ -2321,7 +2224,7 @@
}
}
-POST(sys_fsctl)
+POST(fsctl)
{
switch (ARG2) {
case VKI_afpfsByteRangeLock2FSCTL: {
@@ -2339,9 +2242,9 @@
}
}
-PRE(sys_initgroups)
+PRE(initgroups)
{
- PRINT("sys_initgroups(%s, %#lx, %lu)", (char *)ARG1, ARG2, ARG3);
+ PRINT("initgroups(%s, %#lx, %lu)", (char *)ARG1, ARG2, ARG3);
PRE_REG_READ3(long, "initgroups",
int, setlen, vki_gid_t *, gidset, vki_uid_t, gmuid);
PRE_MEM_READ("gidset", ARG2, ARG1 * sizeof(vki_gid_t));
@@ -2390,7 +2293,7 @@
}
return VG_(mk_SysRes_Success)(0);
}
-PRE(sys_posix_spawn)
+PRE(posix_spawn)
{
Char* path = NULL; /* path to executable */
Char** envp = NULL;
@@ -2406,7 +2309,7 @@
char** argv
char** envp
*/
- PRINT("sys_posix_spawn( %#lx, %#lx(%s), %#lx, %#lx, %#lx )",
+ PRINT("posix_spawn( %#lx, %#lx(%s), %#lx, %#lx, %#lx )",
ARG1, ARG2, ARG2 ? (HChar*)ARG2 : "(null)", ARG3, ARG4, ARG5 );
/* Standard pre-syscall checks */
@@ -2424,7 +2327,7 @@
"posix_spawn(envp[i])" );
if (0)
- VG_(printf)("sys_posix_spawn( %#lx, %#lx(%s), %#lx, %#lx, %#lx )\n",
+ VG_(printf)("posix_spawn( %#lx, %#lx(%s), %#lx, %#lx, %#lx )\n",
ARG1, ARG2, ARG2 ? (HChar*)ARG2 : "(null)", ARG3, ARG4, ARG5 );
/* Now follows a bunch of logic copied from PRE(sys_execve) in
@@ -2571,20 +2474,20 @@
/* not to mention .. */
*flags |= SfMayBlock;
}
-POST(sys_posix_spawn)
+POST(posix_spawn)
{
vg_assert(SUCCESS);
//POST_MEM_WRITE( ARG1, sizeof(vki_pid_t) );
}
-PRE(sys_socket)
+PRE(socket)
{
- PRINT("sys_socket ( %ld, %ld, %ld )",ARG1,ARG2,ARG3);
+ PRINT("socket ( %ld, %ld, %ld )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "socket", int, domain, int, type, int, protocol);
}
-POST(sys_socket)
+POST(socket)
{
SysRes r;
vg_assert(SUCCESS);
@@ -2593,9 +2496,9 @@
}
-PRE(sys_setsockopt)
+PRE(setsockopt)
{
- PRINT("sys_setsockopt ( %ld, %ld, %ld, %#lx, %ld )",
+ PRINT("setsockopt ( %ld, %ld, %ld, %#lx, %ld )",
ARG1,ARG2,ARG3,ARG4,ARG5);
PRE_REG_READ5(long, "setsockopt",
int, s, int, level, int, optname,
@@ -2604,11 +2507,11 @@
}
-PRE(sys_getsockopt)
+PRE(getsockopt)
{
Addr optval_p = ARG4;
Addr optlen_p = ARG5;
- PRINT("sys_getsockopt ( %ld, %ld, %ld, %#lx, %#lx )",
+ PRINT("getsockopt ( %ld, %ld, %ld, %#lx, %#lx )",
ARG1,ARG2,ARG3,ARG4,ARG5);
PRE_REG_READ5(long, "getsockopt",
int, s, int, level, int, optname,
@@ -2625,7 +2528,7 @@
// DDD: #warning GrP fixme darwin-specific sockopts
}
-POST(sys_getsockopt)
+POST(getsockopt)
{
Addr optval_p = ARG4;
Addr optlen_p = ARG5;
@@ -2639,26 +2542,26 @@
}
-PRE(sys_connect)
+PRE(connect)
{
*flags |= SfMayBlock;
- PRINT("sys_connect ( %ld, %#lx, %ld )",ARG1,ARG2,ARG3);
+ PRINT("connect ( %ld, %#lx, %ld )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "connect",
int, sockfd, struct sockaddr *, serv_addr, int, addrlen);
ML_(generic_PRE_sys_connect)(tid, ARG1,ARG2,ARG3);
}
-PRE(sys_accept)
+PRE(accept)
{
*flags |= SfMayBlock;
- PRINT("sys_accept ( %ld, %#lx, %ld )",ARG1,ARG2,ARG3);
+ PRINT("accept ( %ld, %#lx, %ld )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "accept",
int, s, struct sockaddr *, addr, int, *addrlen);
ML_(generic_PRE_sys_accept)(tid, ARG1,ARG2,ARG3);
}
-POST(sys_accept)
+POST(accept)
{
SysRes r;
vg_assert(SUCCESS);
@@ -2668,10 +2571,10 @@
}
-PRE(sys_sendto)
+PRE(sendto)
{
*flags |= SfMayBlock;
- PRINT("sys_sendto ( %ld, %s, %ld, %lu, %#lx, %ld )",
+ PRINT("sendto ( %ld, %s, %ld, %lu, %#lx, %ld )",
ARG1,(char *)ARG2,ARG3,ARG4,ARG5,ARG6);
PRE_REG_READ6(long, "sendto",
int, s, const void *, msg, int, len,
@@ -2680,10 +2583,10 @@
ML_(generic_PRE_sys_sendto)(tid, ARG1,ARG2,ARG3,ARG4,ARG5,ARG6);
}
-PRE(sys_sendfile)
+PRE(sendfile)
{
#if VG_WORDSIZE == 4
- PRINT("sys_sendfile(%ld, %ld, %llu, %#lx, %#lx, %ld)",
+ PRINT("sendfile(%ld, %ld, %llu, %#lx, %#lx, %ld)",
ARG1, ARG2, LOHI64(ARG3, ARG4), ARG5, ARG6, ARG7);
PRE_REG_READ7(long, "sendfile",
@@ -2693,7 +2596,7 @@
PRE_MEM_WRITE("sendfile(nwritten)", ARG5, sizeof(vki_uint64_t));
if (ARG6) PRE_MEM_WRITE("sendfile(sf_header)", ARG6, sizeof(struct sf_hdtr));
#else
- PRINT("sys_sendfile(%ld, %ld, %ld, %#lx, %#lx, %ld)",
+ PRINT("sendfile(%ld, %ld, %ld, %#lx, %#lx, %ld)",
ARG1, ARG2, ARG3, ARG4, ARG5, ARG6);
PRE_REG_READ6(long, "sendfile",
@@ -2706,8 +2609,7 @@
*flags |= SfMayBlock;
}
-
-POST(sys_sendfile)
+POST(sendfile)
{
#if VG_WORDSIZE == 4
POST_MEM_WRITE(ARG5, sizeof(vki_uint64_t));
@@ -2718,10 +2620,10 @@
#endif
}
-PRE(sys_recvfrom)
+PRE(recvfrom)
{
*flags |= SfMayBlock;
- PRINT("sys_recvfrom ( %ld, %#lx, %ld, %lu, %#lx, %#lx )",
+ PRINT("recvfrom ( %ld, %#lx, %ld, %lu, %#lx, %#lx )",
ARG1,ARG2,ARG3,ARG4,ARG5,ARG6);
PRE_REG_READ6(long, "recvfrom",
int, s, void *, buf, int, len, unsigned int, flags,
@@ -2729,7 +2631,7 @@
ML_(generic_PRE_sys_recvfrom)(tid, ARG1,ARG2,ARG3,ARG4,ARG5,ARG6);
}
-POST(sys_recvfrom)
+POST(recvfrom)
{
vg_assert(SUCCESS);
ML_(generic_POST_sys_recvfrom)(tid, VG_(mk_SysRes_Success)(RES),
@@ -2737,63 +2639,63 @@
}
-PRE(sys_sendmsg)
+PRE(sendmsg)
{
*flags |= SfMayBlock;
- PRINT("sys_sendmsg ( %ld, %#lx, %ld )",ARG1,ARG2,ARG3);
+ PRINT("sendmsg ( %ld, %#lx, %ld )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "sendmsg",
int, s, const struct msghdr *, msg, int, flags);
ML_(generic_PRE_sys_sendmsg)(tid, ARG1,ARG2);
}
-PRE(sys_recvmsg)
+PRE(recvmsg)
{
*flags |= SfMayBlock;
- PRINT("sys_recvmsg ( %ld, %#lx, %ld )",ARG1,ARG2,ARG3);
+ PRINT("recvmsg ( %ld, %#lx, %ld )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "recvmsg", int, s, struct msghdr *, msg, int, flags);
ML_(generic_PRE_sys_recvmsg)(tid, ARG1,ARG2);
}
-POST(sys_recvmsg)
+POST(recvmsg)
{
ML_(generic_POST_sys_recvmsg)(tid, ARG1,ARG2);
}
-PRE(sys_shutdown)
+PRE(shutdown)
{
*flags |= SfMayBlock;
- PRINT("sys_shutdown ( %ld, %ld )",ARG1,ARG2);
+ PRINT("shutdown ( %ld, %ld )",ARG1,ARG2);
PRE_REG_READ2(int, "shutdown", int, s, int, how);
}
-PRE(sys_bind)
+PRE(bind)
{
- PRINT("sys_bind ( %ld, %#lx, %ld )",ARG1,ARG2,ARG3);
+ PRINT("bind ( %ld, %#lx, %ld )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "bind",
int, sockfd, struct sockaddr *, my_addr, int, addrlen);
ML_(generic_PRE_sys_bind)(tid, ARG1,ARG2,ARG3);
}
-PRE(sys_listen)
+PRE(listen)
{
- PRINT("sys_listen ( %ld, %ld )",ARG1,ARG2);
+ PRINT("listen ( %ld, %ld )",ARG1,ARG2);
PRE_REG_READ2(long, "listen", int, s, int, backlog);
}
-PRE(sys_getsockname)
+PRE(getsockname)
{
- PRINT("sys_getsockname ( %ld, %#lx, %#lx )",ARG1,ARG2,ARG3);
+ PRINT("getsockname ( %ld, %#lx, %#lx )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "getsockname",
int, s, struct sockaddr *, name, int *, namelen);
ML_(generic_PRE_sys_getsockname)(tid, ARG1,ARG2,ARG3);
}
-POST(sys_getsockname)
+POST(getsockname)
{
vg_assert(SUCCESS);
ML_(generic_POST_sys_getsockname)(tid, VG_(mk_SysRes_Success)(RES),
@@ -2801,15 +2703,15 @@
}
-PRE(sys_getpeername)
+PRE(getpeername)
{
- PRINT("sys_getpeername ( %ld, %#lx, %#lx )",ARG1,ARG2,ARG3);
+ PRINT("getpeername ( %ld, %#lx, %#lx )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "getpeername",
int, s, struct sockaddr *, name, int *, namelen);
ML_(generic_PRE_sys_getpeername)(tid, ARG1,ARG2,ARG3);
}
-POST(sys_getpeername)
+POST(getpeername)
{
vg_assert(SUCCESS);
ML_(generic_POST_sys_getpeername)(tid, VG_(mk_SysRes_Success)(RES),
@@ -2817,15 +2719,15 @@
}
-PRE(sys_socketpair)
+PRE(socketpair)
{
- PRINT("sys_socketpair ( %ld, %ld, %ld, %#lx )",ARG1,ARG2,ARG3,ARG4);
+ PRINT("socketpair ( %ld, %ld, %ld, %#lx )",ARG1,ARG2,ARG3,ARG4);
PRE_REG_READ4(long, "socketpair",
int, d, int, type, int, protocol, int *, sv);
ML_(generic_PRE_sys_socketpair)(tid, ARG1,ARG2,ARG3,ARG4);
}
-POST(sys_socketpair)
+POST(socketpair)
{
vg_assert(SUCCESS);
ML_(generic_POST_sys_socketpair)(tid, VG_(mk_SysRes_Success)(RES),
@@ -2833,9 +2735,9 @@
}
-PRE(sys_gethostuuid)
+PRE(gethostuuid)
{
- PRINT("sys_gethostuuid ( %#lx, %#lx )", ARG1, ARG2);
+ PRINT("gethostuuid ( %#lx, %#lx )", ARG1, ARG2);
PRE_REG_READ2(int,"gethostuuid",
char *,"uuid_buf",
const struct vki_timespec *,"timeout");
@@ -2847,19 +2749,19 @@
}
-POST(sys_gethostuuid)
+POST(gethostuuid)
{
POST_MEM_WRITE(ARG1, 16);
}
/* Darwin pipe() returns the two descriptors in two registers. */
-PRE(sys_pipe)
+PRE(pipe)
{
- PRINT("sys_pipe ( )");
+ PRINT("pipe ( )");
PRE_REG_READ0(int, "pipe");
}
-POST(sys_pipe)
+POST(pipe)
{
Int p0, p1;
vg_assert(SUCCESS);
@@ -2880,7 +2782,7 @@
}
-PRE(sys_getlogin)
+PRE(getlogin)
{
PRINT("getlogin ( %#lx, %ld )", ARG1, ARG2);
PRE_REG_READ2(long, "getlogin",
@@ -2889,13 +2791,13 @@
PRE_MEM_WRITE("getlogin(namebuf)", ARG1, ARG2);
}
-POST(sys_getlogin)
+POST(getlogin)
{
POST_MEM_WRITE(ARG1, ARG2);
}
-PRE(sys_ptrace)
+PRE(ptrace)
{
PRINT("ptrace ( %ld, %ld, %#lx, %ld )", ARG1, ARG2, ARG3, ARG4);
PRE_REG_READ4(long, "ptrace",
@@ -2908,26 +2810,26 @@
}
-PRE(sys_issetugid)
+PRE(issetugid)
{
PRINT("issetugid ( )");
PRE_REG_READ0(long, "issetugid");
}
-PRE(sys_getdtablesize)
+PRE(getdtablesize)
{
PRINT("getdtablesize ( )");
PRE_REG_READ0(long, "getdtablesize");
}
-POST(sys_getdtablesize)
+POST(getdtablesize)
{
// Subtract Valgrind's fd range from client's dtable
if (RES > VG_(fd_hard_limit)) SET_STATUS_Success(VG_(fd_hard_limit));
}
-PRE(sys_lseek)
+PRE(lseek)
{
PRINT("lseek ( %ld, %ld, %ld )", ARG1,ARG2,ARG3);
PRE_REG_READ4(vki_off_t, "lseek",
@@ -2936,7 +2838,7 @@
}
-PRE(sys_pathconf)
+PRE(pathconf)
{
PRINT("pathconf(%#lx(%s), %ld)", ARG1,(char *)ARG1,ARG2);
PRE_REG_READ2(long,"pathconf", const char *,"path", int,"name");
@@ -2944,7 +2846,7 @@
}
-PRE(sys_fpathconf)
+PRE(fpathconf)
{
PRINT("fpathconf(%ld, %ld)", ARG1,ARG2);
PRE_REG_READ2(long,"fpathconf", int,"fd", int,"name");
@@ -2954,7 +2856,7 @@
}
-PRE(sys_getdirentries)
+PRE(getdirentries)
{
PRINT("getdirentries(%ld, %#lx, %ld, %#lx)", ARG1, ARG2, ARG3, ARG4);
PRE_REG_READ4(int, "getdirentries",
@@ -2963,7 +2865,7 @@
PRE_MEM_WRITE("getdirentries(buf)", ARG2, ARG3);
}
-POST(sys_getdirentries)
+POST(getdirentries)
{
POST_MEM_WRITE(ARG4, sizeof(long));
// GrP fixme be specific about d_name?
@@ -2971,7 +2873,7 @@
}
-PRE(sys_getdirentries64)
+PRE(getdirentries64)
{
PRINT("getdirentries64(%ld, %#lx, %lu, %#lx)", ARG1, ARG2, ARG3, ARG4);
PRE_REG_READ4(vki_ssize_t, "getdirentries",
@@ -2979,8 +2881,7 @@
PRE_MEM_WRITE("getdirentries(position)", ARG4, sizeof(vki_off_t));
PRE_MEM_WRITE("getdirentries(buf)", ARG2, ARG3);
}
-
-POST(sys_getdirentries64)
+POST(getdirentries64)
{
POST_MEM_WRITE(ARG4, sizeof(vki_off_t));
// GrP fixme be specific about d_name? (fixme copied from 32 bit version)
@@ -2988,36 +2889,34 @@
}
-PRE(sys_statfs64)
+PRE(statfs64)
{
- PRINT("sys_statfs64 ( %#lx(%s), %#lx )",ARG1,(char *)ARG1,ARG2);
+ PRINT("statfs64 ( %#lx(%s), %#lx )",ARG1,(char *)ARG1,ARG2);
PRE_REG_READ2(long, "statfs64", const char *, path, struct statfs64 *, buf);
PRE_MEM_RASCIIZ( "statfs64(path)", ARG1 );
PRE_MEM_WRITE( "statfs64(buf)", ARG2, sizeof(struct vki_statfs64) );
}
-
-POST(sys_statfs64)
+POST(statfs64)
{
POST_MEM_WRITE( ARG2, sizeof(struct vki_statfs64) );
}
-PRE(sys_fstatfs64)
+PRE(fstatfs64)
{
- PRINT("sys_fstatfs64 ( %ld, %#lx )",ARG1,ARG2);
+ PRINT("fstatfs64 ( %ld, %#lx )",ARG1,ARG2);
PRE_REG_READ2(long, "fstatfs64",
unsigned int, fd, struct statfs *, buf);
PRE_MEM_WRITE( "fstatfs64(buf)", ARG2, sizeof(struct vki_statfs64) );
}
-
-POST(sys_fstatfs64)
+POST(fstatfs64)
{
POST_MEM_WRITE( ARG2, sizeof(struct vki_statfs64) );
}
-PRE(sys_csops)
+PRE(csops)
{
- PRINT("sys_csops ( %ld, %#lx, %#lx, %lu )", ARG1, ARG2, ARG3, ARG4);
+ PRINT("csops ( %ld, %#lx, %#lx, %lu )", ARG1, ARG2, ARG3, ARG4);
PRE_REG_READ4(int, "csops",
vki_pid_t, pid, uint32_t, ops,
void *, useraddr, vki_size_t, usersize);
@@ -3036,14 +2935,14 @@
}
}
-POST(sys_csops)
+POST(csops)
{
POST_MEM_WRITE( ARG3, ARG4 );
}
-PRE(sys_auditon)
+PRE(auditon)
{
- PRINT("sys_auditon ( %ld, %#lx, %ld )", ARG1, ARG2, ARG3);
+ PRINT("auditon ( %ld, %#lx, %ld )", ARG1, ARG2, ARG3);
PRE_REG_READ3(int,"auditon",
int,"cmd", void*,"data", unsigned int,"length");
@@ -3096,8 +2995,7 @@
break;
}
}
-
-POST(sys_auditon)
+POST(auditon)
{
switch (ARG1) {
@@ -3147,12 +3045,12 @@
}
-PRE(sys_mmap)
+PRE(mmap)
{
// SysRes r;
#if VG_WORDSIZE == 4
- PRINT("sys_mmap ( %#lx, %lu, %ld, %ld, %ld, %lld )",
+ PRINT("mmap ( %#lx, %lu, %ld, %ld, %ld, %lld )",
ARG1, ARG2, ARG3, ARG4, ARG5, LOHI64(ARG6, ARG7) );
PRE_REG_READ7(Addr, "mmap",
Addr,start, vki_size_t,length, int,prot, int,flags, int,fd,
@@ -3162,7 +3060,7 @@
// r = ML_(generic_PRE_sys_mmap)( tid, ARG1, ARG2, ARG3, ARG4, ARG5,
// (Off64T)LOHI64(ARG6, ARG7) );
#else
- PRINT("sys_mmap ( %#lx, %lu, %ld, %ld, %ld, %ld )",
+ PRINT("mmap ( %#lx, %lu, %ld, %ld, %ld, %ld )",
ARG1, ARG2, ARG3, ARG4, ARG5, ARG6 );
PRE_REG_READ6(long, "mmap",
Addr,start, vki_size_t,length, int,prot, int,flags, int,fd,
@@ -3174,7 +3072,7 @@
// SET_STATUS_from_SysRes(r);
}
-POST(sys_mmap)
+POST(mmap)
{
if (RES != -1) {
ML_(notify_core_and_tool_of_mmap)(RES, ARG2, ARG3, ARG4, ARG5, ARG6);
@@ -3184,12 +3082,12 @@
}
-PRE(sys_sysctl)
+PRE(__sysctl)
{
- PRINT( "sysctl ( %#lx, %ld, %#lx, %#lx, %#lx, %ld )",
+ PRINT( "__sysctl ( %#lx, %ld, %#lx, %#lx, %#lx, %ld )",
ARG1, ARG2, ARG3, ARG4, ARG5, ARG6 );
- PRE_REG_READ6(int, "sysctl", int*, name, unsigned int, namelen,
+ PRE_REG_READ6(int, "__sysctl", int*, name, unsigned int, namelen,
void*, oldp, vki_size_t *, oldlenp,
void*, newp, vki_size_t *, newlenp);
@@ -3265,7 +3163,7 @@
}
}
-POST(sys_sysctl)
+POST(__sysctl)
{
if (SUCCESS || ERR == VKI_ENOMEM) {
// sysctl can write truncated data and return VKI_ENOMEM
@@ -3279,20 +3177,19 @@
}
-PRE(sys_sigpending)
+PRE(sigpending)
{
- PRINT( "sys_sigpending ( %#lx )", ARG1 );
+ PRINT( "sigpending ( %#lx )", ARG1 );
PRE_REG_READ1(long, "sigpending", vki_sigset_t *, set);
PRE_MEM_WRITE( "sigpending(set)", ARG1, sizeof(vki_sigset_t));
}
-
-POST(sys_sigpending)
+POST(sigpending)
{
POST_MEM_WRITE( ARG1, sizeof(vki_sigset_t) ) ;
}
-PRE(sys_sigprocmask)
+PRE(sigprocmask)
{
UWord arg1;
PRINT("sigprocmask ( %ld, %#lx, %#lx )", ARG1, ARG2, ARG3);
@@ -3328,7 +3225,7 @@
*flags |= SfPollAfter;
}
-POST(sys_sigprocmask)
+POST(sigprocmask)
{
vg_assert(SUCCESS);
if (RES == 0 && ARG3 != 0)
@@ -3336,7 +3233,7 @@
}
-PRE(sys_sigsuspend)
+PRE(sigsuspend)
{
/* Just hand this off to the kernel. Is that really correct? And
shouldn't we at least set SfPollAfter? These questions apply to
@@ -3344,7 +3241,7 @@
/* I think the first arg is the 32-bit signal mask (by value), and
the other two args are ignored. */
*flags |= SfMayBlock;
- PRINT("sys_sigsuspend ( mask=0x%08lx )", ARG1 );
+ PRINT("sigsuspend ( mask=0x%08lx )", ARG1 );
PRE_REG_READ1(int, "sigsuspend", int, sigmask);
}
@@ -5741,7 +5638,7 @@
}
-PRE(sys_bsdthread_create)
+PRE(bsdthread_create)
{
ThreadState *tst;
@@ -5762,14 +5659,14 @@
ARG2 = (Word)tst;
// Create a semaphore that pthread_hijack will signal once it starts
- // POST(sys_bsdthread_create) needs to wait for the new memory map to appear
+ // POST(bsdthread_create) needs to wait for the new memory map to appear
semaphore_create(mach_task_self(), &tst->os_state.child_go,
SYNC_POLICY_FIFO, 0);
semaphore_create(mach_task_self(), &tst->os_state.child_done,
SYNC_POLICY_FIFO, 0);
}
-POST(sys_bsdthread_create)
+POST(bsdthread_create)
{
// Tell new thread's pthread_hijack to proceed, and wait for it to finish.
// We hold V's lock on the child's behalf.
@@ -5794,7 +5691,7 @@
}
-PRE(sys_bsdthread_terminate)
+PRE(bsdthread_terminate)
{
ThreadState *tst;
@@ -6599,14 +6496,14 @@
}
-PRE(sys___semwait_signal)
+PRE(__semwait_signal)
{
/* args: int cond_sem, int mutex_sem,
int timeout, int relative,
time_t tv_sec, time_t tv_nsec */
- PRINT("sys___semwait_signal(wait %s, signal %s, %ld, %ld, %lds:%ldns)",
+ PRINT("__semwait_signal(wait %s, signal %s, %ld, %ld, %lds:%ldns)",
name_for_port(ARG1), name_for...
[truncated message content] |
|
From: <sv...@va...> - 2009-06-10 03:30:16
|
Author: njn
Date: 2009-06-10 04:30:07 +0100 (Wed, 10 Jun 2009)
New Revision: 10289
Log:
Update scalar.stderr.exp; this should have gone in with r10288.
Modified:
trunk/memcheck/tests/darwin/scalar.stderr.exp
Modified: trunk/memcheck/tests/darwin/scalar.stderr.exp
===================================================================
--- trunk/memcheck/tests/darwin/scalar.stderr.exp 2009-06-10 01:23:26 UTC (rev 10288)
+++ trunk/memcheck/tests/darwin/scalar.stderr.exp 2009-06-10 03:30:07 UTC (rev 10289)
@@ -170,6 +170,18 @@
...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+x200010f(271): __NR_sem_wait 1s 0m
+-----------------------------------------------------
+
+Syscall param sem_wait(sem) contains uninitialised byte(s)
+ ...
+-----------------------------------------------------
+x2000110(272): __NR_sem_trywait 1s 0m
+-----------------------------------------------------
+
+Syscall param sem_trywait(sem) contains uninitialised byte(s)
+ ...
+-----------------------------------------------------
x2000111(273): __NR_sem_post 1s 0m
-----------------------------------------------------
|
|
From: Tom H. <th...@cy...> - 2009-06-10 02:47:25
|
Nightly build on lloyd ( x86_64, Fedora 7 ) Started at 2009-06-10 03:05:06 BST Ended at 2009-06-10 03:47:13 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... done Regression test results follow == 490 tests, 0 stderr failures, 0 stdout failures, 0 post failures == |
|
From: Tom H. <th...@cy...> - 2009-06-10 02:46:41
|
Nightly build on vauxhall ( x86_64, Fedora 10 ) Started at 2009-06-10 03:20:04 BST Ended at 2009-06-10 03:46:33 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... done Regression test results follow == 499 tests, 0 stderr failures, 0 stdout failures, 0 post failures == |
|
From: Tom H. <th...@cy...> - 2009-06-10 02:28:49
|
Nightly build on mg ( x86_64, Fedora 9 ) Started at 2009-06-10 03:10:05 BST Ended at 2009-06-10 03:28:32 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 496 tests, 0 stderr failures, 1 stdout failure, 0 post failures == none/tests/linux/mremap2 (stdout) |
|
From: <sv...@va...> - 2009-06-10 01:23:30
|
Author: njn
Date: 2009-06-10 02:23:26 +0100 (Wed, 10 Jun 2009)
New Revision: 10288
Log:
Add wrappers for sem_wait and sem_trywait on Darwin. Also change the layout
of some Darwin syscall stuff.
Modified:
trunk/coregrind/m_syswrap/priv_syswrap-darwin.h
trunk/coregrind/m_syswrap/syswrap-darwin.c
trunk/include/vki/vki-scnums-darwin.h
trunk/memcheck/tests/darwin/scalar.c
Modified: trunk/coregrind/m_syswrap/priv_syswrap-darwin.h
===================================================================
--- trunk/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-06-09 23:44:42 UTC (rev 10287)
+++ trunk/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-06-10 01:23:26 UTC (rev 10288)
@@ -57,6 +57,8 @@
DECL_TEMPLATE(darwin, sys_sem_open);
DECL_TEMPLATE(darwin, sys_sem_close);
DECL_TEMPLATE(darwin, sys_sem_unlink);
+DECL_TEMPLATE(darwin, sys_sem_wait);
+DECL_TEMPLATE(darwin, sys_sem_trywait);
DECL_TEMPLATE(darwin, sys_sem_post);
DECL_TEMPLATE(darwin, sys_sem_init);
DECL_TEMPLATE(darwin, sys_sem_destroy);
Modified: trunk/coregrind/m_syswrap/syswrap-darwin.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-darwin.c 2009-06-09 23:44:42 UTC (rev 10287)
+++ trunk/coregrind/m_syswrap/syswrap-darwin.c 2009-06-10 01:23:26 UTC (rev 10288)
@@ -1406,6 +1406,13 @@
POST_MEM_WRITE(ARG1, sizeof(vki_sem_t));
}
+PRE(sys_sem_wait)
+{
+ PRINT("sem_wait( %#lx )", ARG1);
+ PRE_REG_READ1(int, "sem_wait", vki_sem_t *, sem);
+ *flags |= SfMayBlock;
+}
+
PRE(sys_sem_wait_nocancel)
{
PRINT("sem_wait_nocancel( %#lx )", ARG1);
@@ -7247,7 +7254,7 @@
MACX_(__NR_sem_open, sys_sem_open),
MACX_(__NR_sem_close, sys_sem_close),
MACX_(__NR_sem_unlink, sys_sem_unlink),
-// _____(__NR_sem_wait),
+ MACX_(__NR_sem_wait, sys_sem_wait),
MACX_(__NR_sem_trywait, sys_sem_trywait),
// _____(__NR_sem_post),
MACX_(__NR_sem_post, sys_sem_post),
Modified: trunk/include/vki/vki-scnums-darwin.h
===================================================================
--- trunk/include/vki/vki-scnums-darwin.h 2009-06-09 23:44:42 UTC (rev 10287)
+++ trunk/include/vki/vki-scnums-darwin.h 2009-06-10 01:23:26 UTC (rev 10288)
@@ -587,38 +587,38 @@
#define __NR___mac_set_lctx VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(393)
#define __NR_setlcid VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(394)
#define __NR_getlcid VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(395)
-#define __NR_read_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(396)
-#define __NR_write_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(397)
-#define __NR_open_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(398)
-#define __NR_close_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(399)
-#define __NR_wait4_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(400)
-#define __NR_recvmsg_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(401)
-#define __NR_sendmsg_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(402)
-#define __NR_recvfrom_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(403)
-#define __NR_accept_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(404)
-#define __NR_msync_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(405)
-#define __NR_fcntl_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(406)
-#define __NR_select_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(407)
-#define __NR_fsync_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(408)
-#define __NR_connect_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(409)
-#define __NR_sigsuspend_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(410)
-#define __NR_readv_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(411)
-#define __NR_writev_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(412)
-#define __NR_sendto_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(413)
-#define __NR_pread_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(414)
-#define __NR_pwrite_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(415)
-#define __NR_waitid_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(416)
-#define __NR_poll_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(417)
-#define __NR_msgsnd_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(418)
-#define __NR_msgrcv_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(419)
-#define __NR_sem_wait_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(420)
-#define __NR_aio_suspend_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(421)
-#define __NR___sigwait_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(422)
+#define __NR_read_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(396)
+#define __NR_write_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(397)
+#define __NR_open_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(398)
+#define __NR_close_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(399)
+#define __NR_wait4_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(400)
+#define __NR_recvmsg_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(401)
+#define __NR_sendmsg_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(402)
+#define __NR_recvfrom_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(403)
+#define __NR_accept_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(404)
+#define __NR_msync_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(405)
+#define __NR_fcntl_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(406)
+#define __NR_select_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(407)
+#define __NR_fsync_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(408)
+#define __NR_connect_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(409)
+#define __NR_sigsuspend_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(410)
+#define __NR_readv_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(411)
+#define __NR_writev_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(412)
+#define __NR_sendto_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(413)
+#define __NR_pread_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(414)
+#define __NR_pwrite_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(415)
+#define __NR_waitid_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(416)
+#define __NR_poll_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(417)
+#define __NR_msgsnd_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(418)
+#define __NR_msgrcv_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(419)
+#define __NR_sem_wait_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(420)
+#define __NR_aio_suspend_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(421)
+#define __NR___sigwait_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(422)
#define __NR___semwait_signal_nocancel VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(423)
-#define __NR___mac_mount VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(424)
-#define __NR___mac_get_mount VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(425)
-#define __NR___mac_getfsstat VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(426)
-#define __NR_MAXSYSCALL VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(427)
+#define __NR___mac_mount VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(424)
+#define __NR___mac_get_mount VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(425)
+#define __NR___mac_getfsstat VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(426)
+#define __NR_MAXSYSCALL VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(427)
#define __NR_DARWIN_FAKE_SIGRETURN (1 + __NR_MAXSYSCALL)
Modified: trunk/memcheck/tests/darwin/scalar.c
===================================================================
--- trunk/memcheck/tests/darwin/scalar.c 2009-06-09 23:44:42 UTC (rev 10287)
+++ trunk/memcheck/tests/darwin/scalar.c 2009-06-10 01:23:26 UTC (rev 10288)
@@ -341,7 +341,12 @@
SY(__NR_sem_unlink, x0); FAIL;
// __NR_sem_wait 271
+ GO(__NR_sem_wait, "1s 0m");
+ SY(__NR_sem_wait, x0); FAIL;
+
// __NR_sem_trywait 272
+ GO(__NR_sem_trywait, "1s 0m");
+ SY(__NR_sem_trywait, x0); FAIL;
// __NR_sem_post 273
GO(__NR_sem_post, "1s 0m");
|