Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Help reading codeblocks.RPT
ollydbg:
I just test this. Both wx, exchndl, and c::b was build by xunxun's PCX GCC 4.6.3.
I add a simple crash code in line 1776.
--- Code: ---void CodeCompletion::OnProjectClosed(CodeBlocksEvent& event)
{
char * p = 0;
*p = 0;
...
--- End code ---
Then, I run the c::b under devel folder, and make c::b crash.
The report file shows the correct line:
--- Code: ----------------------
Error occured on Thursday, June 14, 2012 at 08:18:17.
E:\code\cb\cb_trunk\src\devel\codeblocks.exe caused an Access Violation at location 65ecadce in module E:\code\cb\cb_trunk\src\devel\share\codeblocks\plugins\codecompletion.dll Writing to location 00000000.
Registers:
eax=00000000 ebx=fffffffc ecx=021ec2e8 edx=0022db20 esi=0000007e edi=0022e090
eip=65ecadce esp=0022da38 ebp=0022da60 iopl=0 nv up ei pl nz ac pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010212
Call stack:
65ECADCE E:\code\cb\cb_trunk\src\devel\share\codeblocks\plugins\codecompletion.dll:65ECADCE CodeCompletion::OnProjectClosed E:\code\cb\cb_trunk\src/plugins/codecompletion/codecompletion.cpp:1776
65F183F0 E:\code\cb\cb_trunk\src\devel\share\codeblocks\plugins\codecompletion.dll:65F183F0 cbEventFunctor<CodeCompletion, CodeBlocksEvent>::Call E:\code\cb\cb_trunk\src/include/cbfunctor.h:35
617F3693 E:\code\cb\cb_trunk\src\devel\codeblocks.dll:617F3693 Manager::ProcessEvent E:\code\cb\cb_trunk\src/sdk/manager.cpp:168
6185E368 E:\code\cb\cb_trunk\src\devel\codeblocks.dll:6185E368 PluginManager::NotifyPlugins E:\code\cb\cb_trunk\src/sdk/pluginmanager.cpp:1475
618B299A E:\code\cb\cb_trunk\src\devel\codeblocks.dll:618B299A ProjectManager::CloseProject E:\code\cb\cb_trunk\src/sdk/projectmanager.cpp:1199
618B84F6 E:\code\cb\cb_trunk\src\devel\codeblocks.dll:618B84F6 ProjectManager::OnCloseProject E:\code\cb\cb_trunk\src/sdk/projectmanager.cpp:2541
00EC22B6 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC22B6 _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
00EC242A E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC242A _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
00EC27F6 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC27F6 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00FAB05D E:\code\common_bin\wxmsw28u_gcc_custom.dll:00FAB05D _ZN12wxWindowBase9TryParentER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00FAB05D E:\code\common_bin\wxmsw28u_gcc_custom.dll:00FAB05D _ZN12wxWindowBase9TryParentER7wxEvent
00F8C043 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00F8C043 _ZN10wxMenuBase9SendEventEii
00F26BB8 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00F26BB8 _ZN6wxMenu10MSWCommandEjt
00F01B1C E:\code\common_bin\wxmsw28u_gcc_custom.dll:00F01B1C _ZN8wxWindow13HandleCommandEttPv
00F048C1 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00F048C1 _ZN8wxWindow13MSWWindowProcEjjl
00F4657F E:\code\common_bin\wxmsw28u_gcc_custom.dll:00F4657F _ZN10wxTreeCtrl13MSWWindowProcEjjl
00EFF638 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EFF638 _Z9wxWndProcP6HWND__jjl@16
7E418734 C:\WINDOWS\system32\USER32.dll:7E418734 GetDC
7E418816 C:\WINDOWS\system32\USER32.dll:7E418816 GetDC
7E4189CD C:\WINDOWS\system32\USER32.dll:7E4189CD GetWindowLongW
7E418A10 C:\WINDOWS\system32\USER32.dll:7E418A10 DispatchMessageW
00F03737 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00F03737 _ZN8wxWindow11DoPopupMenuEP6wxMenuii
619EBF18 E:\code\cb\cb_trunk\src\devel\codeblocks.dll:619EBF18 wxWindowBase::PopupMenu E:/code/cb/wx/wxWidgets-2.8.12/include/wx/window.h:924
618B1314 E:\code\cb\cb_trunk\src\devel\codeblocks.dll:618B1314 ProjectManager::ShowMenu E:\code\cb\cb_trunk\src/sdk/projectmanager.cpp:869
618B660E E:\code\cb\cb_trunk\src\devel\codeblocks.dll:618B660E ProjectManager::OnTreeItemRightClick E:\code\cb\cb_trunk\src/sdk/projectmanager.cpp:2131
00EC22B6 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC22B6 _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
00EC242A E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC242A _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
00EC27F6 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC27F6 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00FAB05D E:\code\common_bin\wxmsw28u_gcc_custom.dll:00FAB05D _ZN12wxWindowBase9TryParentER7wxEvent
00EC2799 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC2799 _ZN12wxEvtHandler12ProcessEventER7wxEvent
00FAB05D E:\code\common_bin\wxmsw28u_gcc_custom.dll:00FAB05D _ZN12wxWindowBase9TryParentER7wxEvent
00F4549D E:\code\common_bin\wxmsw28u_gcc_custom.dll:00F4549D _ZN10wxTreeCtrl11MSWOnNotifyEilPl
00F0436D E:\code\common_bin\wxmsw28u_gcc_custom.dll:00F0436D _ZN8wxWindow13MSWWindowProcEjjl
00EFF638 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EFF638 _Z9wxWndProcP6HWND__jjl@16
7E418734 C:\WINDOWS\system32\USER32.dll:7E418734 GetDC
7E418816 C:\WINDOWS\system32\USER32.dll:7E418816 GetDC
7E42927B C:\WINDOWS\system32\USER32.dll:7E42927B GetParent
7E4292E3 C:\WINDOWS\system32\USER32.dll:7E4292E3 SendMessageW
00F46C45 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00F46C45 _ZN10wxTreeCtrl13MSWWindowProcEjjl
00EFF638 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EFF638 _Z9wxWndProcP6HWND__jjl@16
7E418734 C:\WINDOWS\system32\USER32.dll:7E418734 GetDC
7E418816 C:\WINDOWS\system32\USER32.dll:7E418816 GetDC
7E4189CD C:\WINDOWS\system32\USER32.dll:7E4189CD GetWindowLongW
7E418A10 C:\WINDOWS\system32\USER32.dll:7E418A10 DispatchMessageW
00EE7CB2 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EE7CB2 _ZN11wxEventLoop14ProcessMessageEP6tagMSG
00EE7E6E E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EE7E6E _ZN11wxEventLoop8DispatchEv
00F679AA E:\code\common_bin\wxmsw28u_gcc_custom.dll:00F679AA _ZN17wxEventLoopManual3RunEv
00F4B28B E:\code\common_bin\wxmsw28u_gcc_custom.dll:00F4B28B _ZN9wxAppBase8MainLoopEv
0041D86D E:\code\cb\cb_trunk\src\devel\codeblocks.exe:0041D86D CodeBlocksApp::OnRun E:\code\cb\cb_trunk\src/src/app.cpp:777
00E7AE68 E:\code\common_bin\wxmsw28u_gcc_custom.dll:00E7AE68 _Z14wxUninitializev
00EC6C9B E:\code\common_bin\wxmsw28u_gcc_custom.dll:00EC6C9B _Z7wxEntryP11HINSTANCE__S0_Pci
0041AED1 E:\code\cb\cb_trunk\src\devel\codeblocks.exe:0041AED1 WinMain@16 E:\code\cb\cb_trunk\src/src/app.cpp:266
004B475F E:\code\cb\cb_trunk\src\devel\codeblocks.exe:004B475F _ZNK8wxPGCell9GetBitmapEv
00401486 E:\code\cb\cb_trunk\src\devel\codeblocks.exe:00401486
7C817077 C:\WINDOWS\system32\kernel32.dll:7C817077 RegisterWaitForInputIdle
--- End code ---
daniloz:
--- Quote from: xunxun on June 13, 2012, 05:46:31 pm ---Can you use Code::Blocks + GDB to debug your Code::Blocks and see gdb's backtrace?
--- End quote ---
Yes, I can, look:
--- Code: ---> bt
#0 0x0a09797e in CodeCompletion::OnProjectClosed (this=0x981cd48, event=...) at C:\Work\codeblocks_trunk\src\plugins\codecompletion\codecompletion.cpp:1779
#1 0x0a0b4e1e in cbEventFunctor<CodeCompletion, CodeBlocksEvent>::Call (this=0x3eed4a8, event=...) at C:/Work/codeblocks_trunk/src/include/cbfunctor.h:35
#2 0x00f84a90 in Manager::ProcessEvent (this=0x5a19e60, event=...) at C:\Work\codeblocks_trunk\src\sdk\manager.cpp:169
#3 0x00eaeae8 in PluginManager::NotifyPlugins (this=0x6188190, event=...) at C:\Work\codeblocks_trunk\src\sdk\pluginmanager.cpp:1474
#4 0x00f0be15 in ProjectManager::CloseProject (this=0x5f1cfe8, project=0x174ff108, dontsave=false, refresh=true) at C:\Work\codeblocks_trunk\src\sdk\projectmanager.cpp:1197
#5 0x00f13819 in ProjectManager::OnCloseProject (this=0x5f1cfe8) at C:\Work\codeblocks_trunk\src\sdk\projectmanager.cpp:2538
#6 0x6278e415 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from c:\work\codeblocks_trunk\src\devel\wxmsw28u_gcc_custom.dll
#7 0x0028d7c8 in ?? ()
--- End code ---
daniloz:
--- Quote from: ollydbg on June 14, 2012, 02:20:06 am ---I just test this. Both wx, exchndl, and c::b was build by xunxun's PCX GCC 4.6.3.
I add a simple crash code in line 1776.
--- Code: ---void CodeCompletion::OnProjectClosed(CodeBlocksEvent& event)
{
char * p = 0;
*p = 0;
...
--- End code ---
Then, I run the c::b under devel folder, and make c::b crash.
The report file shows the correct line:
...
--- End quote ---
I did the same here and if I run it using the debugger, then I receive a segmentation fault and I can see the call stack. However, if I run it normally, i.e. just run from devel, there's no error and no file generated....
It seems things are just strange on my system.... and right now I have no idea what to do/test next.... :'(
MortenMacFly:
--- Quote from: daniloz on June 14, 2012, 08:06:59 am ---It seems things are just strange on my system.... and right now I have no idea what to do/test next.... :'(
--- End quote ---
Could it be that you have GCC in the path? Because when looking for the "exchdl" it may pick up this one first. So verify which one is loaded - yours or another one. Inspect the PATH environment for this running instance of C::B. Use e.g. SysInternals "procexp" (Process Explorer) for that purpose. Maybe the "depends" tool can help, too.
daniloz:
--- Quote from: MortenMacFly on June 14, 2012, 04:27:10 pm ---
--- Quote from: daniloz on June 14, 2012, 08:06:59 am ---It seems things are just strange on my system.... and right now I have no idea what to do/test next.... :'(
--- End quote ---
Could it be that you have GCC in the path? Because when looking for the "exchdl" it may pick up this one first. So verify which one is loaded - yours or another one. Inspect the PATH environment for this running instance of C::B. Use e.g. SysInternals "procexp" (Process Explorer) for that purpose. Maybe the "depends" tool can help, too.
--- End quote ---
Thanks for the hint. However, I inspected the path and the running process and indeed it's C::B exchndl which is loaded.
I also tried to compile a test program from here including the exchndl.dll from C::B and it works, I got a report with the right information...
So, my next task is to be able to easily reproduce a crash from C::B, but I can't, since the code from ollydbg doesn't produce a crash and I don't understand why...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version