I had been suffering with some very nasty problems in my large C++
app, and our lead coder recently uncovered what they are. They
manifested most obviously with large STL code bases.
----- Begin forwarded message -----
dmalloc calls vfprintf on startup of your program, if you have a
logfile. fprintf saves errno. For multithreaded applications, errno is
a pointer to an area on the stack, which is not initialized by pthreads
at the very start of a program.
The innocuous line:
save_errno = errno;
causes a crash.
----- End forwarded message -----
Sam will send you a patch soon.
m.
--
Programmer "I wrote a song about dental floss,
Loki Entertainment Software but did anyone's teeth get cleaner?"
http://lokigames.com/~briareos/ - Frank Zappa, re: the PMRC