From owner-freebsd-bugs@FreeBSD.ORG Wed Aug 13 01:30:03 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54F401065690 for ; Wed, 13 Aug 2008 01:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2DC388FC36 for ; Wed, 13 Aug 2008 01:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7D1U3me088145 for ; Wed, 13 Aug 2008 01:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7D1U3mC088142; Wed, 13 Aug 2008 01:30:03 GMT (envelope-from gnats) Resent-Date: Wed, 13 Aug 2008 01:30:03 GMT Resent-Message-Id: <200808130130.m7D1U3mC088142@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Ronald F.Guilmette" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 584351065673 for ; Wed, 13 Aug 2008 01:22:17 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from segfault-outgoing-helo.tristatelogic.com (112.171-60-66-fuji-dsl.static.surewest.net [66.60.171.112]) by mx1.freebsd.org (Postfix) with ESMTP id 240CD8FC30 for ; Wed, 13 Aug 2008 01:22:16 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id 48619BDC35; Tue, 12 Aug 2008 18:22:16 -0700 (PDT) Message-Id: <20080813012216.48619BDC35@segfault.tristatelogic.com> Date: Tue, 12 Aug 2008 18:22:16 -0700 (PDT) From: "Ronald F.Guilmette" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: gnu/126488: Compiling with gcc -pg produces immediately crashing executables X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Ronald F.Guilmette" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 01:30:03 -0000 >Number: 126488 >Category: gnu >Synopsis: Compiling with gcc -pg produces immediately crashing executables >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 13 01:30:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Ronald F. Guilmette >Release: FreeBSD 7.0-RELEASE i386 >Organization: Infinite Monkeys & Co. LLC >Environment: System: FreeBSD 7.0-RELEASE Athlon64 processor (It's an AMD LE-1640B to be precise... single core but 64.) >Description: Compiling & linking just about any program with "gcc -pg" produces either an executable that crashes instantly, just inside of main() or else an executable where the argc and argv values are hopelessly hosed (which can be almost as bad). >How-To-Repeat: Save the following trivial source file as "test.c" and then compile and execute it thusly: gcc -pg -o test test.c ./test #include int main (register int const argc, register char **const argv) { if (!argv) { abort (); return 1; } else return 0; } ...then stand back and watch as the program core dumps. >Fix: Beats me. I haven't been working on the compiler in some time now. I'll help to sort this out, but only if you can't find anybody else who's been grunging around in the GCC code more recently than me. >Release-Note: >Audit-Trail: >Unformatted: