Date: Wed, 24 Jan 2001 13:52:11 +0600 (NOVT) From: Max Khon <fjoe@newst.net> To: Joe Albowicz <joe@CS.UCLA.EDU> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: need help with pthreads and memory corruption problem Message-ID: <Pine.BSF.4.21.0101241350560.24016-100000@localhost> In-Reply-To: <Pine.SOL.4.10.10101231304110.18109-100000@panther.cs.ucla.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101241350560.24016-100000>