From owner-freebsd-stable Tue Dec 5 1:31:48 2000 From owner-freebsd-stable@FreeBSD.ORG Tue Dec 5 01:31:44 2000 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mailgate.abacus.co.uk (mailgate.abacus.co.uk [194.130.48.21]) by hub.freebsd.org (Postfix) with ESMTP id 6C53C37B400 for ; Tue, 5 Dec 2000 01:31:43 -0800 (PST) Received: from abacus.co.uk (pcantony.bl.abacus.co.uk [194.130.48.111]) by mailgate.abacus.co.uk (8.9.3/8.9.3) with ESMTP id JAA26052; Tue, 5 Dec 2000 09:28:55 GMT Sender: antony@mailgate.abacus.co.uk Message-ID: <3A2CB5CE.47F59B5B@abacus.co.uk> Date: Tue, 05 Dec 2000 09:30:54 +0000 From: Antony T Curtis Organization: Abacus Polar PLC (UK) X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.1.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Max Khon Cc: stable@FreeBSD.ORG, mreimer@vpop.net Subject: Re: Mysql segfaults; is the culprit libstdc++, pthread, regex ...? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Max Khon wrote: > > hi, there! > > > We've been having problems with mysql segfaulting. It seems to occur > > when it tries to return from a function, so maybe the stack is getting > > stomped. > > I have noticed similar problems with ACE wrappers yesterday > (segfaults on "return"s) > > > This problem occurs with mysql 3.23.2[678] (we haven't tested other > > versions), and with FreeBSD 4.2 from Nov 21, 24, 28 (and presumably > > newer) but it does not occur under FreeBSD 4.0 or Linux. > > That's bad. Now I'm trying to build 4.2-RELEASE world (with libc_r > recursive mutex fix) to see if it would fix my problems > (4.2-RELEASE has unaltered g++ and no file descriptor race patchset) > > > Strangely, what seems to fix the problem for FreeBSD 4.2 is to compile > > mysql with gcc and g++ (instead of cc and c++), by setting CC=gcc and > > CXX=g++. I'm not sure what happens differently, other than that the > > binary compiled with gcc/g++ does not depend on libstdc++, whereas the > > binary compiled with cc/c++ does: > can you show me `which g++` and `g++ -v` output? > seems that you have g++ which is actually /usr/ports/lang/egcs -- that g++ > link programs against libstdc++ statically. it also uses other exception > handling scheme. does mysql use exceptions? MySQL does not use exceptions... One is supposedly able to get better performace from MySQL when it has been compiled with "-felide-constructors -fno-exceptions -fno-rtti" -- ANTONY T CURTIS Tel: +44 (1635) 36222 Abacus Polar Holdings Ltd Fax: +44 (1635) 38670 > Disco is to music what Etch-A-Sketch is to art. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message