This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
program crash after using -pg option?
- From: David Jacobs <jda at melexis dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 03 Mar 2010 14:26:54 +0100
- Subject: program crash after using -pg option?
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