Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Nasty crash in symbol browser
Agustin:
Hi,
I have been using Codeblocks in Windows for a while, and I keep experiencing this recurring problem over nightly builds. It was supposedly fixed as of late, but it seems this is not the case. The problem can be reproduced in the following manner:
In the Symbols Browser, choose Current File's Symbols.
Then, select Global Functions or Global Variables.
Open a file from the Project Browser, or even switch to another tab if the file is already opened...
That causes a crash, everytime I do it, even between different computers. I assume the problem is caused when Code Completion is parsing the new file. Is this a known problem? If so, I'm sorry for reporting it.
Any help would be greatly appreciated!
Agustin
Biplab:
It's a known bug. Hopefully it'll be fixed soon.
rickg22:
"Crash" as in lockup-you-cant-do-anything, or "crash" as in "This program has executed an illegal operation and must be shutdown" crash? Because I just tried to do what you said, and my C::B locked up. However, i checked the task manager and it was on 0%.
Biplab:
Here is one crash report.
--- Quote ---Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 4780.0x108]
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=0x24e5ef8,
item={m_pItem = 0xffff0000})
at F:/cbsource/src/plugins/codecompletion/classbrowserbuilderthread.cpp:620
lock = {m_isOk = true, m_mutex = @0x24e5f5c}
#6 0x65e9e749 in ClassBrowserBuilderThread::RemoveInvalidNodes (
this=0x24e5ef8, tree=0x24e5038, parent={m_pItem = 0xffff0000})
at F:/cbsource/src/plugins/codecompletion/classbrowserbuilderthread.cpp:249
parent = {m_pItem = 0xffff0000}
isLastChild = true
data = (CBTreeData *) 0x704c710
existing = {m_pItem = 0x28f978}
#7 0x65e9e487 in ClassBrowserBuilderThread::BuildTree (this=0x24e5ef8)
at F:/cbsource/src/plugins/codecompletion/classbrowserbuilderthread.cpp:189
root = {m_pItem = 0x28ada0}
#8 0x65e9dfbf in ClassBrowserBuilderThread::Entry (this=0x24e5ef8)
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 0x024e5ef8 in ?? ()
No symbol table info available.
#13 0x00000002 in ?? ()
No symbol table info available.
#14 0x00ffffff in ?? ()
No symbol table info available.
#15 0x0257aff8 in ?? ()
No symbol table info available.
#16 0x00000000 in ?? ()
No symbol table info available.
--- End quote ---
Rev 4193, Win XP SP2.
rickg22:
Is it just me, or this crash is related to Bug 11460?
http://developer.berlios.de/bugs/?func=detailbug&bug_id=11460&group_id=5358
--- Code: ---ClassBrowserBuilderThread::RemoveInvalidNodes (
this=0x24e5ef8, tree=0x24e5038, parent={m_pItem = 0xffff0000})
at F:/cbsource/src/plugins/codecompletion/classbrowserbuilderthread.cpp:249
parent = {m_pItem = 0xffff0000}
isLastChild = true
data = (CBTreeData *) 0x704c710
existing = {m_pItem = 0x28f978}
#7 0x65e9e487 in ClassBrowserBuilderThread::BuildTree
--- End code ---
Interestingly, both bugs are related to the symbol browser being rewritten.
Anyway... Is anybody *ACTUALLY WORKING* on debugging this?
Because I don't see anyone assigned to that bug.
Because I think i have a solution for this bug, and is to *clear the whole tree* instead of just removing the invalid nodes. However, I haven't examined that particular part of the codecompletion plugin. If nobody's working on it, I volunteer.
Navigation
[0] Message Index
[#] Next page
Go to full version