Date: Sun, 4 Mar 2001 00:56:30 +0600 (NOVT) From: Max Khon <fjoe@newst.net> To: Lists Account <lists@security.za.net> Cc: hackers@FreeBSD.ORG Subject: Re: gcc -pthread / segfault problem Message-ID: <Pine.BSF.4.21.0103040055440.43578-100000@localhost> In-Reply-To: <Pine.BSF.4.21.0103022039180.67752-100000@security.za.net>
next in thread | previous in thread | raw e-mail | index | archive | help
hi, there! On Fri, 2 Mar 2001, Lists Account wrote: > I was coding some stuff under a 4.2 box of mine here earlier today and I > seem to have hit a very strange bug, I was wondering if anyone could help > me out here. > > I wrote a bunch of pthread enabled code, when I tried to run the program, > after I compiled it with -pthread (I had to with the threading code in > there), it segfaulted, so I ran it through gdb, and it was segfaulting on > malloc(). So I dug around some more, and eventually I tried changing that > single line to a c++ new() call, no more problems... 4.2-RELEASE has known problems with C++ and pthreads please upgrade to latest -STABLE /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.0103040055440.43578-100000>