Valgrind for FreeBSD

Joe Halpin j.p.h at
Wed Apr 14 09:52:55 PDT 2004

Doug Rabson wrote:
> As some of you might be aware, recently I've been working on porting the 
> excellent valgrind debugger to FreeBSD (both -stable and -current). If 
> you are interested in trying it out, you can find details on how to get 
> the latest version at Enjoy...

I'm a little confused at some of the results I see. I'm trying to use 
valgrind as part of the daily build tests for the curl project. The 
tests work fine on linux, but with the FreeBSD version of valgrind I get 

fbsd$ valgrind --leak-check=yes --logfile-fd=3 
src/curl/usr/libexec/ Cannot open 

fbsd$ ls -l /usr/local/lib/valgrind/
-rwxr-xr-x  1 root  wheel  38445 Apr 12 09:26 

fbsd$ file /usr/local/lib/valgrind/
/usr/local/lib/valgrind/ ELF 32-bit LSB shared object, 
Intel 80386, version 1 (FreeBSD), not stripped

However, it seems to work ok if I don't use --logfile-fd=3.

Unfortunatly I don't have the time or the expertise to go through the 
code at the moment, so I'm hoping this might suggest something to you.



More information about the freebsd-current mailing list