On 08/16/10 14:11, James Carlson wrote:
Stephan Ferraro wrote:
I'm currently searching for an electric fence malloc. I read something that 
there exists a dmalloc.
Is there a documentation how to use it and where to get it on OpenSolaris?

You can do much with libumem and mdb.  See the umem_debug(3MALLOC) man
page for a good introduction.

It's also possible to use dmalloc:

http://developers.sun.com/solaris/articles/dmalloc_solaris.html

... but I personally don't bother with it, as (unlike the author of that
page ;-}) I've had better luck with libumem.

I guess your mileage will vary.  If you don't mind spending some money,
there's also Rational/IBM Purify.  The free counterpart of that would
probably be valgrind, which is an interesting tool on Linux (though
often quite expensive to run), but which doesn't exist on OpenSolaris.

Please take a look at discover, the memory error checking tool that is part of Solaris Studio 12 Update 2.
http://wikis.sun.com/display/SunStudio/discover+man+page

Regards,

Darryl.




--
Darryl Gove
Compiler Performance Engineering
Blog : http://blogs.sun.com/d/
Books: http://my.safaribooksonline.com/9780321711441
       http://my.safaribooksonline.com/9780768681390
       http://my.safaribooksonline.com/0595352510
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to