From owner-freebsd-current@FreeBSD.ORG Wed Oct 24 23:49:01 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 7AC7716A41B; Wed, 24 Oct 2007 23:49:01 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.bluestop.org (muon.bluestop.org [IPv6:2001:41c8:1:548a::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1813313C49D; Wed, 24 Oct 2007 23:49:01 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.draftnet (unknown [IPv6:2a01:348:10f:1::5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTP id 8B0E730180; Thu, 25 Oct 2007 00:48:59 +0100 (BST) Message-ID: <471FD9E7.6060704@cran.org.uk> Date: Thu, 25 Oct 2007 00:48:55 +0100 From: Bruce Cran User-Agent: Thunderbird 2.0.0.6 (X11/20070809) MIME-Version: 1.0 To: Ivan Voras References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: Profiling on RELENG_7 (and probably HEAD)? 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 23:49:01 -0000 Ivan Voras wrote: > Hi, > > I tried to profile an applications but there's a problem - the > application crashes in getopt(). I've constructed a simple test case > that demonstrates this: > [...] > The same test case works on a 6.x machine. Am I missing something or is > profiling broken? > Yes, applications compiled with -pg are broken on i386 platforms. See the threads "gcc profiling broken" from 24th October, and "gcc 4.2 profiling breaks argv" from 3rd August. A PR should probably be submitted for it, especially since it's going to start affecting a lot of people. -- Bruce