From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15959 invoked by alias); 7 Dec 2004 15:56:20 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 15719 invoked from network); 7 Dec 2004 15:56:11 -0000 Received: from unknown (HELO mail.esperi.org.uk) (194.247.41.52) by sourceware.org with SMTP; 7 Dec 2004 15:56:11 -0000 Received: from esperi.org.uk (nix@amaterasu.srvr.nix [192.168.14.14]) by mail.esperi.org.uk (8.12.11/8.12.11) with ESMTP id iB7Fu9i5010999; Tue, 7 Dec 2004 15:56:09 GMT Received: (from nix@localhost) by esperi.org.uk (8.12.11/8.12.11/Submit) id iB7Fu827012243; Tue, 7 Dec 2004 15:56:08 GMT To: Joe Buck Cc: gcc@gcc.gnu.org Subject: Re: SEGV building qt-3.3.3 with GCC 3.4.3 on RH 7.1/RHEL 2.1 References: <20041202223302.GA90088@mail1.thewrittenword.com> <20041202160806.A1814@synopsys.com> From: Nix X-Emacs: impress your (remaining) friends and neighbors. Date: Tue, 07 Dec 2004 15:56:00 -0000 In-Reply-To: <20041202160806.A1814@synopsys.com> (Joe Buck's message of "3 Dec 2004 00:08:38 -0000") Message-ID: <87oeh6kspz.fsf@amaterasu.srvr.nix> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-12/txt/msg00291.txt.bz2 On 3 Dec 2004, Joe Buck said: > If the blowup is in a place where there > appears to be no code, it's probably in a destructor. I've also seen sibcalls trigger this in cases where the sibcalled function's prototype is different from its declaration; when the sibcalled function returns, you can get a segfault because sibcalling kicked in when the function's true declaration would have suppressed it, and the return mangles the stack. (Of course GCC warns about this case, and of course it couldn't be the cause of a crash at the end of main(), as main() can't be sibcalled. Now we're using -funit-at-a-time for everything, GCC may well be smart enough to spot that sibcalling is unusable even in the presence of this programmer error.) -- `The sword we forged has turned upon us Only now, at the end of all things do we see The lamp-bearer dies; only the lamp burns on.'