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
dermeister 2007-06-22 18:15

I can't reproduce this here with revision 4153 on Linux (gcc 4.1.2, wxGTK 2.6.3).

biplab 2007-06-23 15:19
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.
rickg22 2007-06-25 14:10

Code completion has experienced some changes, we're at revision 4168 now. Can anyone reproduce this bug?

pauliusz 2007-06-25 22:30

Works fine for me...

Rev: 4177

OS: Win XP SP2

rickg22 2007-06-26 22:50

Does it crash with revision 4185? There were some changes in code completion (again).

rekisum 2007-06-27 09:00

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.

mortenmacfly 2007-06-27 19:42

Can't reproduce here, too (Windows, r4186, wx26). :-(

mandrav 2007-06-28 09:31

Can't reproduce this on Linux.

Will check on Windows today.

yesno 2007-06-28 15:08

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)

rickg22 2007-06-28 18:12

Is anybody actually working on this bug? If not, assign it to me, I think I have an idea of how to fix it...

rickg22 2007-06-29 02:14

Patch #2084 fixes this bug. At least on my machine...

biplab 2007-06-29 03:53

Patch #2048 fixes this. I've tested it. :-)

biplab 2007-06-29 04:06

Oops!! There was a typo in my last comment. It should be Patch #2084.

mandrav 2007-07-02 17:25

This bug is now fixed in HEAD.

Thank you for reporting it.