Am 06.04.2005 um 18:12 schrieb Zoran Vasiljevic:
Stephen, can you please try again, but be sure you're using the 8.4.6 lib. In my setup, everything from 8.4.6 to 8.4.9 leaks on all platforms we have/use: Sun, Linux, MacOSX.
Hm. I tried 8.4.6. Same thing (leaks). Now, I have looked into the thing and must admit that I'd have to spend more time than I thought in order to understand what is this beast doing *exactly* in order to pinpoint the problem. In the meantime, I wen't shopping for a better solution and found basically Hoard and ptmalloc. The former is GPL or requires commercial license, hence it is out of the question for us/me at the moment. The ptmalloc seems to be implemented in glibc as I understand it. Both of them are practically a snap-in replacements for standard libc allocators. On Linux, I believe, this whole "zippy" (whatever that is) stuff is really not needed, since glibc based. For the rest, well, Solaris has starting with 2.9 a goot mtmalloc implementation, whereas Darwin just has none. I will try seeing how the ptmalloc does the work on Solaris/Darwin and check wether this could be an option for us. If yes, I will have to recompile everything with USE_THREAD_ALLOC removed from all makefiles and link against the ptmalloc library. I will keep you informed what I got. Bottom line is, all of this is really off-topic for Naviserver since it does rely on the Tcl lib for its memory access. Since I do some work there, I will try to see with the people in Tcl project and with AS (I think Jim Davidson is responsible for this allocator) what is really happening inside and if this can be fixed up in order to keep Tcl itself stable. Zoran
