Date: Tue, 23 Oct 2007 17:23:38 -0700 (PDT) From: andrew_terekhov@yahoo.com To: freebsd-current@freebsd.org Subject: gcc profiling broken? Message-ID: <986299.70442.qm@web54403.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
A simple program like this:=0A=0A#include <stdio.h>=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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?986299.70442.qm>