|
From: <sv...@va...> - 2009-07-15 05:46:54
|
Author: njn
Date: 2009-07-15 06:46:43 +0100 (Wed, 15 Jul 2009)
New Revision: 10457
Log:
Handle setpgid(). Partly addresses bug 198624.
Modified:
trunk/coregrind/m_syswrap/syswrap-darwin.c
trunk/memcheck/tests/darwin/scalar.c
trunk/memcheck/tests/darwin/scalar.stderr.exp
Modified: trunk/coregrind/m_syswrap/syswrap-darwin.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-darwin.c 2009-07-15 03:08:35 UTC (rev 10456)
+++ trunk/coregrind/m_syswrap/syswrap-darwin.c 2009-07-15 05:46:43 UTC (rev 10457)
@@ -7124,7 +7124,7 @@
GENXY(__NR_getgroups, sys_getgroups),
// _____(__NR_setgroups), // 80
GENX_(__NR_getpgrp, sys_getpgrp),
-// _____(__NR_setpgid),
+ GENX_(__NR_setpgid, sys_setpgid),
GENXY(__NR_setitimer, sys_setitimer),
_____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(84)), // old wait
// _____(__NR_swapon),
Modified: trunk/memcheck/tests/darwin/scalar.c
===================================================================
--- trunk/memcheck/tests/darwin/scalar.c 2009-07-15 03:08:35 UTC (rev 10456)
+++ trunk/memcheck/tests/darwin/scalar.c 2009-07-15 05:46:43 UTC (rev 10457)
@@ -160,14 +160,16 @@
GO_UNIMP(77, "old vlimit");
- // __NR_mincore 218
- GO(__NR_mincore, 218, "3s 1m");
+ GO(__NR_mincore, 78, "3s 1m");
SY(__NR_mincore, x0, x0+40960, x0); FAIL;
// __NR_getgroups 79
// __NR_setgroups 80
// __NR_getpgrp 81
- // __NR_setpgid 82
+
+ GO(__NR_setpgid, 82, "2s 0m");
+ SY(__NR_setpgid, x0-1, x0-1); FAIL;
+
// __NR_setitimer 83
GO_UNIMP(78, "old wait");
Modified: trunk/memcheck/tests/darwin/scalar.stderr.exp
===================================================================
--- trunk/memcheck/tests/darwin/scalar.stderr.exp 2009-07-15 03:08:35 UTC (rev 10456)
+++ trunk/memcheck/tests/darwin/scalar.stderr.exp 2009-07-15 05:46:43 UTC (rev 10457)
@@ -235,7 +235,7 @@
(77): old vlimit
-----------------------------------------------------
-----------------------------------------------------
-x200004e(218): __NR_mincore 3s 1m
+x200004e(78): __NR_mincore 3s 1m
-----------------------------------------------------
Syscall param mincore(start) contains uninitialised byte(s)
@@ -251,6 +251,15 @@
...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+x2000052(82): __NR_setpgid 2s 0m
+-----------------------------------------------------
+
+Syscall param setpgid(pid) contains uninitialised byte(s)
+ ...
+
+Syscall param setpgid(pgid) contains uninitialised byte(s)
+ ...
+-----------------------------------------------------
(78): old wait
-----------------------------------------------------
-----------------------------------------------------
@@ -623,6 +632,9 @@
Syscall param stat_extended(fsacl_size) contains uninitialised byte(s)
...
+More than 100 errors detected. Subsequent errors
+will still be recorded, but in less detail than before.
+
Syscall param stat_extended(file_name) points to unaddressable byte(s)
...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
@@ -631,9 +643,6 @@
...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-More than 100 errors detected. Subsequent errors
-will still be recorded, but in less detail than before.
-
Syscall param stat_extended(fsacl_size) points to unaddressable byte(s)
...
Address 0x........ is not stack'd, malloc'd or (recently) free'd
|