Re: valgrind broken w/ pinsyscalls ? mark broken for 7.7 ?

2025-03-11 Thread ASOU Masato
Hi, On Sat, Mar 8, 2025 at 6:09 PM Landry Breuil wrote: > > hi, > > apparently valgrind is broken at runtime: > > $valgrind > memcheck-amd64-openbsd[23142]: pinsyscalls addr 3806a478 code 20, pinoff > 0x (pin 0 0-0 0) (libcpin 0 0-0 0) error 78 > Abort trap (core dumped) Yes, valgrind is

Re: Valgrind: Detect access outside the range of malloc.

2023-10-17 Thread Masato Asou
From: Otto Moerbeek Date: Tue, 17 Oct 2023 10:54:17 +0200 > On Tue, Oct 17, 2023 at 05:41:06PM +0900, Masato Asou wrote: > >> From: Otto Moerbeek >> Date: Tue, 17 Oct 2023 07:52:12 +0200 >> >> > On Tue, Oct 17, 2023 at 07:33:47AM +0900, Masato Asou wrote: >> > >> >> From: Masato Asou >> >> D

Re: Valgrind: Detect access outside the range of malloc.

2023-10-17 Thread Otto Moerbeek
On Tue, Oct 17, 2023 at 05:41:06PM +0900, Masato Asou wrote: > From: Otto Moerbeek > Date: Tue, 17 Oct 2023 07:52:12 +0200 > > > On Tue, Oct 17, 2023 at 07:33:47AM +0900, Masato Asou wrote: > > > >> From: Masato Asou > >> Date: Fri, 29 Sep 2023 19:39:12 +0900 (JST) > >> > >> ping > > > > Sor

Re: Valgrind: Detect access outside the range of malloc.

2023-10-17 Thread Masato Asou
From: Otto Moerbeek Date: Tue, 17 Oct 2023 07:52:12 +0200 > On Tue, Oct 17, 2023 at 07:33:47AM +0900, Masato Asou wrote: > >> From: Masato Asou >> Date: Fri, 29 Sep 2023 19:39:12 +0900 (JST) >> >> ping > > Sorry for not replying earlier. No problem :-) > The locations are reported > correct

Re: Valgrind: Detect access outside the range of malloc.

