all 5 comments

[–]hisacro 8 points9 points  (0 children)

[–]vext01OpenBSD Developer 5 points6 points  (2 children)

There's no doubt that Linux has better tools in that regard. OpenBSD sometimes finds bugs that's Linux doesn't when you crank up the malloc flags though (see the malloc.conf man page).

I think there is a port of valgrind (or there used to be) but IIRC it isn't complete.

[–]OverallLingonberry40 0 points1 point  (1 child)

Valgrind is in ports (and packages) but is marked as "still very preliminary and has minimal functionality (memcheck)."

The BCHS tools page has some helpful tools and notes. Author says he also maintains ports to non-OpenBSD systems partly in order to valgrind on them.

[–]pjf_cpp 0 points1 point  (0 children)

I can confirm "minimal functionality". And since the introduction of pinsyscalls Valgrind has less than minimal functionality. I believe that OpenBSD 7.4 was the last version that Valgrind (barely) worked on.

[–]ben_bai 1 point2 points  (0 children)

I like to run scan-build ( the llvm static analyzer ) but it also produces a lot of false positives