This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]