User forums > Help
crash when use wxsmith
icequan233:
--- Quote from: oBFusCATed on April 21, 2017, 12:59:33 pm ---This is not the crash site as far as I can tell, isn't it?
Please remove all breakpoints and let it crash.
Then go to the call stack window, right click in the window and click on the copy to clipboard menu item.
Then paste the callstack in a code or quote tags.
--- End quote ---
The true crash site is the first post, and I attached the picture. I think @jens is right, the similar question of gcc
http://forums.codeblocks.org/index.php/topic,21773.0.html .
oBFusCATed:
--- Quote from: jens on April 21, 2017, 01:29:04 pm ---It might be an(other) optimization bug of gcc.
--- End quote ---
These are not bugs, but features :)
Lets see if I can reproduce this in wx2.8 and gcc 6.x.
oBFusCATed:
--- Quote from: icequan233 on April 21, 2017, 02:00:12 pm ---The true crash site is the first post, and I attached the picture. I think @jens is right, the similar question of gcc
http://forums.codeblocks.org/index.php/topic,21773.0.html .
--- End quote ---
Sorry, but do you think you can solve the problem with the information provided in the first posts?
GCC is very solid compiler and it is very hard to find bugs in it.
Most of the times the problems are caused by bugs in the program that are manifested by an aggressive optimization.
These are still bugs in the program and not in GCC!
stahta01:
I am now going to apply the wxWidgets code change to IsKindOf method and verify it really fixes this problem.
Edit: It did NOT fix the problem.
Tim S.
Back trace below:
--- Code: ---(gdb) bt
#0 0x02bf9c14 in wxPGProperty::IsExpanded (this=0xfeeefeee)
at ../../include/wx/propgrid/property.h:1905
#1 0x0285b723 in wxPGProperty::GetY2 (this=0x18852688, lh=20)
at ../../src/propgrid/property.cpp:2200
#2 0x028685a7 in wxPropertyGrid::GetEditorWidgetRect (this=0x18732220,
p=0x18852688, column=1) at ../../src/propgrid/propgrid.cpp:3717
#3 0x0284d2ca in wxPropertyGrid::CorrectEditorWidgetPosY (this=0x18732220)
at ../../src/propgrid/editors.cpp:1807
#4 0x0286a380 in wxPropertyGrid::RecalculateVirtualSize (this=0x18732220,
forceXPos=-1) at ../../src/propgrid/propgrid.cpp:4508
#5 0x02862b9a in wxPropertyGrid::PrepareAfterItemsAdded (this=0x18732220)
at ../../src/propgrid/propgrid.cpp:1571
#6 0x028659b9 in wxPropertyGrid::Refresh (this=0x18732220, rect=0x0)
at ../../src/propgrid/propgrid.cpp:2640
#7 0x02871cb6 in wxPropertyGridInterface::RefreshGrid (this=0x18732100,
state=0x18732c70) at ../../src/propgrid/propgridiface.cpp:93
#8 0x02871f1a in wxPropertyGridInterface::DeleteProperty (this=0x18732100,
id=...) at ../../src/propgrid/propgridiface.cpp:150
#9 0x18dc732b in wxsPropertyGridManager::UnbindPropertyContainer (
this=0x18731f90, PC=0x18839970, doFreeze=false)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\properties\wxspropertygridmanager.cpp:175
#10 0x18dc601d in wxsPropertyContainer::~wxsPropertyContainer (
this=0x18839970, __in_chrg=<optimized out>)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\properties\wxspropertycontainer.cpp:52
#11 0x18f1c689 in wxsBaseProperties::~wxsBaseProperties (this=0x18839970,
__in_chrg=<optimized out>)
at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/wxsbaseproperties.h:37
#12 0x18ea2d0f in wxsItem::~wxsItem (this=0x18839930,
__in_chrg=<optimized out>)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsitem.cpp:63
#13 0x18ec8517 in wxsParent::~wxsParent (this=0x18839930,
__in_chrg=<optimized out>)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsparent.cpp:36
#14 0x18eefb98 in wxsContainer::~wxsContainer (this=0x18839930,
__in_chrg=<optimized out>)
at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/wxscontainer.h:38
#15 0x18f2b7a4 in wxsPanel::~wxsPanel (this=0x18839930,
__in_chrg=<optimized out>)
at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/defitems/wxspanel.h:28
#16 0x18f2b76f in wxsPanel::~wxsPanel (this=0x18839930,
__in_chrg=<optimized out>)
at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/defitems/wxspanel.h:28
#17 0x18eb69c2 in wxsItemResData::~wxsItemResData (this=0x18837c60,
__in_chrg=<optimized out>)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsitemresdata.cpp:135
#18 0x18eb6b7b in wxsItemResData::~wxsItemResData (this=0x18837c60,
__in_chrg=<optimized out>)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsitemresdata.cpp:151
#19 0x18ea779f in wxsItemEditor::~wxsItemEditor (this=0x12fa95e8,
__in_chrg=<optimized out>)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsitemeditor.cpp:79
#20 0x18ea77d9 in wxsItemEditor::~wxsItemEditor (this=0x12fa95e8,
__in_chrg=<optimized out>)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsitemeditor.cpp:81
#21 0x026cca46 in wxWindowBase::Destroy (this=0x12fa95e8)
at ../../src/common/wincmn.cpp:576
#22 0x0e0beeee in EditorBase::Close (this=0x12fa95e8)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\sdk\editorbase.cpp:207
#23 0x18dd2d55 in wxsResource::~wxsResource (this=0x21a432d0,
__in_chrg=<optimized out>)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxsresource.cpp:124
#24 0x18eef54d in wxWidgetsRes::~wxWidgetsRes (this=0x21a432d0,
__in_chrg=<optimized out>)
at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/wxwidgetsres.h:29
#25 0x18eb1737 in wxsItemRes::~wxsItemRes (this=0x21a432d0,
__in_chrg=<optimized out>)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsitemres.cpp:141
#26 0x18eed5bc in wxsPanelRes::~wxsPanelRes (this=0x21a432d0,
__in_chrg=<optimized out>)
at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/wxspanelres.h:29
#27 0x18eed587 in wxsPanelRes::~wxsPanelRes (this=0x21a432d0,
__in_chrg=<optimized out>)
at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/wxspanelres.h:29
#28 0x18dd1505 in wxsProject::~wxsProject (this=0x21a41f40,
__in_chrg=<optimized out>)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxsproject.cpp:64
#29 0x18dd03e5 in wxSmith::OnProjectClose (this=0x181fce78, event=...)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxsmith.cpp:351
#30 0x18ef22db in cbEventFunctor<wxSmith, CodeBlocksEvent>::Call (
this=0x182ba198, event=...) at ../../../include/cbfunctor.h:49
#31 0x0e0feb07 in Manager::ProcessEvent (this=0x126d9cf8, event=...)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\sdk\manager.cpp:263
#32 0x0e111ffd in PluginManager::NotifyPlugins (this=0x12fa6d68, event=...)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\sdk\pluginmanager.cpp:1437
#33 0x0e12d670 in ProjectManager::CloseProject (this=0x12dbd048, project=
0x188281e8, dontsave=true, refresh=false)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\sdk\projectmanager.cpp:449
#34 0x0e12d3ae in ProjectManager::CloseAllProjects (this=0x12dbd048,
dontsave=true)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\sdk\projectmanager.cpp:392
#35 0x0e12de39 in ProjectManager::CloseWorkspace (this=0x12dbd048)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\sdk\projectmanager.cpp:588
#36 0x00457c7c in MainFrame::DoCloseCurrentWorkspace (this=0x12da7a98)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\src\main.cpp:1878
#37 0x0045dd33 in MainFrame::OnApplicationClose (this=0x12da7a98, event=...)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\src\main.cpp:2758
#38 0x02473706 in wxAppConsoleBase::HandleEvent (this=0x12687f10,
handler=0x12da7a98, func=
(void (wxEvtHandler::*)(wxEvtHandler * const, wxEvent &)) 0x45db94 <MainFrame::OnApplicationClose(wxCloseEvent&)>, event=...)
at ../../src/common/appbase.cpp:611
#39 0x02473762 in wxAppConsoleBase::CallEventHandler (this=0x12687f10,
handler=0x12da7a98, functor=..., event=...)
at ../../src/common/appbase.cpp:623
#40 0x0253b569 in wxEvtHandler::ProcessEventIfMatchesId (entry=...,
handler=0x12da7a98, event=...) at ../../src/common/event.cpp:1392
#41 0x0253a5ad in wxEventHashTable::HandleEvent (
this=0x580324 <MainFrame::sm_eventHashTable>, event=..., self=0x12da7a98)
at ../../src/common/event.cpp:998
#42 0x0253b9f3 in wxEvtHandler::TryHereOnly (this=0x12da7a98, event=...)
at ../../src/common/event.cpp:1589
#43 0x02b3acd8 in wxEvtHandler::TryBeforeAndHere (this=0x12da7a98, event=...)
at ../../include/wx/event.h:3671
#44 0x0253b7cb in wxEvtHandler::ProcessEvent (this=0x12da7a98, event=...)
at ../../src/common/event.cpp:1491
#45 0x0253b8c1 in wxEvtHandler::DoTryChain (this=0x126e6bf4, event=...)
at ../../src/common/event.cpp:1554
#46 0x0253b856 in wxEvtHandler::ProcessEventLocally (this=0x126e6bf4,
event=...) at ../../src/common/event.cpp:1522
#47 0x0253b7e0 in wxEvtHandler::ProcessEvent (this=0x126e6bf4, event=...)
at ../../src/common/event.cpp:1495
#48 0x0253ba7f in wxEvtHandler::SafelyProcessEvent (this=0x126e6bf4,
event=...) at ../../src/common/event.cpp:1613
#49 0x026cf0da in wxWindowBase::HandleWindowEvent (this=0x12da7a98, event=...)
at ../../src/common/wincmn.cpp:1525
#50 0x026ccaca in wxWindowBase::Close (this=0x12da7a98, force=true)
at ../../src/common/wincmn.cpp:589
#51 0x0045da9c in MainFrame::OnFileQuit (this=0x12da7a98, event=...)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\src\main.cpp:2698
#52 0x02473706 in wxAppConsoleBase::HandleEvent (this=0x12687f10,
handler=0x12da7a98, func=
(void (wxEvtHandler::*)(wxEvtHandler * const, wxEvent &)) 0x45da82 <MainFrame::OnFileQuit(wxCommandEvent&)>, event=...)
at ../../src/common/appbase.cpp:611
#53 0x02473762 in wxAppConsoleBase::CallEventHandler (this=0x12687f10,
handler=0x12da7a98, functor=..., event=...)
at ../../src/common/appbase.cpp:623
#54 0x0253b569 in wxEvtHandler::ProcessEventIfMatchesId (entry=...,
handler=0x12da7a98, event=...) at ../../src/common/event.cpp:1392
#55 0x0253a5ad in wxEventHashTable::HandleEvent (
this=0x580324 <MainFrame::sm_eventHashTable>, event=..., self=0x12da7a98)
at ../../src/common/event.cpp:998
#56 0x0253b9f3 in wxEvtHandler::TryHereOnly (this=0x12da7a98, event=...)
at ../../src/common/event.cpp:1589
#57 0x02b3acd8 in wxEvtHandler::TryBeforeAndHere (this=0x12da7a98, event=...)
at ../../include/wx/event.h:3671
#58 0x0253b7cb in wxEvtHandler::ProcessEvent (this=0x12da7a98, event=...)
at ../../src/common/event.cpp:1491
#59 0x0253b8c1 in wxEvtHandler::DoTryChain (this=0x126e6bf4, event=...)
at ../../src/common/event.cpp:1554
#60 0x0253b856 in wxEvtHandler::ProcessEventLocally (this=0x126e6bf4,
event=...) at ../../src/common/event.cpp:1522
#61 0x0253b7e0 in wxEvtHandler::ProcessEvent (this=0x126e6bf4, event=...)
at ../../src/common/event.cpp:1495
#62 0x026d3f87 in wxWindowBase::TryAfter (this=0x12e421e8, event=...)
at ../../src/common/wincmn.cpp:3427
#63 0x0253b80b in wxEvtHandler::ProcessEvent (this=0x12e421e8, event=...)
at ../../src/common/event.cpp:1508
#64 0x0253ba7f in wxEvtHandler::SafelyProcessEvent (this=0x12e421e8,
event=...) at ../../src/common/event.cpp:1613
#65 0x026cf0da in wxWindowBase::HandleWindowEvent (this=0x12e421e8, event=...)
at ../../src/common/wincmn.cpp:1525
#66 0x02695d3e in wxMenuBase::SendEvent (this=0x12e26920, itemid=-31837,
checked=-1) at ../../src/common/menucmn.cpp:666
#67 0x026599c3 in wxFrameBase::ProcessCommand (this=0x12da7a98, item=
0x12e5aac0) at ../../src/common/framecmn.cpp:298
#68 0x025d31ba in wxFrame::HandleCommand (this=0x12da7a98, id=33699, cmd=0,
control=0x0) at ../../src/msw/frame.cpp:826
#69 0x025d32d1 in wxFrame::MSWWindowProc (this=0x12da7a98, message=273,
wParam=33699, lParam=0) at ../../src/msw/frame.cpp:862
#70 0x025a8cbd in wxWndProc(HWND__*, unsigned int, unsigned int, long)@16 (
hWnd=0x270216, message=273, wParam=33699, lParam=0)
at ../../src/msw/window.cpp:2711
#71 0x75d08233 in USER32!RecordShutdownReason ()
from C:\WINDOWS\System32\user32.dll
#72 0x75cde638 in USER32!DispatchMessageW ()
from C:\WINDOWS\System32\user32.dll
#73 0x75cde103 in USER32!DispatchMessageW ()
from C:\WINDOWS\System32\user32.dll
#74 0x75cddf50 in USER32!DispatchMessageW ()
from C:\WINDOWS\System32\user32.dll
#75 0x025cf526 in wxGUIEventLoop::ProcessMessage (this=0x18763068,
msg=0x1d9fb48) at ../../src/msw/evtloop.cpp:170
#76 0x025cf79a in wxGUIEventLoop::Dispatch (this=0x18763068)
at ../../src/msw/evtloop.cpp:230
#77 0x02498981 in wxEventLoopManual::ProcessEvents (this=0x18763068)
at ../../src/common/evtloopcmn.cpp:172
#78 0x02498a03 in wxEventLoopManual::DoRun (this=0x18763068)
at ../../src/common/evtloopcmn.cpp:206
#79 0x024986f6 in wxEventLoopBase::Run (this=0x18763068)
at ../../src/common/evtloopcmn.cpp:78
#80 0x02472cf1 in wxAppConsoleBase::MainLoop (this=0x12687f10)
at ../../src/common/appbase.cpp:334
#81 0x02472a80 in wxAppConsoleBase::OnRun (this=0x12687f10)
at ../../src/common/appbase.cpp:259
#82 0x0262212c in wxAppBase::OnRun (this=0x12687f10)
at ../../src/common/appcmn.cpp:304
#83 0x00404c30 in CodeBlocksApp::OnRun (this=0x12687f10)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\src\app.cpp:850
#84 0x024becad in wxEntryReal (argc=@0x30293c8: 1, argv=0x12687ef0)
at ../../src/common/init.cpp:495
#85 0x025424d0 in wxEntry (argc=@0x30293c8: 1, argv=0x12687ef0)
at ../../src/msw/main.cpp:197
#86 0x025427a8 in wxEntry (hInstance=0x400000, nCmdShow=10)
at ../../src/msw/main.cpp:415
#87 0x0040217f in WinMain@16 (hInstance=0x400000,
hPrevInstance=hPrevInstance@entry=0x0, nCmdShow=10)
at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\src\app.cpp:322
#88 0x004f3ded in main (flags=1, cmdline=0x12676f10, inst=0xa1bb8)
at C:/Devel/open_source_code/version_control/MINGW_packages-git/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c:18
--- End code ---
oBFusCATed:
Thanks you for the callstack.
--- Quote from: stahta01 on April 21, 2017, 06:54:39 pm ---I am now going to apply the wxWidgets code change to IsKindOf method and verify it really fixes this problem.
--- End quote ---
I doubt this will help.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version