From owner-freebsd-stable Wed Dec 6 0: 4:47 2000 From owner-freebsd-stable@FreeBSD.ORG Wed Dec 6 00:04:42 2000 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66]) by hub.freebsd.org (Postfix) with ESMTP id 5DA2C37B400 for ; Wed, 6 Dec 2000 00:04:38 -0800 (PST) Received: from localhost (fjoe@localhost) by iclub.nsu.ru (8.11.1/8.11.1) with ESMTP id eB683vO35229; Wed, 6 Dec 2000 14:03:58 +0600 (NS) (envelope-from fjoe@iclub.nsu.ru) Date: Wed, 6 Dec 2000 14:03:56 +0600 (NS) From: Max Khon To: stable@FreeBSD.ORG Cc: mreimer@vpop.net, jdp@polstra.com, eischen@vigrid.com, osa@freebsd.org.ru Subject: Re: Mysql segfaults; is the culprit libstdc++, pthread, regex ...? In-Reply-To: <200012051658.eB5GwHU25440@vashon.polstra.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, there! On Tue, 5 Dec 2000, John Polstra wrote: > > 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. > > Sergey Osokin recently reported a very similar problem > on a different threaded C++ program. See message ID > <20001124174554.A473@freebsd.org.ru> in the -hackers archives -- it > contains a small test case. I spent a few hours looking at it last > weekend, but I wasn't able to solve the problem. seems that problem is with this commit: obrien 2000/11/11 13:52:40 PST Modified files: (Branch: RELENG_4) . Makefile.inc1 gnu/usr.bin/cc/cc_tools freebsd-native.h Log: MFC: link shared objections agaisnt libgcc[_r]_pic. (also remove last vestages of -kthread) Approved by: JKH Revision Changes Path 1.141.2.16 +7 -6 src/Makefile.inc1 1.5.2.1 +7 -2 src/gnu/usr.bin/cc/cc_tools/freebsd-native.h I had very similar problems with ACE wrappers (segfaults on return from function)/ First, I thought that problem might be introduced by libc_r fixes. There were also a couple of binutils/gcc updates in -stable so I downgraded my sources to 4.2-RELEASE and also checked out libc_r before Dan Eischen fixes -- no luck. After that I checked out src/Makefile.inc1 1.141.2.15 and freebsd-native.h 1.5. Now I have all ACE wrappers tests (that should work) running perfectly. This commit also introduces binary incompatibility -- C++ code compiled on 4.2-RELEASE cannot be run on RELENG_4 built before this commit. Please try to backout this change in your local source tree, rebuild world, relink your programs and libraries -- I think mysql problems will went away also. Now I am rebuilding world with Dan Eischen libc_r fixes to see if they would not break anything (they should not -- Dan confirmed that he tested his fixes with ACE wrappers tests on -current) /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message