Author Topic: profiler plugin: crash with current SVN-HEAD  (Read 6973 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
profiler plugin: crash with current SVN-HEAD
« on: December 06, 2005, 01:08:46 pm »
I haven't used the profiler plugin quite for a while. But if I use it with the current SVN version it crashes if I try to profile a project. The profiler seems to be launched OK but then while analysing the report the plugin (and Code::Blocks) crashes. Here is the top of the generated RPT-file:
Code
100619A1  C:\WINDOWS\system32\wxmsw26_gcc_cb.dll:100619A1  _ZNK12wxStringBase4findERKS_j
10061A9C  C:\WINDOWS\system32\wxmsw26_gcc_cb.dll:10061A9C  _ZNK12wxStringBase4findEPKcjj
10061AF7  C:\WINDOWS\system32\wxmsw26_gcc_cb.dll:10061AF7  _ZNK8wxString4FindEPKc
012A3C35  D:\Devel\CodeBlocks\share\codeblocks\plugins\CBProfiler.dll:012A3C35
012A36AF  D:\Devel\CodeBlocks\share\codeblocks\plugins\CBProfiler.dll:012A36AF
012AA74F  D:\Devel\CodeBlocks\share\codeblocks\plugins\CBProfiler.dll:012AA74F  PluginSDKVersion
60569ED2  D:\Devel\CodeBlocks\codeblocks.dll:60569ED2  _ZN13PluginManager13ExecutePluginERK8wxString
00414329  D:\Devel\CodeBlocks\codeblocks.exe:00414329
(...more follows...)

Any ideas? Is somebody experiencing the same issue?
By the way: How do I convert the addresses back to Methods?

Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Zlika

  • Guest
Re: profiler plugin: crash with current SVN-HEAD
« Reply #1 on: December 11, 2005, 05:54:44 pm »
Hi!
Did you try the latest SVN version of the profiler plugin with the current RC2 version of Code::Block?
Because I didn't have time to check it with the latest build of C::B, but with my RC2 version it works.

So first check it with the RC2 version of C::B. If it works, I will try to see where is the problem.

Zlika

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: profiler plugin: crash with current SVN-HEAD
« Reply #2 on: December 12, 2005, 10:18:58 am »
So first check it with the RC2 version of C::B. If it works, I will try to see where is the problem.
I tried with RC2 (really the setup from the webpage, no lib conflicts etc. with the SVN version), it's the same:
Code
Call stack:
100619C9  D:\Devel\CodeBlocks\wxmsw26_gcc_cb.dll:100619C9  _ZNK12wxStringBase4findERKS_j
10061ABC  D:\Devel\CodeBlocks\wxmsw26_gcc_cb.dll:10061ABC  _ZNK12wxStringBase4findEPKcjj
10061B17  D:\Devel\CodeBlocks\wxmsw26_gcc_cb.dll:10061B17  _ZNK8wxString4FindEPKc
01633AE5  D:\Devel\CodeBlocks\share\codeblocks\plugins\cbprofiler.dll:01633AE5
0163355F  D:\Devel\CodeBlocks\share\codeblocks\plugins\cbprofiler.dll:0163355F
0163A8CA  D:\Devel\CodeBlocks\share\codeblocks\plugins\cbprofiler.dll:0163A8CA  GetSDKVersionMinor
605495F4  D:\Devel\CodeBlocks\codeblocks.dll:605495F4  _ZN13PluginManager13ExecutePluginERK8wxString
0041ABAB  D:\Devel\CodeBlocks\codeblocks.RC2.exe:0041ABAB
100A77E8  D:\Devel\CodeBlocks\wxmsw26_gcc_cb.dll:100A77E8  _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
But: I figured out some additional information: It seems this crash depends on the project (souce-code) size. CBProfiler does not crash if I use e.g. the "Hello World" template. Furthermore the parsing is done but when the crash appears CBProfiler seems to do the next step (whatever that is... :)). My program is fairly large and does a lot of calls (mathematical calculations) so I expect the profiler log to be fairly large, too. I could send you the "log" (the one you get from "gprof.exe myapp.exe gmon.out > gprof.txt") it this is of any help?!

With best regards,

Morten.
« Last Edit: December 12, 2005, 10:22:01 am by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Zlika

  • Guest
Re: profiler plugin: crash with current SVN-HEAD
« Reply #3 on: December 13, 2005, 08:41:09 pm »
Yes I'm interested in the log. This must be a parsing error somewhere.

Zlika

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: profiler plugin: crash with current SVN-HEAD
« Reply #4 on: December 13, 2005, 10:42:09 pm »
Yes I'm interested in the log.
...I sent you a personal message about that.

Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

DaveOusley

  • Guest
Re: profiler plugin: crash with current SVN-HEAD
« Reply #5 on: January 12, 2007, 11:35:42 pm »
Hi Morten,

I have a problem with C::B Profiler crashing itself and Code::Blocks - the
codeblocks.RPT dump looks just like what you posted in December 2005.

Do you remember if and how you fixed this problem?

I'm running CB version 1.0 RC2 under Windows2000,
gprof version 1.0 beta3.

Code Statistics reports 32K lines in 75 files in this project.

Dave

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: profiler plugin: crash with current SVN-HEAD
« Reply #6 on: January 12, 2007, 11:52:19 pm »
Do you remember if and how you fixed this problem?

I'm running CB version 1.0 RC2 under Windows2000,
...
The most expedient way for you to find out would be to install a nightly build...
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: profiler plugin: crash with current SVN-HEAD
« Reply #7 on: January 13, 2007, 09:44:53 am »
The most expedient way for you to find out would be to install a nightly build...
Agreed on that. I'm pretty sure this is fixed in SVN head (I did some fixes myself). Try a nightly (see the appropriate forum section for that)!
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