Bug #11433 2007-06-22 07:51
rekisum
symbols tab crash on file change
C::B crashes always on following:
-activate the symbols tab on the left
- select 'Current file's symbols'
- select to another file tab with the mouse
svn build rev 4124 (2007-06-20 19:54:37) gcc 3.4.5 Windows/unicode
used under WinXP
- Category
- Application::Crash
- Group
- Status
- Closed
- Close date
- 2007-07-02 17:25
- Assigned to
- mandrav
History
I can't reproduce this here with revision 4153 on Linux (gcc 4.1.2, wxGTK 2.6.3).
It crashes. I'm attaching the crash report. Rev 4160, WinXP-SP2. Program received signal SIGSEGV, Segmentation fault. [Switching to thread 6036.0x174c] 0x6cde42ec in wxTreeCtrl::GetItemParam () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll (gdb) bt full #0 0x6cde42ec in wxTreeCtrl::GetItemParam () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #1 0x6cde44d8 in wxTreeCtrl::GetItemData () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #2 0x6ce8b18d in wxTreeEvent::wxTreeEvent () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #3 0x6cde62d6 in wxTreeCtrl::DoExpand () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #4 0x6cde6601 in wxTreeCtrl::CollapseAndReset () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #5 0x65ea0a61 in ClassBrowserBuilderThread::CollapseItem (this=0x4583748, item={m_pItem = 0xffff0000}) at F:/cbsource/src/plugins/codecompletion/classbrowserbuilderthread.cpp:620 lock = {m_isOk = true, m_mutex = @0x45837ac} #6 0x65e9e749 in ClassBrowserBuilderThread::RemoveInvalidNodes ( this=0x4583748, tree=0x4595c88, parent={m_pItem = 0xffff0000}) at F:/cbsource/src/plugins/codecompletion/classbrowserbuilderthread.cpp:249 parent = {m_pItem = 0xffff0000} isLastChild = true data = (CBTreeData *) 0x8d90cc8 existing = {m_pItem = 0x2c5818} #7 0x65e9e487 in ClassBrowserBuilderThread::BuildTree (this=0x4583748) at F:/cbsource/src/plugins/codecompletion/classbrowserbuilderthread.cpp:189 root = {m_pItem = 0x28d130} #8 0x65e9dfbf in ClassBrowserBuilderThread::Entry (this=0x4583748) at F:/cbsource/src/plugins/codecompletion/classbrowserbuilderthread.cpp:107 No locals. #9 0x6ccff82b in wxThreadInternal::DoThreadStart () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #10 0x6ccff93d in wxThreadInternal::WinThreadStart () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #11 0x77c3a3b0 in msvcrt!_endthreadex () from C:\WINDOWS\system32\msvcrt.dll No symbol table info available. #12 0x04583748 in ?? () No symbol table info available. #13 0x00000002 in ?? () No symbol table info available. #14 0x00ffffff in ?? () No symbol table info available. #15 0x045837c8 in ?? () No symbol table info available. #16 0x00000000 in ?? () No symbol table info available. (gdb) #0 0x6cde42ec in wxTreeCtrl::GetItemParam () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #1 0x6cde44d8 in wxTreeCtrl::GetItemData () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #2 0x6ce8b18d in wxTreeEvent::wxTreeEvent () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #3 0x6cde62d6 in wxTreeCtrl::DoExpand () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #4 0x6cde6601 in wxTreeCtrl::CollapseAndReset () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #5 0x65ea0a61 in ClassBrowserBuilderThread::CollapseItem (this=0x4583748, item={m_pItem = 0xffff0000}) at F:/cbsource/src/plugins/codecompletion/classbrowserbuilderthread.cpp:620 lock = {m_isOk = true, m_mutex = @0x45837ac} #6 0x65e9e749 in ClassBrowserBuilderThread::RemoveInvalidNodes ( this=0x4583748, tree=0x4595c88, parent={m_pItem = 0xffff0000}) at F:/cbsource/src/plugins/codecompletion/classbrowserbuilderthread.cpp:249 parent = {m_pItem = 0xffff0000} isLastChild = true data = (CBTreeData *) 0x8d90cc8 existing = {m_pItem = 0x2c5818} #7 0x65e9e487 in ClassBrowserBuilderThread::BuildTree (this=0x4583748) at F:/cbsource/src/plugins/codecompletion/classbrowserbuilderthread.cpp:189 root = {m_pItem = 0x28d130} #8 0x65e9dfbf in ClassBrowserBuilderThread::Entry (this=0x4583748) at F:/cbsource/src/plugins/codecompletion/classbrowserbuilderthread.cpp:107 No locals. #9 0x6ccff82b in wxThreadInternal::DoThreadStart () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #10 0x6ccff93d in wxThreadInternal::WinThreadStart () from F:\cbsource\src\devel\wxmsw28u_gcc_cb.dll No symbol table info available. #11 0x77c3a3b0 in msvcrt!_endthreadex () from C:\WINDOWS\system32\msvcrt.dll No symbol table info available. #12 0x04583748 in ?? () No symbol table info available. #13 0x00000002 in ?? () No symbol table info available. #14 0x00ffffff in ?? () No symbol table info available. #15 0x045837c8 in ?? () No symbol table info available. #16 0x00000000 in ?? () No symbol table info available.
Code completion has experienced some changes, we're at revision 4168 now. Can anyone reproduce this bug?
Works fine for me...
Rev: 4177
OS: Win XP SP2
Does it crash with revision 4185? There were some changes in code completion (again).
Yes it does still crash with svn 4185.
(svn build rev 4185 (2007-06-26 14:15:11) gcc 3.4.5 Windows/unicode)
WinXP SP2
Unhandled exception at 0x00000000 in codeblocks.exe: 0xC0000005: Access violation reading location 0x00000028.
On my installation the VisualC debugger is popping up. But gives me no further information.
Can't reproduce here, too (Windows, r4186, wx26). :-(
Can't reproduce this on Linux.
Will check on Windows today.
The crash also occurs if you have selected the view "Active project's symbols" and selected a file, where none of the shown symbols is in, and switch back to "Current file's symbols".
Having "Show inherited members" on and selecting Base/Derived class of the one in the current file does the same after changing the view.
(WinXP, CB_20070627_rev4190_win32)
Is anybody actually working on this bug? If not, assign it to me, I think I have an idea of how to fix it...
Patch #2084 fixes this bug. At least on my machine...
Patch #2048 fixes this. I've tested it. :-)
Oops!! There was a typo in my last comment. It should be Patch #2084.
This bug is now fixed in HEAD.
Thank you for reporting it.