hi, there!
On Tue, 23 Jan 2001, Joe Albowicz wrote:
> I'm porting an application from Linux to FreeBSD and I am having some
> problems with the program crashing in weird/random places because of
> memory corruption. For example the crash can happen in STL or free or in
> c++ code that we have written (note that our code works just fine on Linux
> for extended periods of time under heavy load).
>
> The application consists of a main process plus a few dozen pthreads
> written in c++. The only changes that I have made in porting from Linux to
> FreeBSD consisted of Makefile changes (e.g. using -D_THREAD_SAFE) and I
> replaced "new" with malloc in code that is excuted by the pthreads [except
> STL may call new?]. Replacing new with malloc definately helped, but I'm
> not sure why.
[...]
> FreeBSD 4.2-RELEASE FreeBSD 4.2-RELEASE #0
please upgrade to latest -stable.
there have been problems with C++ and threads in 4.2-RELEASE
and they have been fixed recently
/fjoe
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message