2023-10-16 Thread Otto Moerbeek
On Tue, Oct 17, 2023 at 07:33:47AM +0900, Masato Asou wrote: > From: Masato Asou > Date: Fri, 29 Sep 2023 19:39:12 +0900 (JST) > > ping Sorry for not replying earlier. The locations are reported correctly now. But there are spurious reports of accesses of a 8 byte value on each system call. (te

Re: Valgrind: Detect access outside the range of malloc.

2023-10-16 Thread Masato Asou
From: Masato Asou Date: Fri, 29 Sep 2023 19:39:12 +0900 (JST) ping > I have fixed the bug you reported when symbols were not printed. > > As shown below, if the lower 12 bits of Virtual Address are 0 and File > Size is 0, then the a.out symbol will not be printed. > > $ readelf -l a.out > > P

Re: Valgrind: Detect access outside the range of malloc.

2023-09-29 Thread Masato Asou
I have fixed the bug you reported when symbols were not printed. As shown below, if the lower 12 bits of Virtual Address are 0 and File Size is 0, then the a.out symbol will not be printed. $ readelf -l a.out Program Headers: Type Offset VirtAddr PhysAddr

Re: Valgrind: Detect access outside the range of malloc.

2023-09-04 Thread Otto Moerbeek
On Tue, Sep 05, 2023 at 03:00:12PM +0900, Masato Asou wrote: > From: Otto Moerbeek > Date: Tue, 5 Sep 2023 07:40:18 +0200 > > > On Tue, Sep 05, 2023 at 09:38:40AM +0900, Masato Asou wrote: > > > >> hi, > >> > >> I have fixed a bug in Valgrind. The Valgrind could not detect access > >> outside

Re: Valgrind: Detect access outside the range of malloc.

2023-09-04 Thread Masato Asou
From: Otto Moerbeek Date: Tue, 5 Sep 2023 07:40:18 +0200 > On Tue, Sep 05, 2023 at 09:38:40AM +0900, Masato Asou wrote: > >> hi, >> >> I have fixed a bug in Valgrind. The Valgrind could not detect access >> outside the range of malloc. >> >> comments, ok? > > This works much better that befor

Re: Valgrind: Detect access outside the range of malloc.

2023-09-04 Thread Otto Moerbeek
On Tue, Sep 05, 2023 at 09:38:40AM +0900, Masato Asou wrote: > hi, > > I have fixed a bug in Valgrind. The Valgrind could not detect access > outside the range of malloc. > > comments, ok? This works much better that before. Thanks for working on this! It now detects out of bounds read and wri

Re: Valgrind 3.21.0

2023-07-17 Thread Theo Buehler
On Thu, Jul 13, 2023 at 10:05:53AM +0900, Masato Asou wrote: > From: Masato Asou > Date: Mon, 10 Jul 2023 08:05:16 +0900 (JST) > > > hi ports > > > > I made Valgrind 3.21.0 into a ports. > > > > In Valgrind 3.10.1 ports, some diffs were placed in > > https://ftp.openbsd.org/pub/OpenBSD/distfile

Re: valgrind: mark broken

2022-10-11 Thread Masato Asou
From: Theo Buehler Date: Sat, 8 Oct 2022 11:46:36 +0200 > There are still a few syscall numbers that are missing or not quite > right. I'll need a bit of time to think about the rest of your diff. > > --- vki-scnums-openbsd.h Sat Oct 8 11:32:14 2022 > +++ syscall.h Sat Oct 8 11:46:11 2022

Re: valgrind: mark broken

2022-10-08 Thread Theo Buehler
Let's leave uebayasi out of this. On Sat, Oct 08, 2022 at 03:34:37PM +0900, Masato Asou wrote: > From: Stefan Sperling > Date: Fri, 7 Oct 2022 10:27:47 +0200 > > > On Fri, Oct 07, 2022 at 02:37:15PM +0900, Masato Asou wrote: > >> Hi tb and ports, > >> > >> I have adapted the system call number

Re: valgrind: mark broken

2022-10-07 Thread Masato Asou
From: Stefan Sperling Date: Fri, 7 Oct 2022 10:27:47 +0200 > On Fri, Oct 07, 2022 at 02:37:15PM +0900, Masato Asou wrote: >> Hi tb and ports, >> >> I have adapted the system call number definition to the new syscall.h >> >> comments, ok? > > Thank you! > > I have tried running devel/got in va

Re: valgrind: mark broken

2022-10-07 Thread Masato Asou
From: Stefan Sperling Date: Fri, 7 Oct 2022 10:27:47 +0200 > On Fri, Oct 07, 2022 at 02:37:15PM +0900, Masato Asou wrote: >> Hi tb and ports, >> >> I have adapted the system call number definition to the new syscall.h >> >> comments, ok? > > Thank you! > > I have tried running devel/got in va

Re: valgrind: mark broken

2022-10-07 Thread Stefan Sperling
On Fri, Oct 07, 2022 at 02:37:15PM +0900, Masato Asou wrote: > Hi tb and ports, > > I have adapted the system call number definition to the new syscall.h > > comments, ok? Thank you! I have tried running devel/got in valgrind and it fails because the __realpath syscall is missing. Could this be

Re: valgrind: mark broken

2022-10-06 Thread Masato Asou
Hi tb and ports, I have adapted the system call number definition to the new syscall.h comments, ok? Index: Makefile === RCS file: /cvs/ports/devel/valgrind/Makefile,v retrieving revision 1.29 diff -u -p -r1.29 Makefile --- Makefile

Re: valgrind

2020-12-17 Thread Masato Asou
From: Otto Moerbeek Subject: Re: valgrind Date: Wed, 16 Dec 2020 20:27:58 +0100 > On Wed, Dec 16, 2020 at 09:33:43AM +0100, Otto Moerbeek wrote: > >> On Mon, Dec 14, 2020 at 02:24:52PM +0900, Masato Asou wrote: >> >> > Hi, >> > >> > From: Otto M

Re: valgrind

2020-12-16 Thread Otto Moerbeek
On Wed, Dec 16, 2020 at 09:33:43AM +0100, Otto Moerbeek wrote: > On Mon, Dec 14, 2020 at 02:24:52PM +0900, Masato Asou wrote: > > > Hi, > > > > From: Otto Moerbeek > > Date: Fri, 11 Dec 2020 08:54:36 +0100 > > > > > Hi, > > > > > > I did some basic testing of valgrind on amd64 and it seems to

Re: valgrind

2020-12-16 Thread Otto Moerbeek
On Mon, Dec 14, 2020 at 02:24:52PM +0900, Masato Asou wrote: > Hi, > > From: Otto Moerbeek > Date: Fri, 11 Dec 2020 08:54:36 +0100 > > > Hi, > > > > I did some basic testing of valgrind on amd64 and it seems to be in > > better shape than before, at least for memory leak detection. > > > > Bu

Re: valgrind

2020-12-13 Thread Masato Asou
Hi, From: Otto Moerbeek Date: Fri, 11 Dec 2020 08:54:36 +0100 > Hi, > > I did some basic testing of valgrind on amd64 and it seems to be in > better shape than before, at least for memory leak detection. > > But I do seem to get a report on every syscall done. One example: > > ==7218== Use of

Re: valgrind + llvm10

2020-09-15 Thread Masato Asou
From: Martijn van Duren Date: Mon, 14 Sep 2020 11:42:20 +0200 > On Mon, 2020-09-14 at 18:12 +0900, Masato Asou wrote: >> Hi, >> >> From: Martijn van Duren >> Date: Mon, 14 Sep 2020 10:43:28 +0200 >> >> > I did some bisecting and it seems that the update to clang 10 broke >> > valgrind. Specifi

Re: valgrind + llvm10

2020-09-14 Thread Martijn van Duren
On Mon, 2020-09-14 at 18:12 +0900, Masato Asou wrote: > Hi, > > From: Martijn van Duren > Date: Mon, 14 Sep 2020 10:43:28 +0200 > > > I did some bisecting and it seems that the update to clang 10 broke > > valgrind. Specifically /usr/local/lib/valgrind/memcheck-amd64-openbsd: > > > > $ ktrace -

Re: valgrind + llvm10

2020-09-14 Thread Masato Asou
Hi, From: Martijn van Duren Date: Mon, 14 Sep 2020 10:43:28 +0200 > I did some bisecting and it seems that the update to clang 10 broke > valgrind. Specifically /usr/local/lib/valgrind/memcheck-amd64-openbsd: > > $ ktrace -i /usr/local/lib/valgrind/memcheck-amd64-openbsd > Abort trap > $ kdump

Re: Valgrind: patch to run Pthread target program

2019-12-08 Thread Masato Asou
Sorry, From: Masato Asou Date: Mon, 09 Dec 2019 14:50:41 +0900 (JST) > Valgrind does not run Pthread target program. > I made patch to run Pthread target program. I forget increment REVISION in Makefile. -- ASOU Masato

Re: Valgrind: Delete 'USE_WXNEEDED = Yes' from Makefile

2019-11-06 Thread Masato Asou
oved files: > devel/valgrind/patches: >patch-coregrind_m_scheduler_scheduler_c >patch-coregrind_pub_core_transtab_h > > Log message: > Delete mmap(PROT_WRITE) from the memory area of the execution code of the > target program. From: Rafael Sadowski Subject: Re

Re: Valgrind: Delete 'USE_WXNEEDED = Yes' from Makefile

2019-11-05 Thread Rafael Sadowski
On Mon Oct 28, 2019 at 11:36:47AM +0900, Masato Asou wrote: > From: Masato Asou > Subject: Valgrind: Delete 'USE_WXNEEDED = Yes' from Makefile > Date: Fri, 25 Oct 2019 16:40:43 +0900 (JST) > > > Hi ports, > > > > The Valgrind specifies 'READ | WRITE | EXEC' when allocating memory > > for target

Re: valgrind diff to fix run memcheck on amd64

2019-10-22 Thread Masato Asou
Sorry, From: Stuart Henderson Date: Fri, 18 Oct 2019 21:58:25 +0100 > On 2019/10/18 15:08, Masato Asou wrote: >> From: YASUOKA Masahiko >> Date: Wed, 02 Oct 2019 23:29:05 +0900 (JST) >> >> > I looked into the problem more. >> > >> > - unveil(2) itself fails >> > - so file system related sys

Re: valgrind diff to fix run memcheck on amd64

2019-10-20 Thread Masato Asou
From: Stuart Henderson Subject: Re: valgrind diff to fix run memcheck on amd64 Date: Fri, 18 Oct 2019 21:58:25 +0100 > On 2019/10/18 15:08, Masato Asou wrote: >> From: YASUOKA Masahiko >> Date: Wed, 02 Oct 2019 23:29:05 +0900 (JST) >> >> > I looked into the proble

Re: valgrind diff to fix run memcheck on amd64

2019-10-18 Thread Stuart Henderson
On 2019/10/18 15:08, Masato Asou wrote: > From: YASUOKA Masahiko > Date: Wed, 02 Oct 2019 23:29:05 +0900 (JST) > > > I looked into the problem more. > > > > - unveil(2) itself fails > > - so file system related system calls are not restricted (yet) > > > > valgrind complains: > > > > ==13326

Re: valgrind diff to fix run memcheck on amd64

2019-10-17 Thread Masato Asou
From: YASUOKA Masahiko Date: Wed, 02 Oct 2019 23:29:05 +0900 (JST) > I looked into the problem more. > > - unveil(2) itself fails > - so file system related system calls are not restricted (yet) > > valgrind complains: > > ==13326== > --13326-- WARNING: unhandled syscall: 114 > --13326-- You

Re: valgrind diff to fix run memcheck on amd64

2019-10-03 Thread Masato Asou
Sorry, my delayed reply. From: YASUOKA Masahiko Date: Wed, 02 Oct 2019 23:29:05 +0900 (JST) > I looked into the problem more. > > - unveil(2) itself fails > - so file system related system calls are not restricted (yet) > > valgrind complains: > > ==13326== > --13326-- WARNING: unhandled sy

Re: valgrind diff to fix run memcheck on amd64

2019-10-02 Thread Theo de Raadt
YASUOKA Masahiko wrote: > On Wed, 02 Oct 2019 08:35:26 -0600 > "Theo de Raadt" wrote: > > YASUOKA Masahiko wrote: > >> On Wed, 02 Oct 2019 07:24:46 -0600 > >> "Theo de Raadt" wrote: > >> >> As far as my test (the log attached), valgrind seems to work with > >> >> "pledge" but not work with "un

Re: valgrind diff to fix run memcheck on amd64

2019-10-02 Thread YASUOKA Masahiko
On Wed, 02 Oct 2019 08:35:26 -0600 "Theo de Raadt" wrote: > YASUOKA Masahiko wrote: >> On Wed, 02 Oct 2019 07:24:46 -0600 >> "Theo de Raadt" wrote: >> >> As far as my test (the log attached), valgrind seems to work with >> >> "pledge" but not work with "unveil". >> >> >> >> Is there any fundamen

Re: valgrind diff to fix run memcheck on amd64

2019-10-02 Thread Theo de Raadt
YASUOKA Masahiko wrote: > On Wed, 02 Oct 2019 07:24:46 -0600 > "Theo de Raadt" wrote: > >> As far as my test (the log attached), valgrind seems to work with > >> "pledge" but not work with "unveil". > >> > >> Is there any fundamental problem of valgrind to work with "pledge"? > > > > If unveil

Re: valgrind diff to fix run memcheck on amd64

2019-10-02 Thread YASUOKA Masahiko
On Wed, 02 Oct 2019 07:24:46 -0600 "Theo de Raadt" wrote: >> As far as my test (the log attached), valgrind seems to work with >> "pledge" but not work with "unveil". >> >> Is there any fundamental problem of valgrind to work with "pledge"? > > If unveil causes problems, then that means it is try

Re: valgrind diff to fix run memcheck on amd64

2019-10-02 Thread Theo de Raadt
> As far as my test (the log attached), valgrind seems to work with > "pledge" but not work with "unveil". > > Is there any fundamental problem of valgrind to work with "pledge"? If unveil causes problems, then that means it is trying to access files. unveil will return ENOENT or EACCES for files

Re: valgrind diff to fix run memcheck on amd64

2019-10-02 Thread YASUOKA Masahiko
Hi, On Tue, 1 Oct 2019 16:15:51 +0100 Stuart Henderson wrote: > On 2019/10/01 11:13, Kurt Mosiejczuk wrote: >> Unfortunately on my test amd64 box, valgrind still just abort traps on >> launch. >> >> eisenhower$ valgrind >> Abort trap >> eisenhower$ valgrind /bin/ls >> Abort trap >> eisenhower$ v

Re: valgrind diff to fix run memcheck on amd64

2019-10-02 Thread YASUOKA Masahiko
On Tue, 1 Oct 2019 11:32:36 -0400 Kurt Mosiejczuk wrote: > On Tue, Oct 01, 2019 at 04:15:51PM +0100, Stuart Henderson wrote: >> On 2019/10/01 11:13, Kurt Mosiejczuk wrote: >> > Unfortunately on my test amd64 box, valgrind still just abort traps on >> > launch. > >> > eisenhower$ valgrind >> > Abo

Re: valgrind diff to fix run memcheck on amd64

2019-10-01 Thread Theo de Raadt
Stuart Henderson wrote: > On 2019/10/01 11:13, Kurt Mosiejczuk wrote: > > On Tue, Oct 01, 2019 at 12:42:18PM +0200, Rafael Sadowski wrote: > > > On Tue Oct 01, 2019 at 03:54:32PM +0900, Masato Asou wrote: > > > > > > Additional information: > > > > > > - Abort trap was occurred when lounched

Re: valgrind diff to fix run memcheck on amd64

2019-10-01 Thread Stuart Henderson
On 2019/10/01 11:13, Kurt Mosiejczuk wrote: > On Tue, Oct 01, 2019 at 12:42:18PM +0200, Rafael Sadowski wrote: > > On Tue Oct 01, 2019 at 03:54:32PM +0900, Masato Asou wrote: > > > > Additional information: > > > > - Abort trap was occurred when lounched valgrind. > > > > $ cd /usr/ports/d

Re: valgrind diff to fix run memcheck on amd64

2019-10-01 Thread Rafael Sadowski
On Tue Oct 01, 2019 at 03:54:32PM +0900, Masato Asou wrote: > From: Masato Asou > Date: Fri, 27 Sep 2019 13:18:50 +0900 (JST) > > > Hi ports, > > > > This is a patch for running valgrind memcheck on amd64. I corrected > > the following two problems. > > > > - FS register can be used. > > -

Re: valgrind diff to fix run memcheck on amd64

2019-10-01 Thread Masato Asou
From: Masato Asou Date: Fri, 27 Sep 2019 13:18:50 +0900 (JST) > Hi ports, > > This is a patch for running valgrind memcheck on amd64. I corrected > the following two problems. > > - FS register can be used. > - Fixed a problem that strip command rewrites offset and align of > memcheck E

Re: Valgrind W^X Violation

2017-05-26 Thread Stuart Henderson
[ moved to ports@ ] On 2017-05-25, Peter Ezetta wrote: > Hello Misc, > > I have been trying to get Valgrind to run on OpenBSD 6.1-release, with > all errata applied via syspatch(8), and I am having no luck. When > executing Valgrind against any binary (or no binary at all), it claims to > run out

Re: valgrind error - W^X violation

2016-07-10 Thread Thomas Frohwein
Forgot to include ports in the reply. Forwarded below. > On Saturday, July 9, 2016 11:57 AM, Thomas Frohwein > wrote: > >> On Saturday, July 9, 2016 11:41 AM, Stuart Henderson > wrote: > >> > Have you tried it with an executable on /usr/local? cal (in /usr/bin) > is not on >> a wallow

Re: valgrind error - W^X violation

2016-07-09 Thread Stuart Henderson
Have you tried it with an executable on /usr/local? cal (in /usr/bin) is not on a wallowed filesystem. On 9 July 2016 16:29:23 BST, Thomas Frohwein wrote: > > > >Independent of executable or doas/su, valgrind fails with the following >error message for me on -current: >$valgrind cal >valgrind:

Re: Valgrind

2014-12-11 Thread David Coppa
On Thu, Dec 11, 2014 at 5:22 PM, Masao Uebayashi wrote: > Reflected your comments + others from zhuk@. Especially, in DESCR, mention > "valgrind-openbsd" page to report problems. > > Any explicit OK? Looks good. Ok with me, and thanks for your work on valgrind! ciao, David > diff -Nru valgrind

Re: Valgrind

2014-12-11 Thread Masao Uebayashi
Reflected your comments + others from zhuk@. Especially, in DESCR, mention "valgrind-openbsd" page to report problems. Any explicit OK? diff -Nru valgrind.orig/Makefile valgrind/Makefile --- valgrind.orig/Makefile Thu Dec 4 22:59:34 2014 +++ valgrind/Makefile Fri Dec 12 01:08:51 2014 @@

Re: Valgrind

2014-12-11 Thread Stuart Henderson
On 2014/12/11 16:24, Masao Uebayashi wrote: > Here is the first attempt to port Valgrind to OpenBSD/amd64. Heavily based > on that of FreeBSD. > > https://wiki.freebsd.org/Valgrind > https://bitbucket.org/stass/valgrind-freebsd I have a few minor tweaks, >COMMENT = Ins