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
(4) |
2
(17) |
3
(9) |
4
(14) |
5
(10) |
6
(11) |
7
(8) |
|
8
(9) |
9
(11) |
10
(29) |
11
(27) |
12
(29) |
13
(36) |
14
(8) |
|
15
(18) |
16
(30) |
17
(25) |
18
(6) |
19
(16) |
20
(13) |
21
(10) |
|
22
(16) |
23
(7) |
24
(8) |
25
(13) |
26
(14) |
27
(14) |
28
(5) |
|
29
(6) |
30
(21) |
31
(14) |
|
|
|
|
|
From: <sv...@va...> - 2009-03-16 22:46:57
|
Author: njn
Date: 2009-03-16 22:46:55 +0000 (Mon, 16 Mar 2009)
New Revision: 9441
Log:
Intercept both pthread_create and pthread_create@* in Helgrind. This
unbreaks Helgrind on Linux.
Modified:
branches/DARWIN/glibc-2.34567-NPTL-helgrind.supp
branches/DARWIN/helgrind/hg_intercepts.c
Modified: branches/DARWIN/glibc-2.34567-NPTL-helgrind.supp
===================================================================
--- branches/DARWIN/glibc-2.34567-NPTL-helgrind.supp 2009-03-16 22:34:19 UTC (rev 9440)
+++ branches/DARWIN/glibc-2.34567-NPTL-helgrind.supp 2009-03-16 22:46:55 UTC (rev 9441)
@@ -147,6 +147,7 @@
{
helgrind-glibc2X-112
Helgrind:Race
+ fun:pthread_create_WRK
fun:pthread_create@*
}
{
Modified: branches/DARWIN/helgrind/hg_intercepts.c
===================================================================
--- branches/DARWIN/helgrind/hg_intercepts.c 2009-03-16 22:34:19 UTC (rev 9440)
+++ branches/DARWIN/helgrind/hg_intercepts.c 2009-03-16 22:46:55 UTC (rev 9441)
@@ -202,12 +202,13 @@
}
// pthread_create
-// DDD: need to remove "@*" suffixes from all pthread functions that have
-// them for Darwin?
-//PTH_FUNC(int, pthreadZucreateZAZa, // pthread_create@*
-PTH_FUNC(int, pthreadZucreate, // pthread_create
- pthread_t *thread, const pthread_attr_t *attr,
- void *(*start) (void *), void *arg)
+// glibc-2.8.90 has "pthread_create@@GLIBC_2.2.5".
+// Darwin has "pthread_create".
+//
+// DDD: for Darwin, need to have non-"@*"-suffixed versions for all pthread
+// functions that currently have them.
+static int pthread_create_WRK(pthread_t *thread, const pthread_attr_t *attr,
+ void *(*start) (void *), void *arg)
{
int ret;
OrigFn fn;
@@ -244,6 +245,16 @@
}
return ret;
}
+PTH_FUNC(int, pthreadZucreate, // pthread_create
+ pthread_t *thread, const pthread_attr_t *attr,
+ void *(*start) (void *), void *arg) {
+ return pthread_create_WRK(thread, attr, start, arg);
+}
+PTH_FUNC(int, pthreadZucreateZAZa, // pthread_create@*
+ pthread_t *thread, const pthread_attr_t *attr,
+ void *(*start) (void *), void *arg) {
+ return pthread_create_WRK(thread, attr, start, arg);
+}
// pthread_join
PTH_FUNC(int, pthreadZujoin, // pthread_join
|
|
From: <sv...@va...> - 2009-03-16 22:34:30
|
Author: njn
Date: 2009-03-16 22:34:19 +0000 (Mon, 16 Mar 2009)
New Revision: 9440
Log:
Merge r9437 (stack trace tweaks) from the trunk.
Modified:
branches/DARWIN/NEWS
branches/DARWIN/coregrind/m_debuginfo/debuginfo.c
Modified: branches/DARWIN/NEWS
===================================================================
--- branches/DARWIN/NEWS 2009-03-16 22:19:46 UTC (rev 9439)
+++ branches/DARWIN/NEWS 2009-03-16 22:34:19 UTC (rev 9440)
@@ -19,6 +19,29 @@
are directly pointed to by a start-pointer, were previously marked as
"still reachable". They are now correctly marked as "possibly lost".
+* The format of some (non-XML) stack trace entries has changed a little.
+ Previously there were six possible forms:
+
+ 0x80483BF: really (a.c:20)
+ 0x80483BF: really (in /foo/a.out)
+ 0x80483BF: really
+ 0x80483BF: (within /foo/a.out)
+ 0x80483BF: ??? (a.c:20)
+ 0x80483BF: ???
+
+ The third and fourth of these forms have been made more consistent with
+ the others. The six possible forms are now:
+
+ 0x80483BF: really (a.c:20)
+ 0x80483BF: really (in /foo/a.out)
+ 0x80483BF: really (in ???)
+ 0x80483BF: ??? (in /foo/a.out)
+ 0x80483BF: ??? (a.c:20)
+ 0x80483BF: ???
+
+ Stack traces produced when --xml=yes is specified are different and
+ unchanged.
+
* The location of some install files has changed. This should not affect
most users. Those who might be affected:
Modified: branches/DARWIN/coregrind/m_debuginfo/debuginfo.c
===================================================================
--- branches/DARWIN/coregrind/m_debuginfo/debuginfo.c 2009-03-16 22:19:46 UTC (rev 9439)
+++ branches/DARWIN/coregrind/m_debuginfo/debuginfo.c 2009-03-16 22:34:19 UTC (rev 9440)
@@ -1626,19 +1626,20 @@
} else {
/* Print for humans to read */
+ //
+ // Possible forms:
+ //
+ // 0x80483BF: really (a.c:20)
+ // 0x80483BF: really (in /foo/a.out)
+ // 0x80483BF: really (in ???)
+ // 0x80483BF: ??? (in /foo/a.out)
+ // 0x80483BF: ??? (a.c:20)
+ // 0x80483BF: ???
+ //
VG_(sprintf)(ibuf,"0x%llX: ", (ULong)eip);
APPEND(ibuf);
- if (know_fnname) {
+ if (know_fnname) {
APPEND(buf_fn);
- if (!know_srcloc && know_objname) {
- APPEND(" (in ");
- APPEND(buf_obj);
- APPEND(")");
- }
- } else if (know_objname && !know_srcloc) {
- APPEND("(within ");
- APPEND(buf_obj);
- APPEND(")");
} else {
APPEND("???");
}
@@ -1649,6 +1650,14 @@
VG_(sprintf)(ibuf,"%d",lineno);
APPEND(ibuf);
APPEND(")");
+ } else if (know_objname) {
+ APPEND(" (in ");
+ APPEND(buf_obj);
+ APPEND(")");
+ } else if (know_fnname) {
+ // Nb: do this in two steps because "??)" is a trigraph!
+ APPEND(" (in ???");
+ APPEND(")");
}
}
|
|
From: <sv...@va...> - 2009-03-16 22:19:50
|
Author: sewardj
Date: 2009-03-16 22:19:46 +0000 (Mon, 16 Mar 2009)
New Revision: 9439
Log:
An initial suppression set for the Darwin system libraries on 10.5.6,
32-bit, for Memcheck.
Modified:
branches/DARWIN/darwin9.supp
Modified: branches/DARWIN/darwin9.supp
===================================================================
--- branches/DARWIN/darwin9.supp 2009-03-16 22:17:36 UTC (rev 9438)
+++ branches/DARWIN/darwin9.supp 2009-03-16 22:19:46 UTC (rev 9439)
@@ -1 +1,89 @@
+
+##----------------------------------------------------------------------##
+#
# Suppressions for Darwin 9.x / Mac OS X 10.5 Leopard
+#
+
+{
+ macos-10.5-pasteboard-1
+ Memcheck:Param
+ mach_msg(msg.msgh_remote_port)
+ fun:mach_msg_trap
+ fun:CFPasteboardCreate
+ fun:*Pasteboard*
+}
+
+{
+ macos-10.5-pasteboard-2
+ Memcheck:Param
+ mach_msg(msg.msgh_remote_port)
+ fun:mach_msg_trap
+ fun:CFPasteboardCreate
+ fun:*PB*
+}
+
+{
+ macos-10.5-pasteboard-3
+ Memcheck:Param
+ mach_msg(msg.msgh_remote_port)
+ fun:mach_msg_trap
+ fun:CFPasteboardCreate
+ fun:*Prefs*
+}
+
+{
+ macos-10.5-pasteboard-4
+ Memcheck:Param
+ mach_msg(msg.msgh_remote_port)
+ fun:mach_msg_trap
+ fun:CFPasteboardCreate
+ fun:CacheFMMapData
+}
+
+{
+ macos-10.5-gle-1
+ Memcheck:Cond
+ fun:gleUpdate*
+ ...
+ fun:gleUpdate*
+}
+
+{
+ macos-10.5-gle-2
+ Memcheck:Cond
+ fun:gleUpdate*
+ ...
+ fun:gleInitialize*
+}
+
+{
+ macos-10.5-PMMutex-1
+ Memcheck:Cond
+ fun:_ZN7PMMutex*
+ fun:_ZN7PMMutex*
+ fun:_ZN7PMMutex*
+}
+
+{
+ macos-10.5-misc-1
+ Memcheck:Cond
+ fun:GetVariationInfoFromName
+ fun:_Z22FindBestFamilyInstanceP23privateFontObjectRecordPsS1_Pt
+ fun:FOGetFontFamilyInstanceFromFont
+}
+
+{
+ macos-10.5-misc-2
+ Memcheck:Cond
+ fun:_ZN17CASettingsStorage15RefreshSettingsEv
+ fun:_ZNK17CASettingsStorage15CopyCFTypeValueEPK10__CFStringRPKvS4_
+ fun:_ZNK17CASettingsStorage14CopyArrayValueEPK10__CFStringRPK9__CFArrayS5_
+}
+
+{
+ macos-10.5-misc-3
+ Memcheck:Cond
+ fun:*ImageContent*
+ fun:*IconView*LoadIconData*
+ fun:*IconView*InitializeCommon*
+}
|
|
From: <sv...@va...> - 2009-03-16 22:17:40
|
Author: sewardj
Date: 2009-03-16 22:17:36 +0000 (Mon, 16 Mar 2009)
New Revision: 9438
Log:
Support two more syscalls: futimes and chmod_extended
Modified:
branches/DARWIN/coregrind/m_syswrap/priv_syswrap-darwin.h
branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c
branches/DARWIN/coregrind/m_syswrap/syswrap-generic.c
Modified: branches/DARWIN/coregrind/m_syswrap/priv_syswrap-darwin.h
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-03-16 22:11:31 UTC (rev 9437)
+++ branches/DARWIN/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-03-16 22:17:36 UTC (rev 9438)
@@ -81,6 +81,7 @@
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);
@@ -141,6 +142,7 @@
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);
// Mach message helpers
Modified: branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c 2009-03-16 22:11:31 UTC (rev 9437)
+++ branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c 2009-03-16 22:17:36 UTC (rev 9438)
@@ -1229,6 +1229,16 @@
unix syscalls
------------------------------------------------------------------ */
+PRE(sys_futimes)
+{
+ PRINT("sys_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 );
+ PRE_timeval_READ( "futimes(tvp[1])", ARG2+sizeof(struct vki_timeval) );
+ }
+}
+
PRE(sys_semget)
{
PRINT("sys_semget ( %ld, %ld, %ld )",ARG1,ARG2,ARG3);
@@ -1799,6 +1809,8 @@
PRE(sys_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 )",
ARG1, ARG2, ARG3, ARG4, ARG5);
PRE_REG_READ5(long, "fchmod",
@@ -1813,7 +1825,26 @@
sizeof(struct kauth_filesec) );
}
+PRE(sys_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 )",
+ ARG1, ARG1 ? (HChar*)ARG1 : "(null)", ARG2, ARG3, ARG4, ARG5);
+ PRE_REG_READ5(long, "chmod",
+ unsigned int, fildes,
+ uid_t, uid,
+ gid_t, gid,
+ 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
+ is just way wrong. */
+ PRE_MEM_READ( "chmod_extended(xsecurity)", ARG5,
+ sizeof(struct kauth_filesec) );
+}
+
PRE(sys_accessx)
{
// fixme difficult
@@ -6875,7 +6906,7 @@
GENX_(__NR_mkdir, sys_mkdir),
GENX_(__NR_rmdir, sys_rmdir),
GENX_(__NR_utimes, sys_utimes),
-// _____(__NR_futimes),
+ MACX_(__NR_futimes, sys_futimes),
// _____(__NR_adjtime), // 140
_____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(141)), // old getpeername
MACXY(__NR_gethostuuid, sys_gethostuuid),
@@ -7019,7 +7050,7 @@
MACXY(__NR_stat_extended, sys_statx),
// _____(__NR_lstat_extended), // 280
// _____(__NR_fstat_extended),
-// _____(__NR_chmod_extended),
+ MACX_(__NR_chmod_extended, sys_chmod_extended),
MACX_(__NR_fchmod_extended, sys_fchmod_extended),
// _____(__NR_access_extended),
MACX_(__NR_settid, sys_settid),
Modified: branches/DARWIN/coregrind/m_syswrap/syswrap-generic.c
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/syswrap-generic.c 2009-03-16 22:11:31 UTC (rev 9437)
+++ branches/DARWIN/coregrind/m_syswrap/syswrap-generic.c 2009-03-16 22:17:36 UTC (rev 9438)
@@ -4026,8 +4026,8 @@
if (ARG2 != 0) {
PRE_timeval_READ( "utimes(tvp[0])", ARG2 );
PRE_timeval_READ( "utimes(tvp[1])", ARG2+sizeof(struct vki_timeval) );
+ }
}
-}
PRE(sys_acct)
{
|
|
From: <sv...@va...> - 2009-03-16 22:11:43
|
Author: njn
Date: 2009-03-16 22:11:31 +0000 (Mon, 16 Mar 2009)
New Revision: 9437
Log:
Tweak the format of stack traces, so they're more consistent.
Modified:
trunk/NEWS
trunk/coregrind/m_debuginfo/debuginfo.c
Modified: trunk/NEWS
===================================================================
--- trunk/NEWS 2009-03-16 20:37:23 UTC (rev 9436)
+++ trunk/NEWS 2009-03-16 22:11:31 UTC (rev 9437)
@@ -15,6 +15,29 @@
are directly pointed to by a start-pointer, were previously marked as
"still reachable". They are now correctly marked as "possibly lost".
+* The format of some (non-XML) stack trace entries has changed a little.
+ Previously there were six possible forms:
+
+ 0x80483BF: really (a.c:20)
+ 0x80483BF: really (in /foo/a.out)
+ 0x80483BF: really
+ 0x80483BF: (within /foo/a.out)
+ 0x80483BF: ??? (a.c:20)
+ 0x80483BF: ???
+
+ The third and fourth of these forms have been made more consistent with
+ the others. The six possible forms are now:
+
+ 0x80483BF: really (a.c:20)
+ 0x80483BF: really (in /foo/a.out)
+ 0x80483BF: really (in ???)
+ 0x80483BF: ??? (in /foo/a.out)
+ 0x80483BF: ??? (a.c:20)
+ 0x80483BF: ???
+
+ Stack traces produced when --xml=yes is specified are different and
+ unchanged.
+
* The location of some install files has changed. This should not affect
most users. Those who might be affected:
Modified: trunk/coregrind/m_debuginfo/debuginfo.c
===================================================================
--- trunk/coregrind/m_debuginfo/debuginfo.c 2009-03-16 20:37:23 UTC (rev 9436)
+++ trunk/coregrind/m_debuginfo/debuginfo.c 2009-03-16 22:11:31 UTC (rev 9437)
@@ -1605,19 +1605,20 @@
} else {
/* Print for humans to read */
+ //
+ // Possible forms:
+ //
+ // 0x80483BF: really (a.c:20)
+ // 0x80483BF: really (in /foo/a.out)
+ // 0x80483BF: really (in ???)
+ // 0x80483BF: ??? (in /foo/a.out)
+ // 0x80483BF: ??? (a.c:20)
+ // 0x80483BF: ???
+ //
VG_(sprintf)(ibuf,"0x%llX: ", (ULong)eip);
APPEND(ibuf);
- if (know_fnname) {
+ if (know_fnname) {
APPEND(buf_fn);
- if (!know_srcloc && know_objname) {
- APPEND(" (in ");
- APPEND(buf_obj);
- APPEND(")");
- }
- } else if (know_objname && !know_srcloc) {
- APPEND("(within ");
- APPEND(buf_obj);
- APPEND(")");
} else {
APPEND("???");
}
@@ -1628,6 +1629,14 @@
VG_(sprintf)(ibuf,"%d",lineno);
APPEND(ibuf);
APPEND(")");
+ } else if (know_objname) {
+ APPEND(" (in ");
+ APPEND(buf_obj);
+ APPEND(")");
+ } else if (know_fnname) {
+ // Nb: do this in two steps because "??)" is a trigraph!
+ APPEND(" (in ???");
+ APPEND(")");
}
}
|
|
From: Julian S. <js...@ac...> - 2009-03-16 22:09:13
|
> > Support __posix_spawn (partially), which is a simplified combination > Should that be sys___posix_spawn? That's how the wrappers for other > "__"-prefixed syscalls are done. My mistake; the error is in the commit message. It's called posix_spawn and hence the code is OK; it's not called __posix_spawn. J |
|
From: Nicholas N. <n.n...@gm...> - 2009-03-16 22:02:30
|
On Tue, Mar 17, 2009 at 7:37 AM, <sv...@va...> wrote: > Author: sewardj > Date: 2009-03-16 20:37:23 +0000 (Mon, 16 Mar 2009) > New Revision: 9436 > > Log: > Support __posix_spawn (partially), which is a simplified combination > of fork and exec, and therefore requires quite a lot of the same logic > as in PRE(sys_execve) for Linux and AIX. > > > > Modified: > branches/DARWIN/coregrind/m_syswrap/priv_syswrap-darwin.h > branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c > branches/DARWIN/coregrind/m_syswrap/syswrap-main.c > > > Modified: branches/DARWIN/coregrind/m_syswrap/priv_syswrap-darwin.h > =================================================================== > --- branches/DARWIN/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-03-16 20:19:02 UTC (rev 9435) > +++ branches/DARWIN/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-03-16 20:37:23 UTC (rev 9436) > @@ -135,6 +135,7 @@ > DECL_TEMPLATE(darwin, sys_setxattr); > DECL_TEMPLATE(darwin, sys_fsetxattr); > DECL_TEMPLATE(darwin, sys_initgroups); > +DECL_TEMPLATE(darwin, sys_posix_spawn); Should that be sys___posix_spawn? That's how the wrappers for other "__"-prefixed syscalls are done. N |
|
From: <sv...@va...> - 2009-03-16 20:37:40
|
Author: sewardj
Date: 2009-03-16 20:37:23 +0000 (Mon, 16 Mar 2009)
New Revision: 9436
Log:
Support __posix_spawn (partially), which is a simplified combination
of fork and exec, and therefore requires quite a lot of the same logic
as in PRE(sys_execve) for Linux and AIX.
Modified:
branches/DARWIN/coregrind/m_syswrap/priv_syswrap-darwin.h
branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c
branches/DARWIN/coregrind/m_syswrap/syswrap-main.c
Modified: branches/DARWIN/coregrind/m_syswrap/priv_syswrap-darwin.h
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-03-16 20:19:02 UTC (rev 9435)
+++ branches/DARWIN/coregrind/m_syswrap/priv_syswrap-darwin.h 2009-03-16 20:37:23 UTC (rev 9436)
@@ -135,6 +135,7 @@
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);
Modified: branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c 2009-03-16 20:19:02 UTC (rev 9435)
+++ branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c 2009-03-16 20:37:23 UTC (rev 9436)
@@ -2201,6 +2201,237 @@
PRE_MEM_READ("gidset", ARG2, ARG1 * sizeof(vki_gid_t));
}
+
+//--------- posix_spawn ---------//
+/* Largely copied from PRE(sys_execve) in syswrap-generic.c, and from
+ the simpler AIX equivalent (syswrap-aix5.c). */
+// Pre_read a char** argument.
+static void pre_argv_envp(Addr a, ThreadId tid, Char* s1, Char* s2)
+{
+ while (True) {
+ Addr a_deref;
+ Addr* a_p = (Addr*)a;
+ PRE_MEM_READ( s1, (Addr)a_p, sizeof(Addr) );
+ a_deref = *a_p;
+ if (0 == a_deref)
+ break;
+ PRE_MEM_RASCIIZ( s2, a_deref );
+ a += sizeof(char*);
+ }
+}
+static SysRes simple_pre_exec_check(const HChar* exe_name)
+{
+ Int fd, ret;
+ SysRes res;
+ Bool setuid_allowed;
+
+ // Check it's readable
+ res = VG_(open)(exe_name, VKI_O_RDONLY, 0);
+ if (res.isError) {
+ return res;
+ }
+ fd = res.res;
+ VG_(close)(fd);
+
+ // Check we have execute permissions. We allow setuid executables
+ // to be run only in the case when we are not simulating them, that
+ // is, they to be run natively.
+ setuid_allowed = VG_(clo_trace_children) ? False : True;
+ ret = VG_(check_executable)(NULL/*&is_setuid*/,
+ (HChar*)exe_name, setuid_allowed);
+ if (0 != ret) {
+ return VG_(mk_SysRes_Error)(ret);
+ }
+ return VG_(mk_SysRes_Success)(0);
+}
+PRE(sys_posix_spawn)
+{
+ Char* path = NULL; /* path to executable */
+ Char** envp = NULL;
+ Char** argv = NULL;
+ Char** arg2copy;
+ Char* launcher_basename = NULL;
+ Int i, j, tot_args;
+ SysRes res;
+
+ /* args: pid_t* pid
+ char* path
+ posix_spawn_file_actions_t* file_actions
+ char** argv
+ char** envp
+ */
+ PRINT("sys_posix_spawn( %#lx, %#lx(%s), %#lx, %#lx, %#lx )",
+ ARG1, ARG2, ARG2 ? (HChar*)ARG2 : "(null)", ARG3, ARG4, ARG5 );
+
+ /* Standard pre-syscall checks */
+
+ PRE_REG_READ5(int, "posix_spawn", vki_pid_t*, pid, char*, path,
+ void*, file_actions, char**, argv, char**, envp );
+ PRE_MEM_WRITE("posix_spawn(pid)", ARG1, sizeof(vki_pid_t) );
+ PRE_MEM_RASCIIZ("posix_spawn(path)", ARG2);
+ //FIXME: check file_actions
+ if (ARG4 != 0)
+ pre_argv_envp( ARG4, tid, "posix_spawn(argv)",
+ "posix_spawn(argv[i])" );
+ if (ARG5 != 0)
+ pre_argv_envp( ARG5, tid, "posix_spawn(envp)",
+ "posix_spawn(envp[i])" );
+
+ if (0)
+ VG_(printf)("sys_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
+ syswrap-generic.c. */
+
+ /* Check that the name at least begins in client-accessible storage. */
+ if (!VG_(am_is_valid_for_client)( ARG2, 1, VKI_PROT_READ )) {
+ SET_STATUS_Failure( VKI_EFAULT );
+ return;
+ }
+
+ // Do the important checks: it is a file, is executable, permissions are
+ // ok, etc. We allow setuid executables to run only in the case when
+ // we are not simulating them, that is, they to be run natively.
+ res = simple_pre_exec_check((const HChar*)ARG2);
+ if (res.isError) {
+ SET_STATUS_Failure( res.err );
+ return;
+ }
+
+ /* If we're tracing the child, and the launcher name looks bogus
+ (possibly because launcher.c couldn't figure it out, see
+ comments therein) then we have no option but to fail. */
+ if (VG_(clo_trace_children)
+ && (VG_(name_of_launcher) == NULL
+ || VG_(name_of_launcher)[0] != '/')) {
+ SET_STATUS_Failure( VKI_ECHILD ); /* "No child processes" */
+ return;
+ }
+
+ /* Ok. So let's give it a try. */
+ VG_(debugLog)(1, "syswrap", "Posix_spawn of %s\n", (Char*)ARG2);
+
+ // Set up the child's exe path.
+ //
+ if (VG_(clo_trace_children)) {
+
+ // We want to exec the launcher. Get its pre-remembered path.
+ path = VG_(name_of_launcher);
+ // VG_(name_of_launcher) should have been acquired by m_main at
+ // startup. The following two assertions should be assured by
+ // the "If we're tracking the child .." test just above here.
+ vg_assert(path);
+ vg_assert(path[0] == '/');
+ launcher_basename = path;
+
+ } else {
+ path = (Char*)ARG2;
+ }
+
+ // Set up the child's environment.
+ //
+ // Remove the valgrind-specific stuff from the environment so the
+ // child doesn't get vgpreload_core.so, vgpreload_<tool>.so, etc.
+ // This is done unconditionally, since if we are tracing the child,
+ // the child valgrind will set up the appropriate client environment.
+ // Nb: we make a copy of the environment before trying to mangle it
+ // as it might be in read-only memory (this was bug #101881).
+ //
+ // Then, if tracing the child, set VALGRIND_LIB for it.
+ //
+ if (ARG5 == 0) {
+ envp = NULL;
+ } else {
+ envp = VG_(env_clone)( (Char**)ARG5 );
+ vg_assert(envp);
+ VG_(env_remove_valgrind_env_stuff)( envp );
+ }
+
+ if (VG_(clo_trace_children)) {
+ // Set VALGRIND_LIB in ARG5 (the environment)
+ VG_(env_setenv)( &envp, VALGRIND_LIB, VG_(libdir));
+ }
+
+ // Set up the child's args. If not tracing it, they are
+ // simply ARG4. Otherwise, they are
+ //
+ // [launcher_basename] ++ VG_(args_for_valgrind) ++ [ARG2] ++ ARG4[1..]
+ //
+ // except that the first VG_(args_for_valgrind_noexecpass) args
+ // are omitted.
+ //
+ if (!VG_(clo_trace_children)) {
+ argv = (Char**)ARG4;
+ } else {
+ vg_assert( VG_(args_for_valgrind) );
+ vg_assert( VG_(args_for_valgrind_noexecpass) >= 0 );
+ vg_assert( VG_(args_for_valgrind_noexecpass)
+ <= VG_(sizeXA)( VG_(args_for_valgrind) ) );
+ /* how many args in total will there be? */
+ // launcher basename
+ tot_args = 1;
+ // V's args
+ tot_args += VG_(sizeXA)( VG_(args_for_valgrind) );
+ tot_args -= VG_(args_for_valgrind_noexecpass);
+ // name of client exe
+ tot_args++;
+ // args for client exe, skipping [0]
+ arg2copy = (Char**)ARG4;
+ if (arg2copy && arg2copy[0]) {
+ for (i = 1; arg2copy[i]; i++)
+ tot_args++;
+ }
+ // allocate
+ argv = VG_(malloc)( "di.syswrap.pre_sys_execve.1",
+ (tot_args+1) * sizeof(HChar*) );
+ vg_assert(argv);
+ // copy
+ j = 0;
+ argv[j++] = launcher_basename;
+ for (i = 0; i < VG_(sizeXA)( VG_(args_for_valgrind) ); i++) {
+ if (i < VG_(args_for_valgrind_noexecpass))
+ continue;
+ argv[j++] = * (HChar**) VG_(indexXA)( VG_(args_for_valgrind), i );
+ }
+ argv[j++] = (Char*)ARG2;
+ if (arg2copy && arg2copy[0])
+ for (i = 1; arg2copy[i]; i++)
+ argv[j++] = arg2copy[i];
+ argv[j++] = NULL;
+ // check
+ vg_assert(j == tot_args+1);
+ }
+
+ /* XXXX JRS FIXME: sort out the signal state. What signal
+ state does the child inherit from the parent? */
+
+ if (0) {
+ Char **cpp;
+ VG_(printf)("posix_spawn: %s\n", path);
+ for (cpp = argv; cpp && *cpp; cpp++)
+ VG_(printf)("argv: %s\n", *cpp);
+ if (1)
+ for (cpp = envp; cpp && *cpp; cpp++)
+ VG_(printf)("env: %s\n", *cpp);
+ }
+
+ /* Let the call go through as usual. However, we have to poke
+ the altered arguments back into the argument slots. */
+ ARG2 = (UWord)path;
+ ARG4 = (UWord)argv;
+ ARG5 = (UWord)envp;
+
+ /* not to mention .. */
+ *flags |= SfMayBlock;
+}
+POST(sys_posix_spawn)
+{
+ vg_assert(SUCCESS);
+ //POST_MEM_WRITE( ARG1, sizeof(vki_pid_t) );
+}
+
+
PRE(sys_socket)
{
PRINT("sys_socket ( %ld, %ld, %ld )",ARG1,ARG2,ARG3);
@@ -6749,7 +6980,7 @@
MACXY(__NR_flistxattr, sys_flistxattr),
MACXY(__NR_fsctl, sys_fsctl),
MACX_(__NR_initgroups, sys_initgroups),
-// _____(__NR_posix_spawn),
+ MACXY(__NR_posix_spawn, sys_posix_spawn),
_____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(245)), // ???
_____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(246)), // ???
// _____(__NR_nfsclnt),
Modified: branches/DARWIN/coregrind/m_syswrap/syswrap-main.c
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/syswrap-main.c 2009-03-16 20:19:02 UTC (rev 9435)
+++ branches/DARWIN/coregrind/m_syswrap/syswrap-main.c 2009-03-16 20:37:23 UTC (rev 9436)
@@ -1521,7 +1521,12 @@
/* Gack. More impedance matching. Copy the possibly
modified syscall args back into the guest state. */
- vg_assert(eq_SyscallArgs(&sci->args, &sci->orig_args));
+ /* JRS 2009-Mar-16: if the syscall args are possibly modified,
+ then this assertion is senseless:
+ vg_assert(eq_SyscallArgs(&sci->args, &sci->orig_args));
+ The case that exposed it was sys_posix_spawn on Darwin,
+ which heavily modifies its arguments but then lets the call
+ go through anyway, with SfToBlock set, hence we end up here. */
putSyscallArgsIntoGuestState( &sci->args, &tst->arch.vex );
/* Drop the lock */
|
|
From: <sv...@va...> - 2009-03-16 20:19:27
|
Author: sewardj
Date: 2009-03-16 20:19:02 +0000 (Mon, 16 Mar 2009)
New Revision: 9435
Log:
Add debug printing pertaining to establishment of the launcher path.
Modified:
branches/DARWIN/coregrind/launcher-darwin.c
branches/DARWIN/coregrind/m_main.c
Modified: branches/DARWIN/coregrind/launcher-darwin.c
===================================================================
--- branches/DARWIN/coregrind/launcher-darwin.c 2009-03-16 20:17:32 UTC (rev 9434)
+++ branches/DARWIN/coregrind/launcher-darwin.c 2009-03-16 20:19:02 UTC (rev 9435)
@@ -363,6 +363,7 @@
if (strlen(launcher_name) + strlen(envp[i+1]) > PATH_MAX)
barf("launcher path is too long");
strcat(launcher_name, envp[i+1]);
+ VG_(debugLog)(1, "launcher", "launcher_name = %s\n", launcher_name);
/* tediously augment the env: VALGRIND_LAUNCHER=launcher_name */
asprintf(&new_line, VALGRIND_LAUNCHER "=%s", launcher_name);
Modified: branches/DARWIN/coregrind/m_main.c
===================================================================
--- branches/DARWIN/coregrind/m_main.c 2009-03-16 20:17:32 UTC (rev 9434)
+++ branches/DARWIN/coregrind/m_main.c 2009-03-16 20:19:02 UTC (rev 9435)
@@ -1384,13 +1384,14 @@
//--------------------------------------------------------------
// Extract the launcher name from the environment.
- VG_(debugLog)(1, "main", "Getting stage1's name\n");
+ VG_(debugLog)(1, "main", "Getting launcher's name ...\n");
VG_(name_of_launcher) = VG_(getenv)(VALGRIND_LAUNCHER);
if (VG_(name_of_launcher) == NULL) {
VG_(printf)("valgrind: You cannot run '%s' directly.\n", argv[0]);
VG_(printf)("valgrind: You should use $prefix/bin/valgrind.\n");
VG_(exit)(1);
}
+ VG_(debugLog)(1, "main", "... %s\n", VG_(name_of_launcher));
//--------------------------------------------------------------
// Get the current process datasize rlimit, and set it to zero.
|
|
From: <sv...@va...> - 2009-03-16 20:17:45
|
Author: sewardj
Date: 2009-03-16 20:17:32 +0000 (Mon, 16 Mar 2009)
New Revision: 9434
Log:
Formatting-only changes.
Modified:
branches/DARWIN/coregrind/m_libcsignal.c
Modified: branches/DARWIN/coregrind/m_libcsignal.c
===================================================================
--- branches/DARWIN/coregrind/m_libcsignal.c 2009-03-16 06:45:22 UTC (rev 9433)
+++ branches/DARWIN/coregrind/m_libcsignal.c 2009-03-16 20:17:32 UTC (rev 9434)
@@ -290,22 +290,22 @@
// GrP fixme this is an lwpid, not a ThreadId
Int VG_(tkill)( ThreadId tid, Int signo )
{
-#if defined(__NR_tkill)
+# if defined(__NR_tkill)
SysRes res = VG_(mk_SysRes_Error)(VKI_ENOSYS);
res = VG_(do_syscall2)(__NR_tkill, tid, signo);
if (res.isError && res.err == VKI_ENOSYS)
res = VG_(do_syscall2)(__NR_kill, tid, signo);
return res.isError ? -1 : 0;
-#elif defined(VGO_darwin)
+# elif defined(VGO_darwin)
// Note that the __pthread_kill syscall takes a Mach thread, not a pthread.
SysRes res;
res = VG_(do_syscall2)(__NR___pthread_kill, tid, signo);
return res.isError ? -1 : 0;
-#else
-#error no tkill implementation
-#endif
+# else
+# error "Unsupported plat"
+# endif
}
/* ---------------------- sigtimedwait_zero ----------------------- */
@@ -534,7 +534,7 @@
}
#else
-# error Unknown OS
+# error "Unknown OS"
#endif
/*--------------------------------------------------------------------*/
|
|
From: Nicholas N. <n.n...@gm...> - 2009-03-16 16:45:22
|
Nightly build on ocean32 ( Ubuntu 8.10, Intel x86-64 (32-bit only) ) started at 2009-03-17 03:00:01 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
== 446 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/memcheck/tests/linux/stack_switch.stderr.diff
=================================================
--- stack_switch.stderr.exp 2009-03-17 03:25:09.000000000 +1100
+++ stack_switch.stderr.out 2009-03-17 03:43:26.000000000 +1100
@@ -0,0 +1,2 @@
+Syscall param clone(child_tidptr) contains uninitialised byte(s)
+ ...
=================================================
./valgrind/memcheck/tests/origin1-yes.stderr.diff
=================================================
--- origin1-yes.stderr.exp 2009-03-17 03:25:19.000000000 +1100
+++ origin1-yes.stderr.out 2009-03-17 03:43:43.000000000 +1100
@@ -47,7 +47,7 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (origin1-yes.c:93)
Uninitialised value was created
- at 0x........: brk (in /...libc...)
+ at 0x........: (within /lib32/ld-2.8.90.so)
by 0x........: sbrk (in /...libc...)
by 0x........: main (origin1-yes.c:90)
=================================================
./valgrind/memcheck/tests/origin5-bz2.stderr.diff-glibc25-amd64
=================================================
--- origin5-bz2.stderr.exp-glibc25-amd64 2009-03-17 03:25:19.000000000 +1100
+++ origin5-bz2.stderr.out 2009-03-17 03:43:46.000000000 +1100
@@ -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/memcheck/tests/origin5-bz2.stderr.diff-glibc25-x86
=================================================
--- origin5-bz2.stderr.exp-glibc25-x86 2009-03-17 03:25:19.000000000 +1100
+++ origin5-bz2.stderr.out 2009-03-17 03:43:46.000000000 +1100
@@ -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/memcheck/tests/origin5-bz2.stderr.diff-glibc27-ppc64
=================================================
--- origin5-bz2.stderr.exp-glibc27-ppc64 2009-03-17 03:25:19.000000000 +1100
+++ origin5-bz2.stderr.out 2009-03-17 03:43:46.000000000 +1100
@@ -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/none/tests/linux/mremap2.stdout.diff
=================================================
--- mremap2.stdout.exp 2009-03-17 03:27:07.000000000 +1100
+++ mremap2.stdout.out 2009-03-17 03:44:48.000000000 +1100
@@ -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
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
-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
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
-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/none/tests/linux/mremap2.stdout.diff-glibc28-amd64
=================================================
--- mremap2.stdout.exp-glibc28-amd64 2009-03-17 03:27:07.000000000 +1100
+++ mremap2.stdout.out 2009-03-17 03:44:48.000000000 +1100
@@ -176,49 +176,49 @@
maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
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/none/tests/linux/mremap2.stdout.diff2
=================================================
--- mremap2.stdout.exp2 2009-03-17 03:27:07.000000000 +1100
+++ mremap2.stdout.out 2009-03-17 03:44:48.000000000 +1100
@@ -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
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
-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
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
-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/none/tests/shell.stderr.diff
=================================================
--- shell.stderr.exp 2009-03-17 03:27:20.000000000 +1100
+++ shell.stderr.out 2009-03-17 03:45:02.000000000 +1100
@@ -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/none/tests/shell.stderr.diff-dash
=================================================
--- shell.stderr.exp-dash 2009-03-17 03:27:20.000000000 +1100
+++ shell.stderr.out 2009-03-17 03:45:02.000000000 +1100
@@ -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/none/tests/shell.stdout.diff
=================================================
--- shell.stdout.exp 2009-03-17 03:27:20.000000000 +1100
+++ shell.stdout.out 2009-03-17 03:45:02.000000000 +1100
@@ -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/none/tests/shell_valid1.stderr.diff
=================================================
--- shell_valid1.stderr.exp 2009-03-17 03:27:20.000000000 +1100
+++ shell_valid1.stderr.out 2009-03-17 03:45:02.000000000 +1100
@@ -0,0 +1 @@
+valgrind: failed to start tool 'none' for platform 'amd64-linux': No such file or directory
=================================================
./valgrind/none/tests/shell_valid2.stderr.diff
=================================================
--- shell_valid2.stderr.exp 2009-03-17 03:27:20.000000000 +1100
+++ shell_valid2.stderr.out 2009-03-17 03:45:02.000000000 +1100
@@ -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/none/tests/shell_valid3.stderr.diff
=================================================
--- shell_valid3.stderr.exp 2009-03-17 03:27:20.000000000 +1100
+++ shell_valid3.stderr.out 2009-03-17 03:45:02.000000000 +1100
@@ -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
|
|
From: Nicholas N. <n.n...@gm...> - 2009-03-16 15:50:20
|
Nightly build on ocean ( Ubuntu 8.10, Intel x86-64 ) started at 2009-03-17 02:00:01 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 == 483 tests, 0 stderr failures, 1 stdout failure, 0 post failures == none/tests/linux/mremap2 (stdout) ================================================= ./valgrind/none/tests/linux/mremap2.stdout.diff ================================================= --- mremap2.stdout.exp 2009-03-17 02:28:26.000000000 +1100 +++ mremap2.stdout.out 2009-03-17 02:49:36.000000000 +1100 @@ -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 -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. -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 -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. -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/none/tests/linux/mremap2.stdout.diff-glibc28-amd64 ================================================= --- mremap2.stdout.exp-glibc28-amd64 2009-03-17 02:28:26.000000000 +1100 +++ mremap2.stdout.out 2009-03-17 02:49:36.000000000 +1100 @@ -176,49 +176,49 @@ maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. 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/none/tests/linux/mremap2.stdout.diff2 ================================================= --- mremap2.stdout.exp2 2009-03-17 02:28:26.000000000 +1100 +++ mremap2.stdout.out 2009-03-17 02:49:36.000000000 +1100 @@ -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 -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. -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 -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. -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: Bart V. A. <bar...@gm...> - 2009-03-16 08:25:36
|
Nightly build on georgia-tech-cellbuzz-native ( cellbuzz, ppc64, Fedora 7, native ) started at 2009-03-16 02:00:01 EDT 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 == 407 tests, 36 stderr failures, 9 stdout failures, 0 post failures == 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 (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 (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) helgrind/tests/hg05_race2 (stderr) 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) |
|
From: Bart V. A. <bar...@gm...> - 2009-03-16 07:14:35
|
On Mon, Mar 16, 2009 at 12:37 AM, Julian Seward <js...@ac...> wrote: > > > There is another small but annoying inconsistency between stack traces > > printed for an Intel CPU versus PPC: often the line numbers printed > > for the topmost stack frame differ. > > > - at 0x........: croak (varinfo6.c:34) > > + at 0x........: croak (varinfo6.c:35) > > This maybe be due at least in part to problems in m_debuginfo > (although my impression is that it is now correct), and it likely > to be due also to differences in the debuginfo produced by gcc > on the different platforms. IIRC you can even get different > line numbers by using different gcc versions on the same > architectures. Thanks for the background information. The differences in line number information are annoying because these make several regression tests fail. Bart. |
|
From: <sv...@va...> - 2009-03-16 06:45:37
|
Author: njn
Date: 2009-03-16 06:45:22 +0000 (Mon, 16 Mar 2009)
New Revision: 9433
Log:
Take steps towards Helgrind working on Darwin.
- Doesn't just abort at startup now.
- Got the pthread wrappers redirecting correctly.
- Made some syswrap-darwin.c code more similar to the corresponding
syswrap-linux.c code.
- Added pre_thread_ll_exit events to Darwin, not sure if they're in the
right spot though.
The net result is that Helgrind now runs (previously it always asserted on
thread creation), but there are lots of what I assume are false positives.
Modified:
branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c
branches/DARWIN/coregrind/m_syswrap/syswrap-x86-darwin.c
branches/DARWIN/helgrind/hg_intercepts.c
branches/DARWIN/helgrind/hg_main.c
Modified: branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c 2009-03-16 04:34:41 UTC (rev 9432)
+++ branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c 2009-03-16 06:45:22 UTC (rev 9433)
@@ -84,14 +84,14 @@
// Run a thread from beginning to end and return the thread's
// scheduler-return-code.
-static VgSchedReturnCode ML_(thread_wrapper)(Word /*ThreadId*/ tidW)
+static VgSchedReturnCode thread_wrapper(Word /*ThreadId*/ tidW)
{
VgSchedReturnCode ret;
ThreadId tid = (ThreadId)tidW;
ThreadState* tst = VG_(get_ThreadState)(tid);
- VG_(debugLog)(1, "core_os",
- "ML_(thread_wrapper)(tid=%lld): entry\n",
+ VG_(debugLog)(1, "syswrap-darwin",
+ "thread_wrapper(tid=%lld): entry\n",
(ULong)tidW);
vg_assert(tst->status == VgTs_Init);
@@ -118,8 +118,8 @@
vg_assert(tst->status == VgTs_Runnable);
vg_assert(VG_(is_running_thread)(tid));
- VG_(debugLog)(1, "core_os",
- "ML_(thread_wrapper)(tid=%lld): done\n",
+ VG_(debugLog)(1, "syswrap-darwin",
+ "thread_wrapper(tid=%lld): done\n",
(ULong)tidW);
/* Return to caller, still holding the lock. */
@@ -204,21 +204,22 @@
ThreadId tid = (ThreadId)tidW;
VG_(debugLog)(1, "syswrap-darwin",
- "run_a_thread_NORETURN(tid=%lld): "
- "ML_(thread_wrapper) called\n",
- (ULong)tidW);
+ "run_a_thread_NORETURN(tid=%lld): pre-thread_wrapper\n",
+ (ULong)tidW);
/* Run the thread all the way through. */
- src = ML_(thread_wrapper)(tid);
+ src = thread_wrapper(tid);
VG_(debugLog)(1, "syswrap-darwin",
- "run_a_thread_NORETURN(tid=%lld): "
- "ML_(thread_wrapper) done\n",
- (ULong)tidW);
+ "run_a_thread_NORETURN(tid=%lld): post-thread_wrapper\n",
+ (ULong)tidW);
c = VG_(count_living_threads)();
vg_assert(c >= 1); /* stay sane */
+ // Tell the tool this thread is exiting
+ VG_TRACK( pre_thread_ll_exit, tid );
+
if (c == 1) {
VG_(debugLog)(1, "syswrap-darwin",
@@ -5352,15 +5353,15 @@
tst->os_state.func_arg = (Addr)ARG2;
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
+ // 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.
semaphore_create(mach_task_self(), &tst->os_state.bsdthread_create_sema,
SYNC_POLICY_FIFO, 0);
}
POST(sys_bsdthread_create)
{
- // Wait for pthreead_hijack to finish on new thread.
+ // Wait for pthread_hijack to finish on new thread.
// Otherwise V thinks the new pthread struct is still
// unmapped when we return to libc, causing false errors
@@ -5370,6 +5371,12 @@
// fixme semaphore destroy needed when thread creation fails
// fixme probably other cleanup too
+
+ // DDD: I'm not at all sure this is the right spot for this. It probably
+ // should be in pthread_hijack instead, just before the call to
+ // start_thread_NORETURN(), call_on_new_stack_0_1(), but we don't have the
+ // parent tid value there...
+ VG_TRACK ( pre_thread_ll_create, tid, tst->tid );
}
@@ -6383,8 +6390,8 @@
PRE(swtch_pri)
{
- PRINT("swtch ( %ld )", ARG1);
- PRE_REG_READ1(long, "swtch", int,"pri");
+ PRINT("swtch_pri ( %ld )", ARG1);
+ PRE_REG_READ1(long, "swtch_pri", int,"pri");
*flags |= SfMayBlock;
}
Modified: branches/DARWIN/coregrind/m_syswrap/syswrap-x86-darwin.c
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/syswrap-x86-darwin.c 2009-03-16 04:34:41 UTC (rev 9432)
+++ branches/DARWIN/coregrind/m_syswrap/syswrap-x86-darwin.c 2009-03-16 06:45:22 UTC (rev 9433)
@@ -284,6 +284,7 @@
// Set thread's registers
// Do this FIRST because some code below tries to collect a backtrace,
// which requires valid register data.
+ // DDD: need to do post_reg_write events here?
LibVEX_GuestX86_initialise(vex);
vex->guest_EIP = pthread_starter;
vex->guest_EAX = self;
@@ -327,6 +328,10 @@
// initializing registers and mapping memory.
semaphore_signal(tst->os_state.bsdthread_create_sema);
+ // DDD: should this be here rather than in POST(sys_bsdthread_create)?
+ // But we don't have ptid here...
+ //VG_TRACK ( pre_thread_ll_create, ptid, tst->tid );
+
// Go!
call_on_new_stack_0_1(tst->os_state.valgrind_stack_init_SP, 0,
start_thread_NORETURN, (Word)tst);
Modified: branches/DARWIN/helgrind/hg_intercepts.c
===================================================================
--- branches/DARWIN/helgrind/hg_intercepts.c 2009-03-16 04:34:41 UTC (rev 9432)
+++ branches/DARWIN/helgrind/hg_intercepts.c 2009-03-16 06:45:22 UTC (rev 9433)
@@ -58,9 +58,16 @@
/*--- ---*/
/*----------------------------------------------------------------*/
-#define PTH_FUNC(ret_ty, f, args...) \
+#if defined(VGO_darwin)
+// Darwin pthread funcs appear to be in the main C library.
+# define PTH_FUNC(ret_ty, f, args...) \
+ ret_ty I_WRAP_SONAME_FNNAME_ZZ(libSystemZdZaZddylib,f)(args); \
+ ret_ty I_WRAP_SONAME_FNNAME_ZZ(libSystemZdZaZddylib,f)(args)
+#else
+# define PTH_FUNC(ret_ty, f, args...) \
ret_ty I_WRAP_SONAME_FNNAME_ZZ(libpthreadZdsoZd0,f)(args); \
ret_ty I_WRAP_SONAME_FNNAME_ZZ(libpthreadZdsoZd0,f)(args)
+#endif
// Do a client request. This is a macro rather than a function
// so as to avoid having an extra function in the stack trace.
@@ -195,7 +202,10 @@
}
// pthread_create
-PTH_FUNC(int, pthreadZucreateZAZa, // pthread_create@*
+// DDD: need to remove "@*" suffixes from all pthread functions that have
+// them for Darwin?
+//PTH_FUNC(int, pthreadZucreateZAZa, // pthread_create@*
+PTH_FUNC(int, pthreadZucreate, // pthread_create
pthread_t *thread, const pthread_attr_t *attr,
void *(*start) (void *), void *arg)
{
Modified: branches/DARWIN/helgrind/hg_main.c
===================================================================
--- branches/DARWIN/helgrind/hg_main.c 2009-03-16 04:34:41 UTC (rev 9432)
+++ branches/DARWIN/helgrind/hg_main.c 2009-03-16 06:45:22 UTC (rev 9433)
@@ -4173,12 +4173,6 @@
{
Thr* hbthr_root;
-#if defined(VGO_darwin)
- // This makes the (all-failing) regtests run much faster.
- VG_(printf)("Helgrind doesn't work on Darwin yet, sorry.\n");
- VG_(exit)(1);
-#endif
-
VG_(details_name) ("Helgrind");
VG_(details_version) (NULL);
VG_(details_description) ("a thread error detector");
|
|
From: <sv...@va...> - 2009-03-16 04:34:53
|
Author: njn
Date: 2009-03-16 04:34:41 +0000 (Mon, 16 Mar 2009)
New Revision: 9432
Log:
Merge r9431 (remove old Darwin docs) from the DARWIN branch.
Removed:
trunk/docs/internals/darwin-notes.txt
trunk/docs/internals/darwin-syscalls.txt
Modified:
trunk/docs/internals/Makefile.am
Modified: trunk/docs/internals/Makefile.am
===================================================================
--- trunk/docs/internals/Makefile.am 2009-03-16 04:33:12 UTC (rev 9431)
+++ trunk/docs/internals/Makefile.am 2009-03-16 04:34:41 UTC (rev 9432)
@@ -2,7 +2,6 @@
3_0_BUGSTATUS.txt 3_1_BUGSTATUS.txt \
3_2_BUGSTATUS.txt 3_3_BUGSTATUS.txt \
BIG_APP_NOTES.txt \
- darwin-notes.txt darwin-syscalls.txt \
directory-structure.txt \
howto_BUILD_KDE42.txt \
howto_oprofile.txt \
Deleted: trunk/docs/internals/darwin-notes.txt
===================================================================
--- trunk/docs/internals/darwin-notes.txt 2009-03-16 04:33:12 UTC (rev 9431)
+++ trunk/docs/internals/darwin-notes.txt 2009-03-16 04:34:41 UTC (rev 9432)
@@ -1,78 +0,0 @@
-[Julian replying to Greg Parker's notes about darwin/ppc32]
-
-
-> Some notes about porting Valgrind 3.x to Mac OS X / PowerPC:
->
-> * Darwin always uses a 64-bit off_t, even on 32-bit architectures.
-> (FreeBSD may also do this.) Valgrind currently allows off_t to
-> be pointer sized only, but it doesn't look like there is any
-> strong dependence on this anywhere.
-
-Ok. This sounds fairly harmless.
-
-> * dispatch.S should be platform-specific instead of arch-specific.
-> In particular, Darwin's assembler is not GNU as, so the file's
-> syntax would be wrong even if everything else were the same.
-> It should be reasonable to change dispatch-$VG_ARCH.S to
-> dispatch-$VG_OS-$VG_ARCH.S .
-
-True.
-
-> * Some Darwin syscalls take 7 arguments (in particular, mmap()
-> with 64-bit off_t offset). Valgrind currently provides
-> arg1..arg6. I don't see any obvious 8-argument syscalls.
-> Do other architectures define a 7th syscall argument and
-> just never use it, or do they have a 6 argument max?
-
-6 args is as many as Linux uses, it seems, and that's why the
-m_syswrap abstractions stop at 6. But clearly that could be
-extended to 7 with minimal effort.
-
-> * Darwin syscalls return a full 64-bit result, even on 32-bit
-> architectures. In particular, the lseek() syscall returns
-> a 64-bit off_t in registers r3 and r4. For syscalls that
-> return a 32-bit int, the kernel sets the other return
-> register to zero (or the appropriate sign extension for
-> signed return types). I don't know how much of an effect
-> changing this would have.
-
-I think the m_syswrap abstractions should be able to hide that OK.
-
-> * Darwin/PPC syscalls indicate success and failure in an unusual
-> way: successful calls and failed calls return to different
-> points. A syscall call usually looks like this:
->
-> // ...set up parameters here...
-> sc // make the syscall
-> b BAD // failed calls return here
-> GOOD:
-> nop // successful calls return here
-> // ...handle success case here...
-> blr
-> BAD:
-> // ...handle failure case here...
-> blr
-
-So you're saying that after sc, execution continues either at
-CIA+4 or CIA+8 depending on outcome. Right?
-
-> Handling this in VG_(do_syscall_for_client) isn't too bad.
-> One option is to store the PC of the last simulated `sc`
-> in the thread state, updating it before each call. Another
-> is to store a "sc failed" bit in each thread state, updating
-> it after each call. In either case, the simulated PC after
-> completion of the simulated `sc` would be adjusted based on
-> the result of the real `sc` or the syscall wrapper. The
-> syscall restarter would use the extra thread state to decide
-> whether to back up on instruction or two.
->
-> Handling this in VEX might be more difficult, because VEX
-> might need to know that `sc` looks like a conditional branch
-> in basic block analysis.
-
-Probably pretty harmless. There's all sorts of tricks that can
-be played. I think it's a non-problem.
-
-> (Of course, Mach traps use `sc` but don't use the PC-modifying
-> calling convention. However, Mach traps are an entirely different
-> ball of wax, and much will be said about them later.)
Deleted: trunk/docs/internals/darwin-syscalls.txt
===================================================================
--- trunk/docs/internals/darwin-syscalls.txt 2009-03-16 04:33:12 UTC (rev 9431)
+++ trunk/docs/internals/darwin-syscalls.txt 2009-03-16 04:34:41 UTC (rev 9432)
@@ -1,479 +0,0 @@
-[Master list of Darwin syscalls, courtesy of Greg Parker]
-
-
-xnu-792.2.4:bsd/kern/syscalls.master
-
-; derived from: FreeBSD @(#)syscalls.master 8.2 (Berkeley) 1/13/94
-;
-; System call name/number master file.
-; This is file processed by .../xnu/bsd/kern/makesyscalls.sh and creates:
-; .../xnu/bsd/kern/init_sysent.c
-; .../xnu/bsd/kern/syscalls.c
-; .../xnu/bsd/sys/syscall.h
-; .../xnu/bsd/sys/sysproto.h
-;
-; Columns -> | Number | Cancel | Funnel | Files | { Name and Args } | { Comments }
-; Number: system call number, must be in order
-; Cancel: type of thread cancel - "PRE", "POST" or "NONE"
-; Funnel: type of funnel - "KERN" or "NONE"
-; Files: with files to generate - "ALL" or any combo of:
-; "T" for syscall table (in init_sysent.c)
-; "N" for syscall names (in syscalls.c)
-; "H" for syscall headers (in syscall.h)
-; "P" for syscall prototypes (in sysproto.h)
-; Comments: additional comments about the sys call copied to output files
-;
-; #ifdef's, #include's, #if's etc. are copied to all output files.
-
-#include <sys/appleapiopts.h>
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/types.h>
-#include <sys/sysent.h>
-#include <sys/sysproto.h>
-
-e NONE NONE ALL { int nosys(void); } { indirect syscall }
-1 NONE KERN ALL { void exit(int rval); }
-2 NONE KERN ALL { int fork(void); }
-3 PRE NONE ALL { user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); }
-4 PRE NONE ALL { user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); }
-5 PRE NONE ALL { int open(user_addr_t path, int flags, int mode); }
-6 PRE NONE ALL { int close(int fd); }
-7 PRE KERN ALL { int wait4(int pid, user_addr_t status, int options, user_addr_t rusage); }
-8 NONE NONE ALL { int nosys(void); } { old creat }
-9 NONE NONE ALL { int link(user_addr_t path, user_addr_t link); }
-10 NONE NONE ALL { int unlink(user_addr_t path); }
-11 NONE NONE ALL { int nosys(void); } { old execv }
-12 NONE NONE ALL { int chdir(user_addr_t path); }
-13 NONE NONE ALL { int fchdir(int fd); }
-14 NONE NONE ALL { int mknod(user_addr_t path, int mode, int dev); }
-15 NONE NONE ALL { int chmod(user_addr_t path, int mode); }
-16 NONE NONE ALL { int chown(user_addr_t path, int uid, int gid); }
-17 NONE NONE UALL { int obreak(char *nsize); } { old break }
-
-#if COMPAT_GETFSSTAT
-18 NONE NONE ALL { int ogetfsstat(user_addr_t buf, int bufsize, int flags); }
-#else
-18 NONE NONE ALL { int getfsstat(user_addr_t buf, int bufsize, int flags); }
-#endif
-
-19 NONE NONE ALL { int nosys(void); } { old lseek }
-20 NONE NONE ALL { int getpid(void); }
-21 NONE NONE ALL { int nosys(void); } { old mount }
-22 NONE NONE ALL { int nosys(void); } { old umount }
-23 NONE KERN ALL { int setuid(uid_t uid); }
-24 NONE KERN ALL { int getuid(void); }
-25 NONE KERN ALL { int geteuid(void); }
-26 NONE KERN ALL { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
-27 PRE NONE ALL { int recvmsg(int s, struct msghdr *msg, int flags); }
-28 PRE NONE ALL { int sendmsg(int s, caddr_t msg, int flags); }
-29 PRE NONE ALL { int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr); }
-30 PRE NONE ALL { int accept(int s, caddr_t name, socklen_t *anamelen); }
-31 NONE NONE ALL { int getpeername(int fdes, caddr_t asa, socklen_t *alen); }
-32 NONE NONE ALL { int getsockname(int fdes, caddr_t asa, socklen_t *alen); }
-33 NONE NONE ALL { int access(user_addr_t path, int flags); }
-34 NONE NONE ALL { int chflags(char *path, int flags); }
-35 NONE NONE ALL { int fchflags(int fd, int flags); }
-36 NONE NONE ALL { int sync(void); }
-37 NONE KERN ALL { int kill(int pid, int signum); }
-38 NONE NONE ALL { int nosys(void); } { old stat }
-39 NONE KERN ALL { int getppid(void); }
-40 NONE NONE ALL { int nosys(void); } { old lstat }
-41 NONE NONE ALL { int dup(u_int fd); }
-42 NONE NONE ALL { int pipe(void); }
-43 NONE KERN ALL { int getegid(void); }
-44 NONE KERN ALL { int profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
-45 NONE KERN ALL { int ktrace(const char *fname, int ops, int facs, int pid); }
-46 NONE KERN ALL { int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa); }
-47 NONE KERN ALL { int getgid(void); }
-48 NONE KERN ALL { int sigprocmask(int how, user_addr_t mask, user_addr_t omask); }
-49 NONE KERN ALL { int getlogin(char *namebuf, u_int namelen); }
-50 NONE KERN ALL { int setlogin(char *namebuf); }
-51 NONE KERN ALL { int acct(char *path); }
-52 NONE KERN ALL { int sigpending(struct sigvec *osv); }
-53 NONE KERN ALL { int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss); }
-54 NONE NONE ALL { int ioctl(int fd, u_long com, caddr_t data); }
-55 NONE KERN ALL { int reboot(int opt, char *command); }
-56 NONE NONE ALL { int revoke(char *path); }
-57 NONE NONE ALL { int symlink(char *path, char *link); }
-58 NONE NONE ALL { int readlink(char *path, char *buf, int count); }
-59 NONE KERN ALL { int execve(char *fname, char **argp, char **envp); }
-60 NONE KERN ALL { int umask(int newmask); }
-61 NONE KERN ALL { int chroot(user_addr_t path); }
-62 NONE NONE ALL { int nosys(void); } { old fstat }
-63 NONE NONE ALL { int nosys(void); } { used internally, reserved }
-64 NONE NONE ALL { int nosys(void); } { old getpagesize }
-65 PRE NONE ALL { int msync(caddr_t addr, size_t len, int flags); }
-66 NONE KERN ALL { int vfork(void); }
-67 NONE NONE ALL { int nosys(void); } { old vread }
-68 NONE NONE ALL { int nosys(void); } { old vwrite }
-69 NONE NONE ALL { int sbrk(int incr); }
-70 NONE NONE ALL { int sstk(int incr); }
-71 NONE NONE ALL { int nosys(void); } { old mmap }
-72 NONE NONE ALL { int ovadvise(void); } { old vadvise }
-73 NONE NONE ALL { int munmap(caddr_t addr, size_t len); }
-74 NONE NONE ALL { int mprotect(caddr_t addr, size_t len, int prot); }
-75 NONE NONE ALL { int madvise(caddr_t addr, size_t len, int behav); }
-76 NONE NONE ALL { int nosys(void); } { old vhangup }
-77 NONE NONE ALL { int nosys(void); } { old vlimit }
-78 NONE NONE ALL { int mincore(user_addr_t addr, user_size_t len, user_addr_t vec); }
-79 NONE KERN ALL { int getgroups(u_int gidsetsize, gid_t *gidset); }
-80 NONE KERN ALL { int setgroups(u_int gidsetsize, gid_t *gidset); }
-81 NONE KERN ALL { int getpgrp(void); }
-82 NONE KERN ALL { int setpgid(int pid, int pgid); }
-83 NONE KERN ALL { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
-84 NONE NONE ALL { int nosys(void); } { old wait }
-85 NONE NONE ALL { int swapon(void); }
-86 NONE KERN ALL { int getitimer(u_int which, struct itimerval *itv); }
-87 NONE NONE ALL { int nosys(void); } { old gethostname }
-88 NONE NONE ALL { int nosys(void); } { old sethostname }
-89 NONE NONE ALL { int getdtablesize(void); }
-90 NONE NONE ALL { int dup2(u_int from, u_int to); }
-91 NONE NONE ALL { int nosys(void); } { old getdopt }
-92 PRE NONE ALL { int fcntl(int fd, int cmd, long arg); }
-93 PRE KERN ALL { int select(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv); }
-94 NONE NONE ALL { int nosys(void); } { old setdopt }
-95 PRE NONE ALL { int fsync(int fd); }
-96 NONE KERN ALL { int setpriority(int which, int who, int prio); }
-97 NONE NONE ALL { int socket(int domain, int type, int protocol); }
-98 PRE NONE ALL { int connect(int s, caddr_t name, socklen_t namelen); }
-99 NONE NONE ALL { int nosys(void); } { old accept }
-100 NONE KERN ALL { int getpriority(int which, int who); }
-101 NONE NONE ALL { int nosys(void); } { old send }
-102 NONE NONE ALL { int nosys(void); } { old recv }
-
-#ifdef __ppc__
-103 NONE NONE ALL { int nosys(void); } { old sigreturn }
-#else
-103 NONE KERN UALL { int sigreturn(struct sigcontext *sigcntxp); }
-#endif
-
-104 NONE NONE ALL { int bind(int s, caddr_t name, socklen_t namelen); }
-105 NONE NONE ALL { int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); }
-106 NONE NONE ALL { int listen(int s, int backlog); }
-107 NONE NONE ALL { int nosys(void); } { old vtimes }
-108 NONE NONE ALL { int nosys(void); } { old sigvec }
-109 NONE NONE ALL { int nosys(void); } { old sigblock }
-110 NONE NONE ALL { int nosys(void); } { old sigsetmask }
-111 PRE KERN ALL { int sigsuspend(sigset_t mask); }
-112 NONE NONE ALL { int nosys(void); } { old sigstack }
-113 NONE NONE ALL { int nosys(void); } { old recvmsg }
-114 NONE NONE ALL { int nosys(void); } { old sendmsg }
-115 NONE NONE ALL { int nosys(void); } { old vtrace }
-
-#ifdef __ppc__
-116 NONE NONE ALL { int ppc_gettimeofday(struct timeval *tp, struct timezone *tzp); }
-#else
-116 NONE NONE ALL { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
-#endif
-
-117 NONE KERN ALL { int getrusage(int who, struct rusage *rusage); }
-118 NONE NONE ALL { int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); }
-119 NONE NONE ALL { int nosys(void); } { old resuba }
-120 PRE NONE ALL { user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); }
-121 PRE NONE ALL { user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); }
-122 NONE KERN ALL { int settimeofday(struct timeval *tv, struct timezone *tzp); }
-123 NONE NONE ALL { int fchown(int fd, int uid, int gid); }
-124 NONE NONE ALL { int fchmod(int fd, int mode); }
-125 NONE NONE ALL { int nosys(void); } { old recvfrom }
-126 NONE NONE ALL { int nosys(void); } { old setreuid }
-127 NONE NONE ALL { int nosys(void); } { old setregid }
-128 NONE NONE ALL { int rename(char *from, char *to); }
-129 NONE NONE ALL { int nosys(void); } { old truncate }
-130 NONE NONE ALL { int nosys(void); } { old ftruncate }
-131 NONE NONE ALL { int flock(int fd, int how); }
-132 NONE NONE ALL { int mkfifo(user_addr_t path, int mode); }
-133 PRE NONE ALL { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen); }
-134 NONE NONE ALL { int shutdown(int s, int how); }
-135 NONE NONE ALL { int socketpair(int domain, int type, int protocol, int *rsv); }
-136 NONE NONE ALL { int mkdir(user_addr_t path, int mode); }
-137 NONE NONE ALL { int rmdir(char *path); }
-138 NONE NONE ALL { int utimes(char *path, struct timeval *tptr); }
-139 NONE NONE ALL { int futimes(int fd, struct timeval *tptr); }
-140 NONE KERN ALL { int adjtime(struct timeval *delta, struct timeval *olddelta); }
-141 NONE NONE ALL { int nosys(void); } { old getpeername }
-142 NONE NONE ALL { int nosys(void); } { old gethostid }
-143 NONE NONE ALL { int nosys(void); } { old sethostid }
-144 NONE NONE ALL { int nosys(void); } { old getrlimit }
-145 NONE NONE ALL { int nosys(void); } { old setrlimit }
-146 NONE NONE ALL { int nosys(void); } { old killpg }
-147 NONE KERN ALL { int setsid(void); }
-148 NONE NONE ALL { int nosys(void); } { old setquota }
-149 NONE NONE ALL { int nosys(void); } { old qquota }
-150 NONE NONE ALL { int nosys(void); } { old getsockname }
-151 NONE KERN ALL { int getpgid(pid_t pid); }
-152 NONE KERN ALL { int setprivexec(int flag); }
-153 PRE NONE ALL { user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
-154 PRE NONE ALL { user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
-
-#if NFSSERVER
-155 NONE KERN ALL { int nfssvc(int flag, caddr_t argp); }
-#else
-155 NONE NONE ALL { int nosys(void); }
-#endif
-
-156 NONE NONE ALL { int nosys(void); } { old getdirentries }
-157 NONE NONE ALL { int statfs(char *path, struct statfs *buf); }
-158 NONE NONE ALL { int fstatfs(int fd, struct statfs *buf); }
-159 NONE NONE ALL { int unmount(user_addr_t path, int flags); }
-160 NONE NONE ALL { int nosys(void); } { old async_daemon }
-
-#if NFSCLIENT
-161 NONE KERN ALL { int getfh(char *fname, fhandle_t *fhp); }
-#else
-161 NONE NONE ALL { int nosys(void); }
-#endif
-
-162 NONE NONE ALL { int nosys(void); } { old getdomainname }
-163 NONE NONE ALL { int nosys(void); } { old setdomainname }
-164 NONE NONE ALL { int nosys(void); }
-165 NONE KERN ALL { int quotactl(char *path, int cmd, int uid, caddr_t arg); }
-166 NONE NONE ALL { int nosys(void); } { old exportfs }
-167 NONE NONE ALL { int mount(char *type, char *path, int flags, caddr_t data); }
-168 NONE NONE ALL { int nosys(void); } { old ustat }
-169 NONE NONE ALL { int nosys(void); }
-170 NONE NONE HN { int table(void); } { old table }
-171 NONE NONE ALL { int nosys(void); } { old wait3 }
-172 NONE NONE ALL { int nosys(void); } { old rpause }
-173 PRE KERN ALL { int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); }
-174 NONE NONE ALL { int nosys(void); } { old getdents }
-175 NONE NONE ALL { int nosys(void); } { old gc_control }
-176 NONE KERN ALL { int add_profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
-177 NONE NONE ALL { int nosys(void); }
-178 NONE NONE ALL { int nosys(void); }
-179 NONE NONE ALL { int nosys(void); }
-180 NONE NONE UALL { int kdebug_trace(int code, int arg1, int arg2, int arg3, int arg4, int arg5); }
-181 NONE KERN ALL { int setgid(gid_t gid); }
-182 NONE KERN ALL { int setegid(gid_t egid); }
-183 NONE KERN ALL { int seteuid(uid_t euid); }
-
-#ifdef __ppc__
-184 NONE KERN ALL { int sigreturn(struct ucontext *uctx, int infostyle); }
-#else
-184 NONE NONE ALL { int nosys(void); }
-#endif
-
-185 NONE NONE ALL { int nosys(void); }
-186 NONE NONE ALL { int nosys(void); }
-187 NONE NONE ALL { int nosys(void); }
-188 NONE NONE ALL { int stat(user_addr_t path, user_addr_t ub); }
-189 NONE NONE ALL { int fstat(int fd, user_addr_t ub); }
-190 NONE NONE ALL { int lstat(user_addr_t path, user_addr_t ub); }
-191 NONE NONE ALL { int pathconf(char *path, int name); }
-192 NONE NONE ALL { int fpathconf(int fd, int name); }
-
-#if COMPAT_GETFSSTAT
-193 NONE NONE ALL { int getfsstat(user_addr_t buf, user_long_t bufsize, int flags); }
-#else
-193 NONE NONE ALL { int nosys(void); }
-#endif
-
-194 NONE KERN ALL { int getrlimit(u_int which, struct rlimit *rlp); }
-195 NONE KERN ALL { int setrlimit(u_int which, struct rlimit *rlp); }
-196 NONE NONE ALL { int getdirentries(int fd, char *buf, u_int count, long *basep); }
-197 NONE NONE ALL { user_addr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); }
-198 NONE NONE ALL { int nosys(void); } { __syscall }
-199 NONE NONE ALL { off_t lseek(int fd, off_t offset, int whence); }
-200 NONE NONE ALL { int truncate(char *path, off_t length); }
-201 NONE NONE ALL { int ftruncate(int fd, off_t length); }
-202 NONE KERN ALL { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); }
-203 NONE NONE ALL { int mlock(caddr_t addr, size_t len); }
-204 NONE NONE ALL { int munlock(caddr_t addr, size_t len); }
-205 NONE NONE ALL { int undelete(user_addr_t path); }
-
-#ifdef __ppc__
-206 NONE NONE ALL { int ATsocket(int proto); }
-207 NONE NONE UALL { int ATgetmsg(int fd, void *ctlptr, void *datptr, int *flags); }
-208 NONE NONE UALL { int ATputmsg(int fd, void *ctlptr, void *datptr, int flags); }
-209 NONE NONE UALL { int ATPsndreq(int fd, unsigned char *buf, int len, int nowait); }
-210 NONE NONE UALL { int ATPsndrsp(int fd, unsigned char *respbuff, int resplen, int datalen); }
-211 NONE NONE UALL { int ATPgetreq(int fd, unsigned char *buf, int buflen); }
-212 NONE NONE UALL { int ATPgetrsp(int fd, unsigned char *bdsp); }
-213 NONE NONE ALL { int nosys(void); } { Reserved for AppleTalk }
-#else
-206 NONE NONE HN { int ATsocket(int proto); }
-207 NONE NONE UHN { int ATgetmsg(int fd, void *ctlptr, void *datptr, int *flags); }
-208 NONE NONE UHN { int ATputmsg(int fd, void *ctlptr, void *datptr, int flags); }
-209 NONE NONE UHN { int ATPsndreq(int fd, unsigned char *buf, int len, int nowait); }
-210 NONE NONE UHN { int ATPsndrsp(int fd, unsigned char *respbuff, int resplen, int datalen); }
-211 NONE NONE UHN { int ATPgetreq(int fd, unsigned char *buf, int buflen); }
-212 NONE NONE UHN { int ATPgetrsp(int fd, unsigned char *bdsp); }
-213 NONE NONE ALL { int nosys(void); } { Reserved for AppleTalk }
-#endif /* __ppc__ */
-
-214 NONE KERN ALL { int kqueue_from_portset_np(int portset); }
-215 NONE KERN ALL { int kqueue_portset_np(int fd); }
-
-; System Calls 216 - 230 are reserved for calls to support HFS/HFS Plus
-; file system semantics. Currently, we only use 215-227. The rest is
-; for future expansion in anticipation of new MacOS APIs for HFS Plus.
-; These calls are not conditionalized becuase while they are specific
-; to HFS semantics, they are not specific to the HFS filesystem.
-; We expect all filesystems to recognize the call and report that it is
-; not supported or to actually implement it.
-216 NONE NONE UHN { int mkcomplex(const char *path, mode_t mode, u_long type); } { soon to be obsolete }
-217 NONE NONE UHN { int statv(const char *path, struct vstat *vsb); } { soon to be obsolete }
-218 NONE NONE UHN { int lstatv(const char *path, struct vstat *vsb); } { soon to be obsolete }
-219 NONE NONE UHN { int fstatv(int fd, struct vstat *vsb); } { soon to be obsolete }
-220 NONE NONE ALL { int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
-221 NONE NONE ALL { int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
-222 NONE NONE ALL { int getdirentriesattr(int fd, struct attrlist *alist, void *buffer, size_t buffersize, u_long *count, u_long *basep, u_long *newstate, u_long options); }
-223 NONE NONE ALL { int exchangedata(const char *path1, const char *path2, u_long options); }
-
-#ifdef __APPLE_API_OBSOLETE
-224 NONE NONE UALL { int checkuseraccess(const char *path, uid_t userid, gid_t *groups, int ngroups, int accessrequired, u_long options); }
-#else
-224 NONE NONE ALL { int nosys(void); } { HFS checkuseraccess check access to a file }
-#endif /* __APPLE_API_OBSOLETE */
-225 NONE KERN ALL { int searchfs(const char *path, struct fssearchblock *searchblock, u_long *nummatches, u_long scriptcode, u_long options, struct searchstate *state); }
-226 NONE NONE ALL { int delete(user_addr_t path); } { private delete (Carbon semantics) }
-227 NONE NONE ALL { int copyfile(char *from, char *to, int mode, int flags); }
-228 NONE NONE ALL { int nosys(void); }
-229 NONE NONE ALL { int nosys(void); }
-230 PRE NONE ALL { int poll(struct pollfd *fds, u_int nfds, int timeout); }
-231 NONE NONE UALL { int watchevent(struct eventreq *u_req, int u_eventmask); }
-232 NONE NONE UALL { int waitevent(struct eventreq *u_req, struct timeval *tv); }
-233 NONE NONE UALL { int modwatch(struct eventreq *u_req, int u_eventmask); }
-234 NONE NONE ALL { user_ssize_t getxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
-235 NONE NONE ALL { user_ssize_t fgetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
-236 NONE NONE ALL { int setxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
-237 NONE NONE ALL { int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
-238 NONE NONE ALL { int removexattr(user_addr_t path, user_addr_t attrname, int options); }
-239 NONE NONE ALL { int fremovexattr(int fd, user_addr_t attrname, int options); }
-240 NONE NONE ALL { user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); }
-241 NONE NONE ALL { user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); }
-242 NONE KERN ALL { int fsctl(const char *path, u_long cmd, caddr_t data, u_long options); }
-243 NONE KERN ALL { int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid); }
-244 NONE NONE ALL { int nosys(void); }
-245 NONE NONE ALL { int nosys(void); }
-246 NONE NONE ALL { int nosys(void); }
-
-#if NFSCLIENT
-247 NONE KERN ALL { int nfsclnt(int flag, caddr_t argp); }
-248 NONE KERN ALL { int fhopen(const struct fhandle *u_fhp, int flags); }
-#else
-247 NONE NONE ALL { int nosys(void); }
-248 NONE NONE ALL { int nosys(void); }
-#endif
-
-249 NONE NONE ALL { int nosys(void); }
-250 NONE NONE ALL { int minherit(void *addr, size_t len, int inherit); }
-251 NONE NONE ALL { int semsys(u_int which, int a2, int a3, int a4, int a5); }
-252 NONE NONE ALL { int msgsys(u_int which, int a2, int a3, int a4, int a5); }
-253 NONE NONE ALL { int shmsys(u_int which, int a2, int a3, int a4); }
-254 NONE NONE ALL { int semctl(int semid, int semnum, int cmd, semun_t arg); }
-255 NONE NONE ALL { int semget(key_t key, int nsems, int semflg); }
-256 NONE NONE ALL { int semop(int semid, struct sembuf *sops, int nsops); }
-257 NONE NONE ALL { int semconfig(semconfig_ctl_t flag); }
-258 NONE NONE ALL { int msgctl(int msqid, int cmd, struct msqid_ds *buf); }
-259 NONE NONE ALL { int msgget(key_t key, int msgflg); }
-260 PRE NONE ALL { int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); }
-261 PRE NONE ALL { user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
-262 NONE NONE ALL { int shmat(int shmid, void *shmaddr, int shmflg); }
-263 NONE NONE ALL { int shmctl(int shmid, int cmd, struct shmid_ds *buf); }
-264 NONE NONE ALL { int shmdt(void *shmaddr); }
-265 NONE NONE ALL { int shmget(key_t key, size_t size, int shmflg); }
-266 NONE NONE ALL { int shm_open(const char *name, int oflag, int mode); }
-267 NONE NONE ALL { int shm_unlink(const char *name); }
-268 NONE NONE ALL { user_addr_t sem_open(const char *name, int oflag, int mode, int value); }
-269 NONE NONE ALL { int sem_close(sem_t *sem); }
-270 NONE NONE ALL { int sem_unlink(const char *name); }
-271 PRE NONE ALL { int sem_wait(sem_t *sem); }
-272 NONE NONE ALL { int sem_trywait(sem_t *sem); }
-273 NONE NONE ALL { int sem_post(sem_t *sem); }
-274 NONE NONE ALL { int sem_getvalue(sem_t *sem, int *sval); }
-275 NONE NONE ALL { int sem_init(sem_t *sem, int phsared, u_int value); }
-276 NONE NONE ALL { int sem_destroy(sem_t *sem); }
-277 NONE NONE ALL { int open_extended(user_addr_t path, int flags, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
-278 NONE KERN ALL { int umask_extended(int newmask, user_addr_t xsecurity); }
-279 NONE NONE ALL { int stat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size); }
-280 NONE NONE ALL { int lstat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size); }
-281 NONE NONE ALL { int fstat_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size); }
-282 NONE NONE ALL { int chmod_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
-283 NONE NONE ALL { int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
-284 NONE NONE ALL { int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid); }
-285 NONE NONE ALL { int settid(uid_t uid, gid_t gid); }
-286 NONE NONE ALL { int gettid(uid_t *uidp, gid_t *gidp); }
-287 NONE NONE ALL { int setsgroups(int setlen, user_addr_t guidset); }
-288 NONE NONE ALL { int getsgroups(user_addr_t setlen, user_addr_t guidset); }
-289 NONE NONE ALL { int setwgroups(int setlen, user_addr_t guidset); }
-290 NONE NONE ALL { int getwgroups(user_addr_t setlen, user_addr_t guidset); }
-291 NONE NONE ALL { int mkfifo_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
-292 NONE NONE ALL { int mkdir_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
-293 NONE NONE ALL { int identitysvc(int opcode, user_addr_t message); }
-294 NONE NONE ALL { int nosys(void); }
-295 NONE NONE ALL { int nosys(void); }
-296 NONE KERN UALL { int load_shared_file(char *filename, caddr_t mfa, u_long mfs, caddr_t *ba, int map_cnt, sf_mapping_t *mappings, int *flags); }
-297 NONE KERN UALL { int reset_shared_file(caddr_t *ba, int map_cnt, sf_mapping_t *mappings); }
-298 NONE KERN ALL { int new_system_shared_regions(void); }
-299 NONE KERN UALL { int shared_region_map_file_np(int fd, uint32_t mappingCount, user_addr_t mappings, user_addr_t slide_p); }
-300 NONE KERN UALL { int shared_region_make_private_np(uint32_t rangeCount, user_addr_t ranges); }
-301 NONE NONE ALL { int nosys(void); }
-302 NONE NONE ALL { int nosys(void); }
-303 NONE NONE ALL { int nosys(void); }
-304 NONE NONE ALL { int nosys(void); }
-305 NONE NONE ALL { int nosys(void); }
-306 NONE NONE ALL { int nosys(void); }
-307 NONE NONE ALL { int nosys(void); }
-308 NONE NONE ALL { int nosys(void); }
-309 NONE NONE ALL { int nosys(void); }
-310 NONE KERN ALL { int getsid(pid_t pid); }
-311 NONE NONE ALL { int settid_with_pid(pid_t pid, int assume); }
-312 NONE NONE ALL { int nosys(void); }
-313 NONE NONE ALL { int aio_fsync(int op, user_addr_t aiocbp); }
-314 NONE NONE ALL { user_ssize_t aio_return(user_addr_t aiocbp); }
-315 PRE NONE ALL { int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); }
-316 NONE NONE ALL { int aio_cancel(int fd, user_addr_t aiocbp); }
-317 NONE NONE ALL { int aio_error(user_addr_t aiocbp); }
-318 NONE NONE ALL { int aio_read(user_addr_t aiocbp); }
-319 NONE NONE ALL { int aio_write(user_addr_t aiocbp); }
-320 NONE NONE ALL { int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); }
-321 NONE NONE ALL { int nosys(void); }
-322 NONE NONE ALL { int nosys(void); }
-323 NONE NONE ALL { int nosys(void); }
-324 NONE NONE ALL { int mlockall(int how); }
-325 NONE NONE ALL { int munlockall(int how); }
-326 NONE NONE ALL { int nosys(void); }
-327 NONE KERN ALL { int issetugid(void); }
-328 NONE KERN ALL { int __pthread_kill(int thread_port, int sig); }
-329 NONE KERN ALL { int pthread_sigmask(int how, user_addr_t set, user_addr_t oset); }
-330 PRE KERN ALL { int sigwait(user_addr_t set, user_addr_t sig); }
-331 NONE KERN ALL { int __disable_threadsignal(int value); }
-332 NONE NONE ALL { int __pthread_markcancel(int thread_port); }
-333 NONE NONE ALL { int __pthread_canceled(int action); }
-334 POST NONE ALL { int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, time_t tv_sec, int32_t tv_nsec); }
-335 NONE KERN ALL { int utrace(const void *addr, size_t len); }
-336 NONE NONE ALL { int nosys(void); }
-337 NONE NONE ALL { int nosys(void); }
-338 NONE NONE ALL { int nosys(void); }
-339 NONE NONE ALL { int nosys(void); }
-340 NONE NONE ALL { int nosys(void); }
-341 NONE NONE ALL { int nosys(void); }
-342 NONE NONE ALL { int nosys(void); }
-343 NONE NONE ALL { int nosys(void); }
-344 NONE NONE ALL { int nosys(void); }
-345 NONE NONE ALL { int nosys(void); }
-346 NONE NONE ALL { int nosys(void); }
-347 NONE NONE ALL { int nosys(void); }
-348 NONE NONE ALL { int nosys(void); }
-349 NONE NONE ALL { int nosys(void); }
-350 NONE KERN ALL { int audit(void *record, int length); }
-351 NONE KERN ALL { int auditon(int cmd, void *data, int length); }
-352 NONE KERN ALL { int nosys(void); }
-353 NONE KERN ALL { int getauid(au_id_t *auid); }
-354 NONE KERN ALL { int setauid(au_id_t *auid); }
-355 NONE KERN ALL { int getaudit(struct auditinfo *auditinfo); }
-356 NONE KERN ALL { int setaudit(struct auditinfo *auditinfo); }
-357 NONE KERN ALL { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
-358 NONE KERN ALL { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
-359 NONE KERN ALL { int auditctl(char *path); }
-360 NONE NONE ALL { int nosys(void); }
-361 NONE NONE ALL { int nosys(void); }
-362 NONE NONE ALL { int kqueue(void); }
-363 NONE NONE ALL { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
-364 NONE NONE ALL { int lchown(user_addr_t path, uid_t owner, gid_t group); }
-365 NONE NONE ALL { int nosys(void); }
-366 NONE NONE ALL { int nosys(void); }
-367 NONE NONE ALL { int nosys(void); }
-368 NONE NONE ALL { int nosys(void); }
-369 NONE NONE ALL { int nosys(void); }
|
|
From: <sv...@va...> - 2009-03-16 04:33:27
|
Author: njn
Date: 2009-03-16 04:33:12 +0000 (Mon, 16 Mar 2009)
New Revision: 9431
Log:
Remove some old doc files about Darwin, which aren't needed now that there's
a working implementation on the DARWIN branch.
Removed:
branches/DARWIN/docs/internals/darwin-notes.txt
branches/DARWIN/docs/internals/darwin-syscalls.txt
Modified:
branches/DARWIN/docs/internals/Makefile.am
Modified: branches/DARWIN/docs/internals/Makefile.am
===================================================================
--- branches/DARWIN/docs/internals/Makefile.am 2009-03-16 04:29:12 UTC (rev 9430)
+++ branches/DARWIN/docs/internals/Makefile.am 2009-03-16 04:33:12 UTC (rev 9431)
@@ -2,7 +2,6 @@
3_0_BUGSTATUS.txt 3_1_BUGSTATUS.txt \
3_2_BUGSTATUS.txt 3_3_BUGSTATUS.txt \
BIG_APP_NOTES.txt \
- darwin-notes.txt darwin-syscalls.txt \
directory-structure.txt \
howto_BUILD_KDE42.txt \
howto_oprofile.txt \
Deleted: branches/DARWIN/docs/internals/darwin-notes.txt
===================================================================
--- branches/DARWIN/docs/internals/darwin-notes.txt 2009-03-16 04:29:12 UTC (rev 9430)
+++ branches/DARWIN/docs/internals/darwin-notes.txt 2009-03-16 04:33:12 UTC (rev 9431)
@@ -1,78 +0,0 @@
-[Julian replying to Greg Parker's notes about darwin/ppc32]
-
-
-> Some notes about porting Valgrind 3.x to Mac OS X / PowerPC:
->
-> * Darwin always uses a 64-bit off_t, even on 32-bit architectures.
-> (FreeBSD may also do this.) Valgrind currently allows off_t to
-> be pointer sized only, but it doesn't look like there is any
-> strong dependence on this anywhere.
-
-Ok. This sounds fairly harmless.
-
-> * dispatch.S should be platform-specific instead of arch-specific.
-> In particular, Darwin's assembler is not GNU as, so the file's
-> syntax would be wrong even if everything else were the same.
-> It should be reasonable to change dispatch-$VG_ARCH.S to
-> dispatch-$VG_OS-$VG_ARCH.S .
-
-True.
-
-> * Some Darwin syscalls take 7 arguments (in particular, mmap()
-> with 64-bit off_t offset). Valgrind currently provides
-> arg1..arg6. I don't see any obvious 8-argument syscalls.
-> Do other architectures define a 7th syscall argument and
-> just never use it, or do they have a 6 argument max?
-
-6 args is as many as Linux uses, it seems, and that's why the
-m_syswrap abstractions stop at 6. But clearly that could be
-extended to 7 with minimal effort.
-
-> * Darwin syscalls return a full 64-bit result, even on 32-bit
-> architectures. In particular, the lseek() syscall returns
-> a 64-bit off_t in registers r3 and r4. For syscalls that
-> return a 32-bit int, the kernel sets the other return
-> register to zero (or the appropriate sign extension for
-> signed return types). I don't know how much of an effect
-> changing this would have.
-
-I think the m_syswrap abstractions should be able to hide that OK.
-
-> * Darwin/PPC syscalls indicate success and failure in an unusual
-> way: successful calls and failed calls return to different
-> points. A syscall call usually looks like this:
->
-> // ...set up parameters here...
-> sc // make the syscall
-> b BAD // failed calls return here
-> GOOD:
-> nop // successful calls return here
-> // ...handle success case here...
-> blr
-> BAD:
-> // ...handle failure case here...
-> blr
-
-So you're saying that after sc, execution continues either at
-CIA+4 or CIA+8 depending on outcome. Right?
-
-> Handling this in VG_(do_syscall_for_client) isn't too bad.
-> One option is to store the PC of the last simulated `sc`
-> in the thread state, updating it before each call. Another
-> is to store a "sc failed" bit in each thread state, updating
-> it after each call. In either case, the simulated PC after
-> completion of the simulated `sc` would be adjusted based on
-> the result of the real `sc` or the syscall wrapper. The
-> syscall restarter would use the extra thread state to decide
-> whether to back up on instruction or two.
->
-> Handling this in VEX might be more difficult, because VEX
-> might need to know that `sc` looks like a conditional branch
-> in basic block analysis.
-
-Probably pretty harmless. There's all sorts of tricks that can
-be played. I think it's a non-problem.
-
-> (Of course, Mach traps use `sc` but don't use the PC-modifying
-> calling convention. However, Mach traps are an entirely different
-> ball of wax, and much will be said about them later.)
Deleted: branches/DARWIN/docs/internals/darwin-syscalls.txt
===================================================================
--- branches/DARWIN/docs/internals/darwin-syscalls.txt 2009-03-16 04:29:12 UTC (rev 9430)
+++ branches/DARWIN/docs/internals/darwin-syscalls.txt 2009-03-16 04:33:12 UTC (rev 9431)
@@ -1,479 +0,0 @@
-[Master list of Darwin syscalls, courtesy of Greg Parker]
-
-
-xnu-792.2.4:bsd/kern/syscalls.master
-
-; derived from: FreeBSD @(#)syscalls.master 8.2 (Berkeley) 1/13/94
-;
-; System call name/number master file.
-; This is file processed by .../xnu/bsd/kern/makesyscalls.sh and creates:
-; .../xnu/bsd/kern/init_sysent.c
-; .../xnu/bsd/kern/syscalls.c
-; .../xnu/bsd/sys/syscall.h
-; .../xnu/bsd/sys/sysproto.h
-;
-; Columns -> | Number | Cancel | Funnel | Files | { Name and Args } | { Comments }
-; Number: system call number, must be in order
-; Cancel: type of thread cancel - "PRE", "POST" or "NONE"
-; Funnel: type of funnel - "KERN" or "NONE"
-; Files: with files to generate - "ALL" or any combo of:
-; "T" for syscall table (in init_sysent.c)
-; "N" for syscall names (in syscalls.c)
-; "H" for syscall headers (in syscall.h)
-; "P" for syscall prototypes (in sysproto.h)
-; Comments: additional comments about the sys call copied to output files
-;
-; #ifdef's, #include's, #if's etc. are copied to all output files.
-
-#include <sys/appleapiopts.h>
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/types.h>
-#include <sys/sysent.h>
-#include <sys/sysproto.h>
-
-e NONE NONE ALL { int nosys(void); } { indirect syscall }
-1 NONE KERN ALL { void exit(int rval); }
-2 NONE KERN ALL { int fork(void); }
-3 PRE NONE ALL { user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); }
-4 PRE NONE ALL { user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); }
-5 PRE NONE ALL { int open(user_addr_t path, int flags, int mode); }
-6 PRE NONE ALL { int close(int fd); }
-7 PRE KERN ALL { int wait4(int pid, user_addr_t status, int options, user_addr_t rusage); }
-8 NONE NONE ALL { int nosys(void); } { old creat }
-9 NONE NONE ALL { int link(user_addr_t path, user_addr_t link); }
-10 NONE NONE ALL { int unlink(user_addr_t path); }
-11 NONE NONE ALL { int nosys(void); } { old execv }
-12 NONE NONE ALL { int chdir(user_addr_t path); }
-13 NONE NONE ALL { int fchdir(int fd); }
-14 NONE NONE ALL { int mknod(user_addr_t path, int mode, int dev); }
-15 NONE NONE ALL { int chmod(user_addr_t path, int mode); }
-16 NONE NONE ALL { int chown(user_addr_t path, int uid, int gid); }
-17 NONE NONE UALL { int obreak(char *nsize); } { old break }
-
-#if COMPAT_GETFSSTAT
-18 NONE NONE ALL { int ogetfsstat(user_addr_t buf, int bufsize, int flags); }
-#else
-18 NONE NONE ALL { int getfsstat(user_addr_t buf, int bufsize, int flags); }
-#endif
-
-19 NONE NONE ALL { int nosys(void); } { old lseek }
-20 NONE NONE ALL { int getpid(void); }
-21 NONE NONE ALL { int nosys(void); } { old mount }
-22 NONE NONE ALL { int nosys(void); } { old umount }
-23 NONE KERN ALL { int setuid(uid_t uid); }
-24 NONE KERN ALL { int getuid(void); }
-25 NONE KERN ALL { int geteuid(void); }
-26 NONE KERN ALL { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
-27 PRE NONE ALL { int recvmsg(int s, struct msghdr *msg, int flags); }
-28 PRE NONE ALL { int sendmsg(int s, caddr_t msg, int flags); }
-29 PRE NONE ALL { int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr); }
-30 PRE NONE ALL { int accept(int s, caddr_t name, socklen_t *anamelen); }
-31 NONE NONE ALL { int getpeername(int fdes, caddr_t asa, socklen_t *alen); }
-32 NONE NONE ALL { int getsockname(int fdes, caddr_t asa, socklen_t *alen); }
-33 NONE NONE ALL { int access(user_addr_t path, int flags); }
-34 NONE NONE ALL { int chflags(char *path, int flags); }
-35 NONE NONE ALL { int fchflags(int fd, int flags); }
-36 NONE NONE ALL { int sync(void); }
-37 NONE KERN ALL { int kill(int pid, int signum); }
-38 NONE NONE ALL { int nosys(void); } { old stat }
-39 NONE KERN ALL { int getppid(void); }
-40 NONE NONE ALL { int nosys(void); } { old lstat }
-41 NONE NONE ALL { int dup(u_int fd); }
-42 NONE NONE ALL { int pipe(void); }
-43 NONE KERN ALL { int getegid(void); }
-44 NONE KERN ALL { int profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
-45 NONE KERN ALL { int ktrace(const char *fname, int ops, int facs, int pid); }
-46 NONE KERN ALL { int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa); }
-47 NONE KERN ALL { int getgid(void); }
-48 NONE KERN ALL { int sigprocmask(int how, user_addr_t mask, user_addr_t omask); }
-49 NONE KERN ALL { int getlogin(char *namebuf, u_int namelen); }
-50 NONE KERN ALL { int setlogin(char *namebuf); }
-51 NONE KERN ALL { int acct(char *path); }
-52 NONE KERN ALL { int sigpending(struct sigvec *osv); }
-53 NONE KERN ALL { int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss); }
-54 NONE NONE ALL { int ioctl(int fd, u_long com, caddr_t data); }
-55 NONE KERN ALL { int reboot(int opt, char *command); }
-56 NONE NONE ALL { int revoke(char *path); }
-57 NONE NONE ALL { int symlink(char *path, char *link); }
-58 NONE NONE ALL { int readlink(char *path, char *buf, int count); }
-59 NONE KERN ALL { int execve(char *fname, char **argp, char **envp); }
-60 NONE KERN ALL { int umask(int newmask); }
-61 NONE KERN ALL { int chroot(user_addr_t path); }
-62 NONE NONE ALL { int nosys(void); } { old fstat }
-63 NONE NONE ALL { int nosys(void); } { used internally, reserved }
-64 NONE NONE ALL { int nosys(void); } { old getpagesize }
-65 PRE NONE ALL { int msync(caddr_t addr, size_t len, int flags); }
-66 NONE KERN ALL { int vfork(void); }
-67 NONE NONE ALL { int nosys(void); } { old vread }
-68 NONE NONE ALL { int nosys(void); } { old vwrite }
-69 NONE NONE ALL { int sbrk(int incr); }
-70 NONE NONE ALL { int sstk(int incr); }
-71 NONE NONE ALL { int nosys(void); } { old mmap }
-72 NONE NONE ALL { int ovadvise(void); } { old vadvise }
-73 NONE NONE ALL { int munmap(caddr_t addr, size_t len); }
-74 NONE NONE ALL { int mprotect(caddr_t addr, size_t len, int prot); }
-75 NONE NONE ALL { int madvise(caddr_t addr, size_t len, int behav); }
-76 NONE NONE ALL { int nosys(void); } { old vhangup }
-77 NONE NONE ALL { int nosys(void); } { old vlimit }
-78 NONE NONE ALL { int mincore(user_addr_t addr, user_size_t len, user_addr_t vec); }
-79 NONE KERN ALL { int getgroups(u_int gidsetsize, gid_t *gidset); }
-80 NONE KERN ALL { int setgroups(u_int gidsetsize, gid_t *gidset); }
-81 NONE KERN ALL { int getpgrp(void); }
-82 NONE KERN ALL { int setpgid(int pid, int pgid); }
-83 NONE KERN ALL { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
-84 NONE NONE ALL { int nosys(void); } { old wait }
-85 NONE NONE ALL { int swapon(void); }
-86 NONE KERN ALL { int getitimer(u_int which, struct itimerval *itv); }
-87 NONE NONE ALL { int nosys(void); } { old gethostname }
-88 NONE NONE ALL { int nosys(void); } { old sethostname }
-89 NONE NONE ALL { int getdtablesize(void); }
-90 NONE NONE ALL { int dup2(u_int from, u_int to); }
-91 NONE NONE ALL { int nosys(void); } { old getdopt }
-92 PRE NONE ALL { int fcntl(int fd, int cmd, long arg); }
-93 PRE KERN ALL { int select(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv); }
-94 NONE NONE ALL { int nosys(void); } { old setdopt }
-95 PRE NONE ALL { int fsync(int fd); }
-96 NONE KERN ALL { int setpriority(int which, int who, int prio); }
-97 NONE NONE ALL { int socket(int domain, int type, int protocol); }
-98 PRE NONE ALL { int connect(int s, caddr_t name, socklen_t namelen); }
-99 NONE NONE ALL { int nosys(void); } { old accept }
-100 NONE KERN ALL { int getpriority(int which, int who); }
-101 NONE NONE ALL { int nosys(void); } { old send }
-102 NONE NONE ALL { int nosys(void); } { old recv }
-
-#ifdef __ppc__
-103 NONE NONE ALL { int nosys(void); } { old sigreturn }
-#else
-103 NONE KERN UALL { int sigreturn(struct sigcontext *sigcntxp); }
-#endif
-
-104 NONE NONE ALL { int bind(int s, caddr_t name, socklen_t namelen); }
-105 NONE NONE ALL { int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); }
-106 NONE NONE ALL { int listen(int s, int backlog); }
-107 NONE NONE ALL { int nosys(void); } { old vtimes }
-108 NONE NONE ALL { int nosys(void); } { old sigvec }
-109 NONE NONE ALL { int nosys(void); } { old sigblock }
-110 NONE NONE ALL { int nosys(void); } { old sigsetmask }
-111 PRE KERN ALL { int sigsuspend(sigset_t mask); }
-112 NONE NONE ALL { int nosys(void); } { old sigstack }
-113 NONE NONE ALL { int nosys(void); } { old recvmsg }
-114 NONE NONE ALL { int nosys(void); } { old sendmsg }
-115 NONE NONE ALL { int nosys(void); } { old vtrace }
-
-#ifdef __ppc__
-116 NONE NONE ALL { int ppc_gettimeofday(struct timeval *tp, struct timezone *tzp); }
-#else
-116 NONE NONE ALL { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
-#endif
-
-117 NONE KERN ALL { int getrusage(int who, struct rusage *rusage); }
-118 NONE NONE ALL { int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); }
-119 NONE NONE ALL { int nosys(void); } { old resuba }
-120 PRE NONE ALL { user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); }
-121 PRE NONE ALL { user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); }
-122 NONE KERN ALL { int settimeofday(struct timeval *tv, struct timezone *tzp); }
-123 NONE NONE ALL { int fchown(int fd, int uid, int gid); }
-124 NONE NONE ALL { int fchmod(int fd, int mode); }
-125 NONE NONE ALL { int nosys(void); } { old recvfrom }
-126 NONE NONE ALL { int nosys(void); } { old setreuid }
-127 NONE NONE ALL { int nosys(void); } { old setregid }
-128 NONE NONE ALL { int rename(char *from, char *to); }
-129 NONE NONE ALL { int nosys(void); } { old truncate }
-130 NONE NONE ALL { int nosys(void); } { old ftruncate }
-131 NONE NONE ALL { int flock(int fd, int how); }
-132 NONE NONE ALL { int mkfifo(user_addr_t path, int mode); }
-133 PRE NONE ALL { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen); }
-134 NONE NONE ALL { int shutdown(int s, int how); }
-135 NONE NONE ALL { int socketpair(int domain, int type, int protocol, int *rsv); }
-136 NONE NONE ALL { int mkdir(user_addr_t path, int mode); }
-137 NONE NONE ALL { int rmdir(char *path); }
-138 NONE NONE ALL { int utimes(char *path, struct timeval *tptr); }
-139 NONE NONE ALL { int futimes(int fd, struct timeval *tptr); }
-140 NONE KERN ALL { int adjtime(struct timeval *delta, struct timeval *olddelta); }
-141 NONE NONE ALL { int nosys(void); } { old getpeername }
-142 NONE NONE ALL { int nosys(void); } { old gethostid }
-143 NONE NONE ALL { int nosys(void); } { old sethostid }
-144 NONE NONE ALL { int nosys(void); } { old getrlimit }
-145 NONE NONE ALL { int nosys(void); } { old setrlimit }
-146 NONE NONE ALL { int nosys(void); } { old killpg }
-147 NONE KERN ALL { int setsid(void); }
-148 NONE NONE ALL { int nosys(void); } { old setquota }
-149 NONE NONE ALL { int nosys(void); } { old qquota }
-150 NONE NONE ALL { int nosys(void); } { old getsockname }
-151 NONE KERN ALL { int getpgid(pid_t pid); }
-152 NONE KERN ALL { int setprivexec(int flag); }
-153 PRE NONE ALL { user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
-154 PRE NONE ALL { user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
-
-#if NFSSERVER
-155 NONE KERN ALL { int nfssvc(int flag, caddr_t argp); }
-#else
-155 NONE NONE ALL { int nosys(void); }
-#endif
-
-156 NONE NONE ALL { int nosys(void); } { old getdirentries }
-157 NONE NONE ALL { int statfs(char *path, struct statfs *buf); }
-158 NONE NONE ALL { int fstatfs(int fd, struct statfs *buf); }
-159 NONE NONE ALL { int unmount(user_addr_t path, int flags); }
-160 NONE NONE ALL { int nosys(void); } { old async_daemon }
-
-#if NFSCLIENT
-161 NONE KERN ALL { int getfh(char *fname, fhandle_t *fhp); }
-#else
-161 NONE NONE ALL { int nosys(void); }
-#endif
-
-162 NONE NONE ALL { int nosys(void); } { old getdomainname }
-163 NONE NONE ALL { int nosys(void); } { old setdomainname }
-164 NONE NONE ALL { int nosys(void); }
-165 NONE KERN ALL { int quotactl(char *path, int cmd, int uid, caddr_t arg); }
-166 NONE NONE ALL { int nosys(void); } { old exportfs }
-167 NONE NONE ALL { int mount(char *type, char *path, int flags, caddr_t data); }
-168 NONE NONE ALL { int nosys(void); } { old ustat }
-169 NONE NONE ALL { int nosys(void); }
-170 NONE NONE HN { int table(void); } { old table }
-171 NONE NONE ALL { int nosys(void); } { old wait3 }
-172 NONE NONE ALL { int nosys(void); } { old rpause }
-173 PRE KERN ALL { int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); }
-174 NONE NONE ALL { int nosys(void); } { old getdents }
-175 NONE NONE ALL { int nosys(void); } { old gc_control }
-176 NONE KERN ALL { int add_profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
-177 NONE NONE ALL { int nosys(void); }
-178 NONE NONE ALL { int nosys(void); }
-179 NONE NONE ALL { int nosys(void); }
-180 NONE NONE UALL { int kdebug_trace(int code, int arg1, int arg2, int arg3, int arg4, int arg5); }
-181 NONE KERN ALL { int setgid(gid_t gid); }
-182 NONE KERN ALL { int setegid(gid_t egid); }
-183 NONE KERN ALL { int seteuid(uid_t euid); }
-
-#ifdef __ppc__
-184 NONE KERN ALL { int sigreturn(struct ucontext *uctx, int infostyle); }
-#else
-184 NONE NONE ALL { int nosys(void); }
-#endif
-
-185 NONE NONE ALL { int nosys(void); }
-186 NONE NONE ALL { int nosys(void); }
-187 NONE NONE ALL { int nosys(void); }
-188 NONE NONE ALL { int stat(user_addr_t path, user_addr_t ub); }
-189 NONE NONE ALL { int fstat(int fd, user_addr_t ub); }
-190 NONE NONE ALL { int lstat(user_addr_t path, user_addr_t ub); }
-191 NONE NONE ALL { int pathconf(char *path, int name); }
-192 NONE NONE ALL { int fpathconf(int fd, int name); }
-
-#if COMPAT_GETFSSTAT
-193 NONE NONE ALL { int getfsstat(user_addr_t buf, user_long_t bufsize, int flags); }
-#else
-193 NONE NONE ALL { int nosys(void); }
-#endif
-
-194 NONE KERN ALL { int getrlimit(u_int which, struct rlimit *rlp); }
-195 NONE KERN ALL { int setrlimit(u_int which, struct rlimit *rlp); }
-196 NONE NONE ALL { int getdirentries(int fd, char *buf, u_int count, long *basep); }
-197 NONE NONE ALL { user_addr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); }
-198 NONE NONE ALL { int nosys(void); } { __syscall }
-199 NONE NONE ALL { off_t lseek(int fd, off_t offset, int whence); }
-200 NONE NONE ALL { int truncate(char *path, off_t length); }
-201 NONE NONE ALL { int ftruncate(int fd, off_t length); }
-202 NONE KERN ALL { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); }
-203 NONE NONE ALL { int mlock(caddr_t addr, size_t len); }
-204 NONE NONE ALL { int munlock(caddr_t addr, size_t len); }
-205 NONE NONE ALL { int undelete(user_addr_t path); }
-
-#ifdef __ppc__
-206 NONE NONE ALL { int ATsocket(int proto); }
-207 NONE NONE UALL { int ATgetmsg(int fd, void *ctlptr, void *datptr, int *flags); }
-208 NONE NONE UALL { int ATputmsg(int fd, void *ctlptr, void *datptr, int flags); }
-209 NONE NONE UALL { int ATPsndreq(int fd, unsigned char *buf, int len, int nowait); }
-210 NONE NONE UALL { int ATPsndrsp(int fd, unsigned char *respbuff, int resplen, int datalen); }
-211 NONE NONE UALL { int ATPgetreq(int fd, unsigned char *buf, int buflen); }
-212 NONE NONE UALL { int ATPgetrsp(int fd, unsigned char *bdsp); }
-213 NONE NONE ALL { int nosys(void); } { Reserved for AppleTalk }
-#else
-206 NONE NONE HN { int ATsocket(int proto); }
-207 NONE NONE UHN { int ATgetmsg(int fd, void *ctlptr, void *datptr, int *flags); }
-208 NONE NONE UHN { int ATputmsg(int fd, void *ctlptr, void *datptr, int flags); }
-209 NONE NONE UHN { int ATPsndreq(int fd, unsigned char *buf, int len, int nowait); }
-210 NONE NONE UHN { int ATPsndrsp(int fd, unsigned char *respbuff, int resplen, int datalen); }
-211 NONE NONE UHN { int ATPgetreq(int fd, unsigned char *buf, int buflen); }
-212 NONE NONE UHN { int ATPgetrsp(int fd, unsigned char *bdsp); }
-213 NONE NONE ALL { int nosys(void); } { Reserved for AppleTalk }
-#endif /* __ppc__ */
-
-214 NONE KERN ALL { int kqueue_from_portset_np(int portset); }
-215 NONE KERN ALL { int kqueue_portset_np(int fd); }
-
-; System Calls 216 - 230 are reserved for calls to support HFS/HFS Plus
-; file system semantics. Currently, we only use 215-227. The rest is
-; for future expansion in anticipation of new MacOS APIs for HFS Plus.
-; These calls are not conditionalized becuase while they are specific
-; to HFS semantics, they are not specific to the HFS filesystem.
-; We expect all filesystems to recognize the call and report that it is
-; not supported or to actually implement it.
-216 NONE NONE UHN { int mkcomplex(const char *path, mode_t mode, u_long type); } { soon to be obsolete }
-217 NONE NONE UHN { int statv(const char *path, struct vstat *vsb); } { soon to be obsolete }
-218 NONE NONE UHN { int lstatv(const char *path, struct vstat *vsb); } { soon to be obsolete }
-219 NONE NONE UHN { int fstatv(int fd, struct vstat *vsb); } { soon to be obsolete }
-220 NONE NONE ALL { int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
-221 NONE NONE ALL { int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
-222 NONE NONE ALL { int getdirentriesattr(int fd, struct attrlist *alist, void *buffer, size_t buffersize, u_long *count, u_long *basep, u_long *newstate, u_long options); }
-223 NONE NONE ALL { int exchangedata(const char *path1, const char *path2, u_long options); }
-
-#ifdef __APPLE_API_OBSOLETE
-224 NONE NONE UALL { int checkuseraccess(const char *path, uid_t userid, gid_t *groups, int ngroups, int accessrequired, u_long options); }
-#else
-224 NONE NONE ALL { int nosys(void); } { HFS checkuseraccess check access to a file }
-#endif /* __APPLE_API_OBSOLETE */
-225 NONE KERN ALL { int searchfs(const char *path, struct fssearchblock *searchblock, u_long *nummatches, u_long scriptcode, u_long options, struct searchstate *state); }
-226 NONE NONE ALL { int delete(user_addr_t path); } { private delete (Carbon semantics) }
-227 NONE NONE ALL { int copyfile(char *from, char *to, int mode, int flags); }
-228 NONE NONE ALL { int nosys(void); }
-229 NONE NONE ALL { int nosys(void); }
-230 PRE NONE ALL { int poll(struct pollfd *fds, u_int nfds, int timeout); }
-231 NONE NONE UALL { int watchevent(struct eventreq *u_req, int u_eventmask); }
-232 NONE NONE UALL { int waitevent(struct eventreq *u_req, struct timeval *tv); }
-233 NONE NONE UALL { int modwatch(struct eventreq *u_req, int u_eventmask); }
-234 NONE NONE ALL { user_ssize_t getxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
-235 NONE NONE ALL { user_ssize_t fgetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
-236 NONE NONE ALL { int setxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
-237 NONE NONE ALL { int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
-238 NONE NONE ALL { int removexattr(user_addr_t path, user_addr_t attrname, int options); }
-239 NONE NONE ALL { int fremovexattr(int fd, user_addr_t attrname, int options); }
-240 NONE NONE ALL { user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); }
-241 NONE NONE ALL { user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); }
-242 NONE KERN ALL { int fsctl(const char *path, u_long cmd, caddr_t data, u_long options); }
-243 NONE KERN ALL { int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid); }
-244 NONE NONE ALL { int nosys(void); }
-245 NONE NONE ALL { int nosys(void); }
-246 NONE NONE ALL { int nosys(void); }
-
-#if NFSCLIENT
-247 NONE KERN ALL { int nfsclnt(int flag, caddr_t argp); }
-248 NONE KERN ALL { int fhopen(const struct fhandle *u_fhp, int flags); }
-#else
-247 NONE NONE ALL { int nosys(void); }
-248 NONE NONE ALL { int nosys(void); }
-#endif
-
-249 NONE NONE ALL { int nosys(void); }
-250 NONE NONE ALL { int minherit(void *addr, size_t len, int inherit); }
-251 NONE NONE ALL { int semsys(u_int which, int a2, int a3, int a4, int a5); }
-252 NONE NONE ALL { int msgsys(u_int which, int a2, int a3, int a4, int a5); }
-253 NONE NONE ALL { int shmsys(u_int which, int a2, int a3, int a4); }
-254 NONE NONE ALL { int semctl(int semid, int semnum, int cmd, semun_t arg); }
-255 NONE NONE ALL { int semget(key_t key, int nsems, int semflg); }
-256 NONE NONE ALL { int semop(int semid, struct sembuf *sops, int nsops); }
-257 NONE NONE ALL { int semconfig(semconfig_ctl_t flag); }
-258 NONE NONE ALL { int msgctl(int msqid, int cmd, struct msqid_ds *buf); }
-259 NONE NONE ALL { int msgget(key_t key, int msgflg); }
-260 PRE NONE ALL { int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); }
-261 PRE NONE ALL { user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
-262 NONE NONE ALL { int shmat(int shmid, void *shmaddr, int shmflg); }
-263 NONE NONE ALL { int shmctl(int shmid, int cmd, struct shmid_ds *buf); }
-264 NONE NONE ALL { int shmdt(void *shmaddr); }
-265 NONE NONE ALL { int shmget(key_t key, size_t size, int shmflg); }
-266 NONE NONE ALL { int shm_open(const char *name, int oflag, int mode); }
-267 NONE NONE ALL { int shm_unlink(const char *name); }
-268 NONE NONE ALL { user_addr_t sem_open(const char *name, int oflag, int mode, int value); }
-269 NONE NONE ALL { int sem_close(sem_t *sem); }
-270 NONE NONE ALL { int sem_unlink(const char *name); }
-271 PRE NONE ALL { int sem_wait(sem_t *sem); }
-272 NONE NONE ALL { int sem_trywait(sem_t *sem); }
-273 NONE NONE ALL { int sem_post(sem_t *sem); }
-274 NONE NONE ALL { int sem_getvalue(sem_t *sem, int *sval); }
-275 NONE NONE ALL { int sem_init(sem_t *sem, int phsared, u_int value); }
-276 NONE NONE ALL { int sem_destroy(sem_t *sem); }
-277 NONE NONE ALL { int open_extended(user_addr_t path, int flags, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
-278 NONE KERN ALL { int umask_extended(int newmask, user_addr_t xsecurity); }
-279 NONE NONE ALL { int stat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size); }
-280 NONE NONE ALL { int lstat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size); }
-281 NONE NONE ALL { int fstat_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size); }
-282 NONE NONE ALL { int chmod_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
-283 NONE NONE ALL { int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
-284 NONE NONE ALL { int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid); }
-285 NONE NONE ALL { int settid(uid_t uid, gid_t gid); }
-286 NONE NONE ALL { int gettid(uid_t *uidp, gid_t *gidp); }
-287 NONE NONE ALL { int setsgroups(int setlen, user_addr_t guidset); }
-288 NONE NONE ALL { int getsgroups(user_addr_t setlen, user_addr_t guidset); }
-289 NONE NONE ALL { int setwgroups(int setlen, user_addr_t guidset); }
-290 NONE NONE ALL { int getwgroups(user_addr_t setlen, user_addr_t guidset); }
-291 NONE NONE ALL { int mkfifo_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
-292 NONE NONE ALL { int mkdir_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
-293 NONE NONE ALL { int identitysvc(int opcode, user_addr_t message); }
-294 NONE NONE ALL { int nosys(void); }
-295 NONE NONE ALL { int nosys(void); }
-296 NONE KERN UALL { int load_shared_file(char *filename, caddr_t mfa, u_long mfs, caddr_t *ba, int map_cnt, sf_mapping_t *mappings, int *flags); }
-297 NONE KERN UALL { int reset_shared_file(caddr_t *ba, int map_cnt, sf_mapping_t *mappings); }
-298 NONE KERN ALL { int new_system_shared_regions(void); }
-299 NONE KERN UALL { int shared_region_map_file_np(int fd, uint32_t mappingCount, user_addr_t mappings, user_addr_t slide_p); }
-300 NONE KERN UALL { int shared_region_make_private_np(uint32_t rangeCount, user_addr_t ranges); }
-301 NONE NONE ALL { int nosys(void); }
-302 NONE NONE ALL { int nosys(void); }
-303 NONE NONE ALL { int nosys(void); }
-304 NONE NONE ALL { int nosys(void); }
-305 NONE NONE ALL { int nosys(void); }
-306 NONE NONE ALL { int nosys(void); }
-307 NONE NONE ALL { int nosys(void); }
-308 NONE NONE ALL { int nosys(void); }
-309 NONE NONE ALL { int nosys(void); }
-310 NONE KERN ALL { int getsid(pid_t pid); }
-311 NONE NONE ALL { int settid_with_pid(pid_t pid, int assume); }
-312 NONE NONE ALL { int nosys(void); }
-313 NONE NONE ALL { int aio_fsync(int op, user_addr_t aiocbp); }
-314 NONE NONE ALL { user_ssize_t aio_return(user_addr_t aiocbp); }
-315 PRE NONE ALL { int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); }
-316 NONE NONE ALL { int aio_cancel(int fd, user_addr_t aiocbp); }
-317 NONE NONE ALL { int aio_error(user_addr_t aiocbp); }
-318 NONE NONE ALL { int aio_read(user_addr_t aiocbp); }
-319 NONE NONE ALL { int aio_write(user_addr_t aiocbp); }
-320 NONE NONE ALL { int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); }
-321 NONE NONE ALL { int nosys(void); }
-322 NONE NONE ALL { int nosys(void); }
-323 NONE NONE ALL { int nosys(void); }
-324 NONE NONE ALL { int mlockall(int how); }
-325 NONE NONE ALL { int munlockall(int how); }
-326 NONE NONE ALL { int nosys(void); }
-327 NONE KERN ALL { int issetugid(void); }
-328 NONE KERN ALL { int __pthread_kill(int thread_port, int sig); }
-329 NONE KERN ALL { int pthread_sigmask(int how, user_addr_t set, user_addr_t oset); }
-330 PRE KERN ALL { int sigwait(user_addr_t set, user_addr_t sig); }
-331 NONE KERN ALL { int __disable_threadsignal(int value); }
-332 NONE NONE ALL { int __pthread_markcancel(int thread_port); }
-333 NONE NONE ALL { int __pthread_canceled(int action); }
-334 POST NONE ALL { int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, time_t tv_sec, int32_t tv_nsec); }
-335 NONE KERN ALL { int utrace(const void *addr, size_t len); }
-336 NONE NONE ALL { int nosys(void); }
-337 NONE NONE ALL { int nosys(void); }
-338 NONE NONE ALL { int nosys(void); }
-339 NONE NONE ALL { int nosys(void); }
-340 NONE NONE ALL { int nosys(void); }
-341 NONE NONE ALL { int nosys(void); }
-342 NONE NONE ALL { int nosys(void); }
-343 NONE NONE ALL { int nosys(void); }
-344 NONE NONE ALL { int nosys(void); }
-345 NONE NONE ALL { int nosys(void); }
-346 NONE NONE ALL { int nosys(void); }
-347 NONE NONE ALL { int nosys(void); }
-348 NONE NONE ALL { int nosys(void); }
-349 NONE NONE ALL { int nosys(void); }
-350 NONE KERN ALL { int audit(void *record, int length); }
-351 NONE KERN ALL { int auditon(int cmd, void *data, int length); }
-352 NONE KERN ALL { int nosys(void); }
-353 NONE KERN ALL { int getauid(au_id_t *auid); }
-354 NONE KERN ALL { int setauid(au_id_t *auid); }
-355 NONE KERN ALL { int getaudit(struct auditinfo *auditinfo); }
-356 NONE KERN ALL { int setaudit(struct auditinfo *auditinfo); }
-357 NONE KERN ALL { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
-358 NONE KERN ALL { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
-359 NONE KERN ALL { int auditctl(char *path); }
-360 NONE NONE ALL { int nosys(void); }
-361 NONE NONE ALL { int nosys(void); }
-362 NONE NONE ALL { int kqueue(void); }
-363 NONE NONE ALL { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
-364 NONE NONE ALL { int lchown(user_addr_t path, uid_t owner, gid_t group); }
-365 NONE NONE ALL { int nosys(void); }
-366 NONE NONE ALL { int nosys(void); }
-367 NONE NONE ALL { int nosys(void); }
-368 NONE NONE ALL { int nosys(void); }
-369 NONE NONE ALL { int nosys(void); }
|
|
From: <sv...@va...> - 2009-03-16 04:29:27
|
Author: njn
Date: 2009-03-16 04:29:12 +0000 (Mon, 16 Mar 2009)
New Revision: 9430
Log:
Merge r9429 (map_unaligned porting) from the DARWIN branch.
Modified:
trunk/none/tests/map_unaligned.c
trunk/none/tests/map_unaligned.stderr.exp
Modified: trunk/none/tests/map_unaligned.c
===================================================================
--- trunk/none/tests/map_unaligned.c 2009-03-16 04:26:12 UTC (rev 9429)
+++ trunk/none/tests/map_unaligned.c 2009-03-16 04:29:12 UTC (rev 9430)
@@ -4,44 +4,35 @@
int main(int argc, char **argv)
{
- void *p1;
- void *p2;
+ void *p1;
+ void *p2;
- if ( ( p1 = mmap( 0, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0 ) ) == MAP_FAILED )
- {
- perror( "mmap" );
+ if ( ( p1 = mmap( 0, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0 ) ) == MAP_FAILED )
+ {
+ perror( "aligned mmap failed" );
exit( 1 );
- }
+ }
- if ( munmap( p1, 4096 ) != 0 )
- {
- perror( "munmap" );
+ if ( munmap( p1, 4096 ) != 0 )
+ {
+ perror( "aligned munmap failed" );
exit( 1 );
- }
+ }
- if ( ( p2 = mmap( p1 + 1, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0 ) ) == MAP_FAILED )
- {
- perror( "mmap" );
+ // This fails because MAP_FIXED is specified and p1+1 isn't page-aligned.
+ // (On Linux, just non-page-alignment is enough for failure, but on Darwin
+ // MAP_FIXED has to also be specified.)
+ if ( ( p2 = mmap( p1 + 1, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0 ) ) == MAP_FAILED )
+ {
+ perror( "unaligned mmap failed" );
exit( 1 );
- }
+ }
- if ( munmap( p2, 4096 ) != 0 )
- {
- perror( "munmap" );
+ if ( munmap( p2, 4096 ) != 0 )
+ {
+ perror( "unaligned munmap failed" );
exit( 1 );
- }
+ }
- if ( ( p2 = mmap( p1 + 1, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0 ) ) == MAP_FAILED )
- {
- perror( "mmap" );
- exit( 1 );
- }
-
- if ( munmap( p2, 4096 ) != 0 )
- {
- perror( "munmap" );
- exit( 1 );
- }
-
- exit( 0 );
+ exit( 0 );
}
Modified: trunk/none/tests/map_unaligned.stderr.exp
===================================================================
--- trunk/none/tests/map_unaligned.stderr.exp 2009-03-16 04:26:12 UTC (rev 9429)
+++ trunk/none/tests/map_unaligned.stderr.exp 2009-03-16 04:29:12 UTC (rev 9430)
@@ -1,3 +1,3 @@
-mmap: Invalid argument
+unaligned mmap failed: Invalid argument
|
|
From: <sv...@va...> - 2009-03-16 04:26:34
|
Author: njn
Date: 2009-03-16 04:26:12 +0000 (Mon, 16 Mar 2009)
New Revision: 9429
Log:
Make map_unaligned work on Darwin. Also give it a sensible
indentation+brace style.
Modified:
branches/DARWIN/none/tests/map_unaligned.c
branches/DARWIN/none/tests/map_unaligned.stderr.exp
Modified: branches/DARWIN/none/tests/map_unaligned.c
===================================================================
--- branches/DARWIN/none/tests/map_unaligned.c 2009-03-16 03:46:48 UTC (rev 9428)
+++ branches/DARWIN/none/tests/map_unaligned.c 2009-03-16 04:26:12 UTC (rev 9429)
@@ -2,50 +2,41 @@
#include <stdlib.h>
#include <sys/mman.h>
-#if !defined(MAP_ANONYMOUS)
-#define MAP_ANONYMOUS 0
+#if defined(__APPLE__)
+# define MAP_ANONYMOUS MAP_ANON
#endif
int main(int argc, char **argv)
{
- void *p1;
- void *p2;
+ void *p1;
+ void *p2;
- if ( ( p1 = mmap( 0, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0 ) ) == MAP_FAILED )
- {
- perror( "mmap" );
+ if ( ( p1 = mmap( 0, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0 ) ) == MAP_FAILED )
+ {
+ perror( "aligned mmap failed" );
exit( 1 );
- }
+ }
- if ( munmap( p1, 4096 ) != 0 )
- {
- perror( "munmap" );
+ if ( munmap( p1, 4096 ) != 0 )
+ {
+ perror( "aligned munmap failed" );
exit( 1 );
- }
+ }
- if ( ( p2 = mmap( p1 + 1, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0 ) ) == MAP_FAILED )
- {
- perror( "mmap" );
+ // This fails because MAP_FIXED is specified and p1+1 isn't page-aligned.
+ // (On Linux, just non-page-alignment is enough for failure, but on Darwin
+ // MAP_FIXED has to also be specified.)
+ if ( ( p2 = mmap( p1 + 1, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0 ) ) == MAP_FAILED )
+ {
+ perror( "unaligned mmap failed" );
exit( 1 );
- }
+ }
- if ( munmap( p2, 4096 ) != 0 )
- {
- perror( "munmap" );
+ if ( munmap( p2, 4096 ) != 0 )
+ {
+ perror( "unaligned munmap failed" );
exit( 1 );
- }
+ }
- if ( ( p2 = mmap( p1 + 1, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0 ) ) == MAP_FAILED )
- {
- perror( "mmap" );
- exit( 1 );
- }
-
- if ( munmap( p2, 4096 ) != 0 )
- {
- perror( "munmap" );
- exit( 1 );
- }
-
- exit( 0 );
+ exit( 0 );
}
Modified: branches/DARWIN/none/tests/map_unaligned.stderr.exp
===================================================================
--- branches/DARWIN/none/tests/map_unaligned.stderr.exp 2009-03-16 03:46:48 UTC (rev 9428)
+++ branches/DARWIN/none/tests/map_unaligned.stderr.exp 2009-03-16 04:26:12 UTC (rev 9429)
@@ -1,3 +1,3 @@
-mmap: Invalid argument
+unaligned mmap failed: Invalid argument
|
|
From: Tom H. <th...@cy...> - 2009-03-16 04:17:36
|
Nightly build on vauxhall ( x86_64, Fedora 10 ) started at 2009-03-16 03:20:23 GMT 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 == 487 tests, 0 stderr failures, 0 stdout failures, 0 post failures == |
|
From: Tom H. <th...@cy...> - 2009-03-16 04:10:01
|
Nightly build on lloyd ( x86_64, Fedora 7 ) started at 2009-03-16 03:05:06 GMT 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 == 478 tests, 4 stderr failures, 0 stdout failures, 0 post failures == exp-ptrcheck/tests/ccc (stderr) exp-ptrcheck/tests/preen_invars (stderr) exp-ptrcheck/tests/pth_create (stderr) exp-ptrcheck/tests/pth_specific (stderr) |
|
From: Tom H. <th...@cy...> - 2009-03-16 03:47:39
|
Nightly build on mg ( x86_64, Fedora 9 ) started at 2009-03-16 03:10:07 GMT 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 == 484 tests, 4 stderr failures, 1 stdout failure, 0 post failures == exp-ptrcheck/tests/ccc (stderr) exp-ptrcheck/tests/preen_invars (stderr) exp-ptrcheck/tests/pth_create (stderr) exp-ptrcheck/tests/pth_specific (stderr) none/tests/linux/mremap2 (stdout) |
|
From: <sv...@va...> - 2009-03-16 03:47:23
|
Author: njn
Date: 2009-03-16 03:46:48 +0000 (Mon, 16 Mar 2009)
New Revision: 9428
Log:
Merge r9426, r9427 ('pending' portability tweaks) from the DARWIN branch.
Modified:
trunk/configure.in
trunk/none/tests/pending.c
trunk/none/tests/pending.stdout.exp
Modified: trunk/configure.in
===================================================================
--- trunk/configure.in 2009-03-16 03:39:37 UTC (rev 9427)
+++ trunk/configure.in 2009-03-16 03:46:48 UTC (rev 9428)
@@ -1381,6 +1381,7 @@
pthread_spin_lock \
semtimedop \
signalfd \
+ sigwaitinfo \
syscall \
strchr \
strdup \
Modified: trunk/none/tests/pending.c
===================================================================
--- trunk/none/tests/pending.c 2009-03-16 03:39:37 UTC (rev 9427)
+++ trunk/none/tests/pending.c 2009-03-16 03:46:48 UTC (rev 9428)
@@ -10,13 +10,15 @@
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
+#include "config.h"
static volatile int gotsig = 0;
static volatile int early = 1;
static void handler(int sig)
{
- printf("4: got signal %d\n", sig);
+ printf("4: got signal %s\n",
+ ( sig == SIGUSR1 ? "SIGUSR1" : "unexpected signal" ));
if (sig != SIGUSR1) {
fprintf(stderr, "FAILED: got signal %d instead\n", sig);
@@ -35,7 +37,6 @@
{
sigset_t all;
sigset_t sigusr1;
- siginfo_t info;
sigfillset(&all);
sigemptyset(&sigusr1);
@@ -69,15 +70,20 @@
}
printf("6: checking SIGUSR2 still pending...\n");
- if (sigwaitinfo(&all, &info) == -1) {
- perror("FAILED: sigwaitinfo failed");
- return 1;
+# if HAVE_SIGWAITINFO
+ {
+ siginfo_t info;
+ if (sigwaitinfo(&all, &info) == -1) {
+ perror("FAILED: sigwaitinfo failed");
+ return 1;
+ }
+ if (info.si_signo != SIGUSR2) {
+ fprintf(stderr, "FAILED: SIGUSR2 not still pending; got signal %d\n",
+ info.si_signo);
+ return 1;
+ }
}
- if (info.si_signo != SIGUSR2) {
- fprintf(stderr, "FAILED: SIGUSR2 not still pending; got signal %d\n",
- info.si_signo);
- return 1;
- }
+# endif
printf("OK\n");
return 0;
Modified: trunk/none/tests/pending.stdout.exp
===================================================================
--- trunk/none/tests/pending.stdout.exp 2009-03-16 03:39:37 UTC (rev 9427)
+++ trunk/none/tests/pending.stdout.exp 2009-03-16 03:46:48 UTC (rev 9428)
@@ -1,7 +1,7 @@
1: sending signal
2: sleeping
3: unblocking
-4: got signal 10
+4: got signal SIGUSR1
5: unblocked...
6: checking SIGUSR2 still pending...
OK
|
|
From: <sv...@va...> - 2009-03-16 03:40:23
|
Author: njn
Date: 2009-03-16 03:39:37 +0000 (Mon, 16 Mar 2009)
New Revision: 9427
Log:
Finish fixing up none/tests/pending.
Modified:
branches/DARWIN/none/tests/pending.c
branches/DARWIN/none/tests/pending.stdout.exp
Modified: branches/DARWIN/none/tests/pending.c
===================================================================
--- branches/DARWIN/none/tests/pending.c 2009-03-16 03:20:45 UTC (rev 9426)
+++ branches/DARWIN/none/tests/pending.c 2009-03-16 03:39:37 UTC (rev 9427)
@@ -10,13 +10,15 @@
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
+#include "config.h"
static volatile int gotsig = 0;
static volatile int early = 1;
static void handler(int sig)
{
- printf("4: got signal %d\n", sig);
+ printf("4: got signal %s\n",
+ ( sig == SIGUSR1 ? "SIGUSR1" : "unexpected signal" ));
if (sig != SIGUSR1) {
fprintf(stderr, "FAILED: got signal %d instead\n", sig);
@@ -35,7 +37,6 @@
{
sigset_t all;
sigset_t sigusr1;
- siginfo_t info;
sigfillset(&all);
sigemptyset(&sigusr1);
@@ -69,17 +70,20 @@
}
printf("6: checking SIGUSR2 still pending...\n");
-# if HAVE_SIGWAITINFO
- if (sigwaitinfo(&all, &info) == -1) {
- perror("FAILED: sigwaitinfo failed");
- return 1;
+# if HAVE_SIGWAITINFO
+ {
+ siginfo_t info;
+ if (sigwaitinfo(&all, &info) == -1) {
+ perror("FAILED: sigwaitinfo failed");
+ return 1;
+ }
+ if (info.si_signo != SIGUSR2) {
+ fprintf(stderr, "FAILED: SIGUSR2 not still pending; got signal %d\n",
+ info.si_signo);
+ return 1;
+ }
}
- if (info.si_signo != SIGUSR2) {
- fprintf(stderr, "FAILED: SIGUSR2 not still pending; got signal %d\n",
- info.si_signo);
- return 1;
- }
-# endif
+# endif
printf("OK\n");
return 0;
Modified: branches/DARWIN/none/tests/pending.stdout.exp
===================================================================
--- branches/DARWIN/none/tests/pending.stdout.exp 2009-03-16 03:20:45 UTC (rev 9426)
+++ branches/DARWIN/none/tests/pending.stdout.exp 2009-03-16 03:39:37 UTC (rev 9427)
@@ -1,7 +1,7 @@
1: sending signal
2: sleeping
3: unblocking
-4: got signal 10
+4: got signal SIGUSR1
5: unblocked...
6: checking SIGUSR2 still pending...
OK
|
|
From: <sv...@va...> - 2009-03-16 03:21:19
|
Author: njn
Date: 2009-03-16 03:20:45 +0000 (Mon, 16 Mar 2009)
New Revision: 9426
Log:
Make none/tests/pending compile on systems lacking sigwaitinfo (eg. Darwin).
Modified:
branches/DARWIN/configure.in
branches/DARWIN/none/tests/Makefile.am
branches/DARWIN/none/tests/pending.c
Modified: branches/DARWIN/configure.in
===================================================================
--- branches/DARWIN/configure.in 2009-03-16 02:51:55 UTC (rev 9425)
+++ branches/DARWIN/configure.in 2009-03-16 03:20:45 UTC (rev 9426)
@@ -1497,6 +1497,7 @@
pthread_spin_lock \
semtimedop \
signalfd \
+ sigwaitinfo \
syscall \
strchr \
strdup \
Modified: branches/DARWIN/none/tests/Makefile.am
===================================================================
--- branches/DARWIN/none/tests/Makefile.am 2009-03-16 02:51:55 UTC (rev 9425)
+++ branches/DARWIN/none/tests/Makefile.am 2009-03-16 03:20:45 UTC (rev 9426)
@@ -137,6 +137,7 @@
floored fork fucomip \
munmap_exe map_unaligned map_unmap mq \
nestedfns \
+ pending \
pth_atfork1 pth_blockedsig pth_cancel1 pth_cancel2 pth_cvsimple \
pth_empty pth_exit pth_exit2 pth_mutexspeed pth_once pth_rwlock \
pth_stackalign \
@@ -152,13 +153,10 @@
# - async-sigs and fdleak_ipv4 both build and run under Valgrind (although
# they die)... I think they are disabled because they currently screw up
# other tests.
-# - 'pending' doesn't build because Darwin lacks sigwaitinfo [should
-# probably do a configure-time check for it]
if ! VGCONF_OS_IS_DARWIN
check_PROGRAMS += \
async-sigs \
- fdleak_ipv4 \
- pending
+ fdleak_ipv4
endif
# DDD:
# - blockfault hangs
Modified: branches/DARWIN/none/tests/pending.c
===================================================================
--- branches/DARWIN/none/tests/pending.c 2009-03-16 02:51:55 UTC (rev 9425)
+++ branches/DARWIN/none/tests/pending.c 2009-03-16 03:20:45 UTC (rev 9426)
@@ -69,6 +69,7 @@
}
printf("6: checking SIGUSR2 still pending...\n");
+# if HAVE_SIGWAITINFO
if (sigwaitinfo(&all, &info) == -1) {
perror("FAILED: sigwaitinfo failed");
return 1;
@@ -78,6 +79,7 @@
info.si_signo);
return 1;
}
+# endif
printf("OK\n");
return 0;
|