From owner-freebsd-hackers Sat Mar 3 10:57: 5 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.newst.irs.ru (newst.irs.ru [212.164.94.1]) by hub.freebsd.org (Postfix) with ESMTP id C0F1F37B720 for ; Sat, 3 Mar 2001 10:56:57 -0800 (PST) (envelope-from fjoe@newst.net) Received: from lark.nsk.bsgdesign.com (lark.nsk.bsgdesign.com [192.168.3.21]) by mail.newst.irs.ru (8.11.1/8.11.0) with ESMTP id f23IuUZ73539; Sun, 4 Mar 2001 00:56:40 +0600 (NOVT) (envelope-from fjoe@newst.net) Date: Sun, 4 Mar 2001 00:56:30 +0600 (NOVT) From: Max Khon X-Sender: fjoe@localhost To: Lists Account Cc: hackers@FreeBSD.ORG Subject: Re: gcc -pthread / segfault problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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