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
(3) |
2
(2) |
3
(5) |
4
|
|
5
(3) |
6
|
7
|
8
(1) |
9
(3) |
10
|
11
|
|
12
|
13
(2) |
14
|
15
|
16
(1) |
17
(1) |
18
|
|
19
(1) |
20
|
21
(3) |
22
|
23
(1) |
24
(1) |
25
(4) |
|
26
|
27
(1) |
28
(9) |
|
|
|
|
|
From: Paul F. <pa...@so...> - 2023-02-25 15:12:54
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=5cf51ca2f658a945f28853fd948a8f2f12fb8ffb commit 5cf51ca2f658a945f28853fd948a8f2f12fb8ffb Author: Paul Floyd <pj...@wa...> Date: Sat Feb 25 16:12:14 2023 +0100 And here is the updated expected for FreeBSD scalar x86 mknodat Diff: --- memcheck/tests/freebsd/scalar.stderr.exp-x86 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memcheck/tests/freebsd/scalar.stderr.exp-x86 b/memcheck/tests/freebsd/scalar.stderr.exp-x86 index 89919707d3..e995fc28d6 100644 --- a/memcheck/tests/freebsd/scalar.stderr.exp-x86 +++ b/memcheck/tests/freebsd/scalar.stderr.exp-x86 @@ -5249,7 +5249,10 @@ Syscall param mknodat(path) contains uninitialised byte(s) Syscall param mknodat(mode) contains uninitialised byte(s) ... -Syscall param mknodat(dev) contains uninitialised byte(s) +Syscall param mknodat(dev_low) contains uninitialised byte(s) + ... + +Syscall param mknodat(idev_high) contains uninitialised byte(s) ... Syscall param mknodat(pathname) points to unaddressable byte(s) |
|
From: Paul F. <pa...@so...> - 2023-02-25 15:10:34
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=f6f7cae623a82b4572a9e0dfa8f2bf855b4c8b49 commit f6f7cae623a82b4572a9e0dfa8f2bf855b4c8b49 Author: Paul Floyd <pj...@wa...> Date: Sat Feb 25 16:09:41 2023 +0100 FreeBSD mknodat syscall dev arg is 64bits so the syscall needs splitting into amd64 and x86 versions Diff: --- coregrind/m_syswrap/syswrap-amd64-freebsd.c | 10 ++++++++++ coregrind/m_syswrap/syswrap-freebsd.c | 9 +-------- coregrind/m_syswrap/syswrap-x86-freebsd.c | 10 ++++++++++ 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/coregrind/m_syswrap/syswrap-amd64-freebsd.c b/coregrind/m_syswrap/syswrap-amd64-freebsd.c index 4372e6b719..e54b157dd7 100644 --- a/coregrind/m_syswrap/syswrap-amd64-freebsd.c +++ b/coregrind/m_syswrap/syswrap-amd64-freebsd.c @@ -1043,6 +1043,16 @@ POST(sys_procctl) } } +// SYS_mknodat 559 +// int mknodat(int fd, const char *path, mode_t mode, dev_t dev); +PRE(sys_mknodat) +{ + PRINT("sys_mknodat ( %" FMT_REGWORD "u, %#" FMT_REGWORD "x(%s), 0x%" FMT_REGWORD "x, 0x%" FMT_REGWORD "x )", ARG1,ARG2,(char*)ARG2,ARG3,ARG4 ); + PRE_REG_READ4(long, "mknodat", + int, fd, const char *, path, vki_mode_t, mode, vki_dev_t, dev); + PRE_MEM_RASCIIZ( "mknodat(pathname)", ARG2 ); +} + #if (FREEBSD_VERS >= FREEBSD_12) // SYS_cpuset_getdomain 561 diff --git a/coregrind/m_syswrap/syswrap-freebsd.c b/coregrind/m_syswrap/syswrap-freebsd.c index 1ab63ba491..0d64d57605 100644 --- a/coregrind/m_syswrap/syswrap-freebsd.c +++ b/coregrind/m_syswrap/syswrap-freebsd.c @@ -6310,14 +6310,7 @@ POST(sys_fhstatfs) } // SYS_mknodat 559 -// int mknodat(int fd, const char *path, mode_t mode, dev_t dev); -PRE(sys_mknodat) -{ - PRINT("sys_mknodat ( %" FMT_REGWORD "u, %#" FMT_REGWORD "x(%s), 0x%" FMT_REGWORD "x, 0x%" FMT_REGWORD "x )", ARG1,ARG2,(char*)ARG2,ARG3,ARG4 ); - PRE_REG_READ4(long, "mknodat", - int, fd, const char *, path, vki_mode_t, mode, vki_dev_t, dev); - PRE_MEM_RASCIIZ( "mknodat(pathname)", ARG2 ); -} +// x86 / amd64 // SYS_kevent 560 // int kevent(int kq, const struct kevent *changelist, int nchanges, diff --git a/coregrind/m_syswrap/syswrap-x86-freebsd.c b/coregrind/m_syswrap/syswrap-x86-freebsd.c index e8e5a2f89d..61803a37b8 100644 --- a/coregrind/m_syswrap/syswrap-x86-freebsd.c +++ b/coregrind/m_syswrap/syswrap-x86-freebsd.c @@ -1471,6 +1471,16 @@ POST(sys_procctl) } } +// SYS_mknodat 559 +// int mknodat(int fd, const char *path, mode_t mode, dev_t dev); +PRE(sys_mknodat) +{ + PRINT("sys_mknodat ( %" FMT_REGWORD "u, %#" FMT_REGWORD "x(%s), 0x%" FMT_REGWORD "x, 0x%" FMT_REGWORD "x )", ARG1,ARG2,(char*)ARG2,ARG3,ARG4 ); + PRE_REG_READ5(long, "mknodat", + int, fd, const char *, path, vki_mode_t, mode, vki_uint32_t, MERGE64_FIRST(dev), vki_uint32_t, MERGE64_SECOND(idev)) + PRE_MEM_RASCIIZ( "mknodat(pathname)", ARG2 ); +} + #if (FREEBSD_VERS >= FREEBSD_12) // SYS_cpuset_getdomain 561 |
|
From: Paul F. <pa...@so...> - 2023-02-25 15:09:17
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=615336329b93a83d6f6e522be087e21382c0238f commit 615336329b93a83d6f6e522be087e21382c0238f Author: Paul Floyd <pj...@wa...> Date: Sat Feb 25 16:08:40 2023 +0100 Small update to FreeBSD x86 scalar expected Diff: --- memcheck/tests/freebsd/scalar.stderr.exp-x86 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memcheck/tests/freebsd/scalar.stderr.exp-x86 b/memcheck/tests/freebsd/scalar.stderr.exp-x86 index 25687fec67..89919707d3 100644 --- a/memcheck/tests/freebsd/scalar.stderr.exp-x86 +++ b/memcheck/tests/freebsd/scalar.stderr.exp-x86 @@ -2030,7 +2030,7 @@ Syscall param lutimes(times) points to unaddressable byte(s) Syscall param preadv(fd) contains uninitialised byte(s) ... -Syscall param preadv(iovr) contains uninitialised byte(s) +Syscall param preadv(iov) contains uninitialised byte(s) ... Syscall param preadv(iovcnt) contains uninitialised byte(s) |
|
From: Paul F. <pa...@so...> - 2023-02-25 14:20:18
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=b861458d3dcb8340a47c342ef161089594b18898 commit b861458d3dcb8340a47c342ef161089594b18898 Author: Paul Floyd <pj...@wa...> Date: Sat Feb 25 15:16:35 2023 +0100 FreeBSD: make rfork() fail more gracefully rfork() is barely used in base FreeBSD. The main use is in posix_spawn(). If rfork() fails with EINVAL then it falls back to using vfork(). This is preferable to Valgrind bombing. ksh93 uses posix_spawn. I tested bash and csh and they had no problems. Also add 'hello world" smoke tests for bash csh and ksh Diff: --- NEWS | 1 + coregrind/m_syswrap/syswrap-amd64-freebsd.c | 13 +++++++++---- coregrind/m_syswrap/syswrap-x86-freebsd.c | 11 ++++++++--- include/vki/vki-freebsd.h | 3 +++ none/tests/freebsd/Makefile.am | 14 +++++++++++++- none/tests/freebsd/bash_test.sh | 2 ++ none/tests/freebsd/bash_test.stderr.exp | 0 none/tests/freebsd/bash_test.stdout.exp | 1 + none/tests/freebsd/bash_test.vgtest | 4 ++++ none/tests/freebsd/csh_test.csh | 2 ++ none/tests/freebsd/csh_test.stderr.exp | 0 none/tests/freebsd/csh_test.stdout.exp | 1 + none/tests/freebsd/csh_test.vgtest | 2 ++ none/tests/freebsd/ksh_test.ksh | 2 ++ none/tests/freebsd/ksh_test.stderr.exp | 0 none/tests/freebsd/ksh_test.stdout.exp | 1 + none/tests/freebsd/ksh_test.vgtest | 4 ++++ 17 files changed, 53 insertions(+), 8 deletions(-) diff --git a/NEWS b/NEWS index 7fcfc667a2..c6ebdcb252 100644 --- a/NEWS +++ b/NEWS @@ -95,6 +95,7 @@ are not entered into bugzilla tend to get forgotten about or ignored. 464859 Build failures with GCC-13 (drd tsan_unittest) 464969 D language demangling 465435 m_libcfile.c:66 (vgPlain_safe_fd): Assertion 'newfd >= VG_(fd_hard_limit)' failed. +n-i-bz FreeBSD rfork syscall fail with EINVAL or EINVAL rather than VG_(unimplemented) To see details of a given bug, visit https://bugs.kde.org/show_bug.cgi?id=XXXXXX diff --git a/coregrind/m_syswrap/syswrap-amd64-freebsd.c b/coregrind/m_syswrap/syswrap-amd64-freebsd.c index dfbca4d7b5..4372e6b719 100644 --- a/coregrind/m_syswrap/syswrap-amd64-freebsd.c +++ b/coregrind/m_syswrap/syswrap-amd64-freebsd.c @@ -305,12 +305,17 @@ PRE(sys_clock_getcpuclockid2) PRE(sys_rfork) { PRINT("sys_rfork ( %#" FMT_REGWORD "x )", ARG1 ); - PRE_REG_READ1(long, "rfork", int, flags); + PRE_REG_READ1(pid_t, "rfork", int, flags); - VG_(message)(Vg_UserMsg, "rfork() not implemented"); - VG_(unimplemented)("Valgrind does not support rfork()."); + VG_(message)(Vg_UserMsg, "warning: rfork() not implemented\n"); - SET_STATUS_Failure(VKI_ENOSYS); + if ((UInt)ARG1 == VKI_RFSPAWN) { + // posix_spawn uses RFSPAWN and it will fall back to vfork + // if it sees EINVAL + SET_STATUS_Failure(VKI_EINVAL); + } else { + SET_STATUS_Failure(VKI_ENOSYS); + } } // SYS_preadv 289 diff --git a/coregrind/m_syswrap/syswrap-x86-freebsd.c b/coregrind/m_syswrap/syswrap-x86-freebsd.c index e28183d943..e8e5a2f89d 100644 --- a/coregrind/m_syswrap/syswrap-x86-freebsd.c +++ b/coregrind/m_syswrap/syswrap-x86-freebsd.c @@ -740,9 +740,14 @@ PRE(sys_rfork) *flags |= SfYieldAfter; } #else - VG_(message)(Vg_UserMsg, "rfork() not implemented"); - VG_(unimplemented)("Valgrind does not support rfork() yet."); - SET_STATUS_Failure( VKI_ENOSYS ); + VG_(message)(Vg_UserMsg, "rfork() not implemented\n"); + if ((UInt)ARG1 == VKI_RFSPAWN) { + // posix_spawn uses RFSPAWN and it will fall back to vfork + // if it sees EINVAL + SET_STATUS_Failure(VKI_EINVAL); + } else { + SET_STATUS_Failure(VKI_ENOSYS); + } #endif } diff --git a/include/vki/vki-freebsd.h b/include/vki/vki-freebsd.h index 2bbaa44188..f9ca51c036 100644 --- a/include/vki/vki-freebsd.h +++ b/include/vki/vki-freebsd.h @@ -1608,6 +1608,9 @@ struct vki_dirent { #define VKI_W_OK 0x02 /* test for write permission */ #define VKI_R_OK 0x04 /* test for read permission */ +#define VKI_RFSPAWN (1U<<31U) + + //---------------------------------------------------------------------- // From sys/msg.h //---------------------------------------------------------------------- diff --git a/none/tests/freebsd/Makefile.am b/none/tests/freebsd/Makefile.am index f956078d68..8148245c79 100644 --- a/none/tests/freebsd/Makefile.am +++ b/none/tests/freebsd/Makefile.am @@ -37,7 +37,19 @@ EXTRA_DIST = \ usrstack.stderr.exp \ usrstack.stdout.exp \ proc_pid_file.vgtest \ - proc_pid_file.stderr.exp + proc_pid_file.stderr.exp \ + bash_test.vgtest \ + bash_test.sh \ + bash_test.stderr.exp \ + bash_test.stdout.exp \ + csh_test.vgtest \ + csh_test.csh \ + csh_test.stderr.exp \ + csh_test.stdout.exp \ + ksh_test.vgtest \ + ksh_test.ksh \ + ksh_test.stderr.exp \ + ksh_test.stdout.exp check_PROGRAMS = \ auxv osrel swapcontext hello_world fexecve 452275 usrstack \ diff --git a/none/tests/freebsd/bash_test.sh b/none/tests/freebsd/bash_test.sh new file mode 100755 index 0000000000..de85e3bc8d --- /dev/null +++ b/none/tests/freebsd/bash_test.sh @@ -0,0 +1,2 @@ +#!/usr/local/bin/bash +echo Bash Hello, World! diff --git a/none/tests/freebsd/bash_test.stderr.exp b/none/tests/freebsd/bash_test.stderr.exp new file mode 100644 index 0000000000..e69de29bb2 diff --git a/none/tests/freebsd/bash_test.stdout.exp b/none/tests/freebsd/bash_test.stdout.exp new file mode 100644 index 0000000000..1826a62d1d --- /dev/null +++ b/none/tests/freebsd/bash_test.stdout.exp @@ -0,0 +1 @@ +Bash Hello, World! diff --git a/none/tests/freebsd/bash_test.vgtest b/none/tests/freebsd/bash_test.vgtest new file mode 100644 index 0000000000..604cd133cb --- /dev/null +++ b/none/tests/freebsd/bash_test.vgtest @@ -0,0 +1,4 @@ +# bash isn't part of base +prereq: test -e /usr/local/bin/bash +prog: bash_test.sh +vgopts: -q diff --git a/none/tests/freebsd/csh_test.csh b/none/tests/freebsd/csh_test.csh new file mode 100755 index 0000000000..7e7b4a6bf2 --- /dev/null +++ b/none/tests/freebsd/csh_test.csh @@ -0,0 +1,2 @@ +#!/bin/csh +echo Csh Hello, World! diff --git a/none/tests/freebsd/csh_test.stderr.exp b/none/tests/freebsd/csh_test.stderr.exp new file mode 100644 index 0000000000..e69de29bb2 diff --git a/none/tests/freebsd/csh_test.stdout.exp b/none/tests/freebsd/csh_test.stdout.exp new file mode 100644 index 0000000000..f91c2ec681 --- /dev/null +++ b/none/tests/freebsd/csh_test.stdout.exp @@ -0,0 +1 @@ +Csh Hello, World! diff --git a/none/tests/freebsd/csh_test.vgtest b/none/tests/freebsd/csh_test.vgtest new file mode 100644 index 0000000000..eaa5460ac1 --- /dev/null +++ b/none/tests/freebsd/csh_test.vgtest @@ -0,0 +1,2 @@ +prog: csh_test.csh +vgopts: -q diff --git a/none/tests/freebsd/ksh_test.ksh b/none/tests/freebsd/ksh_test.ksh new file mode 100755 index 0000000000..8dc470d990 --- /dev/null +++ b/none/tests/freebsd/ksh_test.ksh @@ -0,0 +1,2 @@ +#!/usr/local/bin/ksh93 +print Ksh Hello, World! diff --git a/none/tests/freebsd/ksh_test.stderr.exp b/none/tests/freebsd/ksh_test.stderr.exp new file mode 100644 index 0000000000..e69de29bb2 diff --git a/none/tests/freebsd/ksh_test.stdout.exp b/none/tests/freebsd/ksh_test.stdout.exp new file mode 100644 index 0000000000..ebd37bca8b --- /dev/null +++ b/none/tests/freebsd/ksh_test.stdout.exp @@ -0,0 +1 @@ +Ksh Hello, World! diff --git a/none/tests/freebsd/ksh_test.vgtest b/none/tests/freebsd/ksh_test.vgtest new file mode 100644 index 0000000000..af99583f54 --- /dev/null +++ b/none/tests/freebsd/ksh_test.vgtest @@ -0,0 +1,4 @@ +# ksh isn't part of base +prereq: test -e /usr/local/bin/ksh93 +prog: ksh_test.ksh +vgopts: -q |