valgrind? (was Fwd: [Bug 417004] python crashes when loading gnome bindings.)

Daniel J. Luke dluke at
Sat Mar 17 10:48:45 PDT 2007

On Mar 17, 2007, at 1:38 PM, Paul Beard wrote:
> Yes, I saw that. Does anyone know what valgrind does/how it works  
> and if there is something similar in the Darwin/MacPorts toolchain?  
> It doesn't build on Darwin as it requires a lot of integration with  
> the kernel of the host system.

It's a debugging and profiling tool.

I think you do do some (but probably not all) of the memory checks  
with other tools on Mac OS X (it looks like they were asking you to  
run the program with valgrind's memory checks). Setting  
MallocPreScribble, MallocScribble, MallocBadFreeAbort,  
MallocStackLogging, running leaks, and maybe malloc_history (see the  
malloc(), leaks, and malloc_history man pages) should approximate  
what it seems like they are looking for.

Daniel J. Luke
| *---------------- dluke at ----------------* |
| *-------------- -------------* |
|   Opinions expressed are mine and do not necessarily   |
|          reflect the opinions of my employer.          |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url :

More information about the macports-users mailing list