From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8866 invoked by alias); 3 Mar 2010 13:26:59 -0000 Received: (qmail 8853 invoked by uid 22791); 3 Mar 2010 13:26:58 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sarge.elex.be (HELO mail.elex.be) (194.7.83.94) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 03 Mar 2010 13:26:54 +0000 Received: from mail.tess.elex.be (mail.tess.elex.be [10.32.48.182]) by relay.colo.elex.be (Postfix) with ESMTP id 9B9F023C44C for ; Wed, 3 Mar 2010 14:26:51 +0100 (CET) Received: from [10.32.59.195] (pc1308.tess.elex.be [10.32.59.195]) by mail.tess.elex.be (Postfix) with ESMTP id A9935BE02 for ; Wed, 3 Mar 2010 13:26:52 +0000 (UTC) Message-ID: <4B8E639E.8060502@melexis.com> Date: Wed, 03 Mar 2010 13:26:00 -0000 From: David Jacobs User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: program crash after using -pg option? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-03/txt/msg00038.txt.bz2 Hello, I'm having some problems using the -pg option to gather profiling data. It's the first time I use this option, so I might be overlooking something obvious. :-) When I add the -pg option to both compiler and linker I get the following errors while executing my program: (compilation and linking is fine) -------------------- 264 [main] TempLnrTransform 3568 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION 6953 [main] TempLnrTransform 3568 open_stackdumpfile: Dumping stack trace to TempLnrTransform.exe.stackdump 947884 [main] TempLnrTransform 3568 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION 981347 [main] TempLnrTransform 3568 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack)/ -------------------- /It seems the added functions of mcount are causing some problems? The program runs fine without the -pg option. Any idea where to look for? Cheers, David