MenTaLguY
1/10/2007 9:39:00 PM
On Thu, 2007-01-11 at 03:54 +0900, Young Hyun wrote:
> Has anyone managed to build Ruby with dmalloc support? I'm having
> numerous problems trying to do so on MacOS X 10.4.8 and FreeBSD 6.1.
> I'm trying to hunt down a memory leak in Ruby, probably in the Mutex
> code. Also, fastthread 0.6.1 is crashing for me, possibly due to a
> memory corruption, and I'd like to figure out what's going on there.
It's not quite as shiny as dmalloc, but have you tried electric fence
(libefence)? On Linux, at least, you can use it via LD_PRELOAD, without
recompiling Ruby.
Also, do you see the memory corruption under both MacOS X and FreeBSD?
-mental