From owner-freebsd-current@FreeBSD.ORG Wed Oct 24 00:50:32 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CF4816A469 for ; Wed, 24 Oct 2007 00:50:32 +0000 (UTC) (envelope-from andrew_terekhov@yahoo.com) Received: from web54403.mail.yahoo.com (web54403.mail.yahoo.com [206.190.49.133]) by mx1.freebsd.org (Postfix) with SMTP id 93B6113C4A8 for ; Wed, 24 Oct 2007 00:50:31 +0000 (UTC) (envelope-from andrew_terekhov@yahoo.com) Received: (qmail 72462 invoked by uid 60001); 24 Oct 2007 00:23:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=gND+MGppJFW4hnbZpCAMKwKUR2G7j2Q5J/IishQ1+NQ/wvUhPRAsYqWHjQhkHTtb6RwrT8KV6sNY01pqP7d+0uCY0Z3E6tebFBgYAsDs9JV+TPKQlG0H3Xke1FjB3rOJlzWES0Bm04wpf4KAJ547eu36eEC5/VTigd9wTuCBPXg=; X-YMail-OSG: Vvj.zb4VM1k6A5Z5yIejDjg4WqQJyBvb_J7586eixSh6zqxWhSXuKOaCzFm04uqHdfF2a1WpJxQhWo51QXMrQW.i_dFN17U7ty5P9F6.xrq5ytzoNl33WFDr8_3b Received: from [204.13.59.250] by web54403.mail.yahoo.com via HTTP; Tue, 23 Oct 2007 17:23:38 PDT X-Mailer: YahooMailRC/814.06 YahooMailWebService/0.7.134.12 Date: Tue, 23 Oct 2007 17:23:38 -0700 (PDT) From: andrew_terekhov@yahoo.com To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <986299.70442.qm@web54403.mail.yahoo.com> Subject: gcc profiling broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2007 00:50:32 -0000 A simple program like this:=0A=0A#include =0A=0Aint main(int argc,= char* argv[])=0A{=0A printf("Hello, world!\n");=0A=0A printf("argc: = %d\n", argc);=0A=0A return 0;=0A}=0A=0Awhen compiled with profiling:=0A= =0A gcc -pg -g hello.c -o hello=0A=0Adumps core:=0A=0AStarting program: /ho= me/andrew/dev/kmv/components/tests/prof/cee/hello=0AHello, world!=0A=0AProg= ram received signal SIGSEGV, Segmentation fault.=0Amain (argc=3DError acces= sing memory address 0x19: Bad address.=0A) at hello.c:7=0A7 print= f("argc: %d\n", argc);=0A=0A=0AI run i386 7 beta1 from yesterday.=0A=0Agcc = -v=0AUsing built-in specs.=0ATarget: i386-undermydesk-freebsd=0AConfigured = with: FreeBSD/i386 system compiler=0AThread model: posix=0Agcc version 4.2.= 1 20070719 [FreeBSD]=0A=0A=0A=0A__________________________________________= ________=0ADo You Yahoo!?=0ATired of spam? Yahoo! Mail has the best spam p= rotection around =0Ahttp://mail.yahoo.com