David wrote:
I am currently using gdb on Solaris and Linux.  I am really trying to
debug on the cheap [...]
The crash actually sometimes happens in both a listening and a
connected socket.  The wildest thing is that the crash never seems to
happen in the same place. But it is always at a PR_Close.  I have
witnessed the backtrace point to 2 different locations in the code,
> [...]

Get a look at this : http://dmalloc.com/
Or then http://www.hexco.de/rmdebug/
I remember there was one I was really happy with. Very basic, but very effective. Wasn't it ccmalloc ??
http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/


Whatever you choose, configure it to check memory blocks everytime on eis released. I remember in the tool I was using, it was slowing my program a lot, but finally very effective for detecting memory corruption.

Of course, I'm only listing tools you can use under Solaris :-)

Here is a very complete list of those tools from Linux Journal :
http://www.linuxjournal.com/xstatic/articles/lj/0087/4681/4681s2.html
_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto

Reply via email to