Author Topic: CodeCompletion crash  (Read 3182 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
CodeCompletion crash
« on: August 26, 2008, 02:56:04 pm »
svn build  rev 5192 (2008-08-23T17:49:28.307240Z)   gcc 3.4.5 Windows/unicode

This occurs after loading DragScroll project; put the cursor anywhere in the dragscroll.cpp file and wait 15 to 30 seconds.

Code
Program received signal SIGSEGV, Segmentation fault.
0x619b17d6 in cbThreadedTask::Abort (this=0xfeeefeee)
    at include/cbthreadedtask.h:67
67        m_abort = true;

(gdb) bt full
#0  0x619b17d6 in cbThreadedTask::Abort (this=0xfeeefeee)
    at include/cbthreadedtask.h:67
No locals.
#1  0x617f5954 in cbThreadPool::cbWorkerThread::AbortTask (this=0x2a60df8)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/cbthreadpool.cpp:265
        lock = {m_isOk = true, m_mutex = @0x2a60e2c}
#2  0x617f5914 in cbThreadPool::cbWorkerThread::Abort (this=0x2a60df8)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/cbthreadpool.cpp:251
No locals.
#3  0x61a0fefb in std::mem_fun_t<void, cbThreadPool::cbWorkerThread>::operator()
 (this=0x22ea5c, __p=0x2a60df8)
    at c:/Usr/mingw345/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.
5/bits/stl_function.h:728
No locals.
#4  0x61a37630 in std::for_each<__gnu_cxx::__normal_iterator<cbThreadPool::cbWor
kerThread**, std::vector<cbThreadPool::cbWorkerThread*, std::allocator<cbThreadP
ool::cbWorkerThread*> > >, std::mem_fun_t<void, cbThreadPool::cbWorkerThread> >
    (__first={_M_current = 0x57967f0}, __last={_M_current = 0x57967f4}, __f=
        {<unary_function<cbThreadPool::cbWorkerThread*,void>> = {<No data fields
>}, _M_f = {__pfn = &cbThreadPool::cbWorkerThread::Abort(), __delta = 0}})
    at c:/Usr/mingw345/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.
5/bits/stl_algo.h:158
No locals.
---Type <return> to continue, or q <return> to quit---
#5  0x617f4635 in cbThreadPool::~cbThreadPool (this=0x22ece0)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/cbthreadpool.cpp:26
        lock = {m_isOk = true, m_mutex = @0x22ed0c}
#6  0x65ec7dbd in Parser::~Parser (this=0x22ec54)
    at c:/Usr/Proj/cbBeta/trunk/src/plugins/codecompletion/parser/parser.cpp:145

No locals.
#7  0x65ec2166 in NativeParser::FindCurrentFunctionStart (this=0x1b01468,
    editor=0x2b788f8, nameSpace=0x22ef24, procName=0x22ef34, caretPos=-1)
    at c:/Usr/Proj/cbBeta/trunk/src/plugins/codecompletion/nativeparser.cpp:1933

        token = (Token *) 0x8b18324
        i = 41
        control = (class cbStyledTextCtrl *) 0x2b744f0
        s_LastEditor = (cbEditor *) 0x2b788f8
        s_LastLine = 1080
        s_LastResult = 43512
        s_LastNS = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x75603cc}, <No data fields>}
        s_LastPROC = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x756497c}, <No data fields>}
        pos = 44653
        line = 1080
---Type <return> to continue, or q <return> to quit---
        parser = {<> = {<No data fields>}, m_Options = {
    followLocalIncludes = true, followGlobalIncludes = true,
    caseSensitive = false, wantPreprocessor = true, useSmartSense = true},
  m_BrowserOptions = {showInheritance = false, expandNS = false,
    displayFilter = bdfProject}, m_GlobalIncludes = {<BasicSearchTree> = {
      _vptr$BasicSearchTree = 0x65f24358,
      m_Labels = {<_Vector_base<wxString,std::allocator<wxString> >> = {
          _M_impl = {<allocator<wxString>> = {<new_allocator<wxString>> = {<No d
ata fields>}, <No data fields>}, _M_start = 0x0, _M_finish = 0x0,
            _M_end_of_storage = 0x0}}, <No data fields>},
      m_pNodes = {<_Vector_base<SearchTreeNode*,std::allocator<SearchTreeNode*>
>> = {
          _M_impl = {<allocator<SearchTreeNode*>> = {<new_allocator<SearchTreeNo
de*>> = {<No data fields>}, <No data fields>}, _M_start = 0x2b86c50,
            _M_finish = 0x2b86c54,
            _M_end_of_storage = 0x2b86c54}}, <No data fields>},
      m_Points = {<_Vector_base<SearchTreePoint,std::allocator<SearchTreePoint>
>> = {
          _M_impl = {<allocator<SearchTreePoint>> = {<new_allocator<SearchTreePo
int>> = {<No data fields>}, <No data fields>}, _M_start = 0x31e49c8,
            _M_finish = 0x31e49d0,
            _M_end_of_storage = 0x31e49d0}}, <No data fields>}},
    m_Items = {<_Vector_base<wxString,std::allocator<wxString> >> = {
---Type <return> to continue, or q <return> to quit---
        _M_impl = {<allocator<wxString>> = {<new_allocator<wxString>> = {<No dat
a fields>}, <No data fields>}, _M_start = 0x57968f0, _M_finish = 0x57968f4,
          _M_end_of_storage = 0x57968f4}}, <No data fields>}},
  m_IncludeDirs = {m_nSize = 0, m_nCount = 0, m_pItems = 0x0,
    m_autoSort = false}, m_pParent = 0x1b01468, m_RootNode = {m_pItem = 0x0},
  m_pImageList = 0x0, m_UsingCache = false, m_Pool = {m_pOwner = 0x22ec54,
    m_ID = 928, m_batching = false, m_concurrentThreads = 1,
    m_concurrentThreadsSchedule = 0,
    m_threads = {<_Vector_base<cbThreadPool::cbWorkerThread*,std::allocator<cbTh
readPool::cbWorkerThread*> >> = {
        _M_impl = {<allocator<cbThreadPool::cbWorkerThread*>> = {<new_allocator<
cbThreadPool::cbWorkerThread*>> = {<No data fields>}, <No data fields>},
          _M_start = 0x57967f0, _M_finish = 0x57967f4,
          _M_end_of_storage = 0x57967f4}}, <No data fields>},
    m_tasksQueue = {<_List_base<cbThreadPool::cbThreadedTaskElement,std::allocat
or<cbThreadPool::cbThreadedTaskElement> >> = {
        _M_impl = {<allocator<std::_List_node<cbThreadPool::cbThreadedTaskElemen
t> >> = {<new_allocator<std::_List_node<cbThreadPool::cbThreadedTaskElement> >>
= {<No data fields>}, <No data fields>}, _M_node = {_M_next = 0x22ed00,
            _M_prev = 0x22ed00}}}, <No data fields>}, m_workingThreads = 0,
    m_Mutex = {m_internal = 0x57968a0}, m_semaphore = {ptr = 0x5797950,
      count = 0x5797ba0}}, m_pTokens = 0x0, m_pTempTokens = 0x0,
  m_LocalFiles = {_M_t = {
---Type <return> to continue, or q <return> to quit---
      _M_impl = {<allocator<std::_Rb_tree_node<wxString> >> = {<new_allocator<st
d::_Rb_tree_node<wxString> >> = {<No data fields>}, <No data fields>},
        _M_key_compare = {<binary_function<wxString,wxString,bool>> = {<No data
fields>}, <No data fields>}, _M_header = {_M_color = _S_red, _M_parent = 0x0,
          _M_left = 0x22ed24, _M_right = 0x22ed24}, _M_node_count = 0}}},
  m_NeedsReparse = false, m_IsBatch = false, m_pClassBrowser = 0x0,
  m_TreeBuildingStatus = 0, m_TreeBuildingTokenIdx = 0,
  m_timer = <incomplete type>, m_batchtimer = <incomplete type>,
  m_StopWatch = {m_t0 = {m_ll = 1219715728578}, m_pause = 0,
    m_pauseCount = 0}, m_StopWatchRunning = false, m_LastStopWatchTime = 0,
  m_IgnoreThreadEvents = true, m_ShuttingDown = true,
  m_pClassBrowserBuilderThread = 0x0, static sm_eventTableEntries = {
    {<wxEventTableEntryBase> = {m_id = 0, m_lastId = 0, m_fn = {__pfn = invalid
pointer to member function
(gdb)
(gdb)


// ---bt only----------------------------------------------------------
(gdb) bt
#0  0x619b17d6 in cbThreadedTask::Abort (this=0xfeeefeee)
    at include/cbthreadedtask.h:67
#1  0x617f5954 in cbThreadPool::cbWorkerThread::AbortTask (this=0x2a60df8)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/cbthreadpool.cpp:265
#2  0x617f5914 in cbThreadPool::cbWorkerThread::Abort (this=0x2a60df8)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/cbthreadpool.cpp:251
#3  0x61a0fefb in std::mem_fun_t<void, cbThreadPool::cbWorkerThread>::operator()
 (this=0x22ea5c, __p=0x2a60df8)
    at c:/Usr/mingw345/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.
5/bits/stl_function.h:728
#4  0x61a37630 in std::for_each<__gnu_cxx::__normal_iterator<cbThreadPool::cbWor
kerThread**, std::vector<cbThreadPool::cbWorkerThread*, std::allocator<cbThreadP
ool::cbWorkerThread*> > >, std::mem_fun_t<void, cbThreadPool::cbWorkerThread> >
    (__first={_M_current = 0x57967f0}, __last={_M_current = 0x57967f4}, __f=
        {<unary_function<cbThreadPool::cbWorkerThread*,void>> = {<No data fields
>}, _M_f = {__pfn = &cbThreadPool::cbWorkerThread::Abort(), __delta = 0}})
    at c:/Usr/mingw345/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.
5/bits/stl_algo.h:158
#5  0x617f4635 in cbThreadPool::~cbThreadPool (this=0x22ece0)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/cbthreadpool.cpp:26
#6  0x65ec7dbd in Parser::~Parser (this=0x22ec54)
    at c:/Usr/Proj/cbBeta/trunk/src/plugins/codecompletion/parser/parser.cpp:145

---Type <return> to continue, or q <return> to quit---
#7  0x65ec2166 in NativeParser::FindCurrentFunctionStart (this=0x1b01468,
    editor=0x2b788f8, nameSpace=0x22ef24, procName=0x22ef34, caretPos=-1)
    at c:/Usr/Proj/cbBeta/trunk/src/plugins/codecompletion/nativeparser.cpp:1933

#8  0x65ec24a3 in NativeParser::FindCurrentFunctionToken (this=0x1b01468,
    editor=0x2b788f8, result=@0x22f144, caretPos=-1)
    at c:/Usr/Proj/cbBeta/trunk/src/plugins/codecompletion/nativeparser.cpp:1960

#9  0x65ebec25 in NativeParser::AI (this=0x1b01468, result=@0x22f3f4,
    editor=0x2b788f8, parser=0x1b01490, lineText=@0x22f2d4,
    noPartialMatch=true, caseSensitive=true, search_scope=0x22f2b4,
    caretPos=44897)
    at c:/Usr/Proj/cbBeta/trunk/src/plugins/codecompletion/nativeparser.cpp:1392

#10 0x65ebcc29 in NativeParser::MarkItemsByAI (this=0x1b01468,
    result=@0x22f3f4, reallyUseAI=true, noPartialMatch=true,
    caseSensitive=true, caretPos=44897)
    at c:/Usr/Proj/cbBeta/trunk/src/plugins/codecompletion/nativeparser.cpp:915
#11 0x65eb0226 in CodeCompletion::OnValueTooltip (this=0x1b01420,
    event=@0x22f4f4)
    at c:/Usr/Proj/cbBeta/trunk/src/plugins/codecompletion/codecompletion.cpp:15
21
#12 0x65ef2898 in cbEventFunctor<CodeCompletion, CodeBlocksEvent>::Call (
---Type <return> to continue, or q <return> to quit---
    this=0x2a0a8f0, event=@0x22f4f4)
    at c:/Usr/Proj/cbBeta/trunk/src/include/cbfunctor.h:35
#13 0x61893cd8 in Manager::ProcessEvent (this=0x10bd290, event=@0x22f4f4)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/manager.cpp:169
#14 0x618abeec in PluginManager::NotifyPlugins (this=0x13f2330,
    event=@0x22f4f4) at c:/Usr/Proj/cbBeta/trunk/src/sdk/pluginmanager.cpp:1454
#15 0x617c9064 in cbEditor::NotifyPlugins (this=0x2b788f8, type=10334,
    intArg=11, strArg=@0x22f5e4, xArg=532, yArg=435)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/cbeditor.cpp:573
#16 0x617dcd76 in cbEditor::OnEditorDwellStart (this=0x2b788f8,
    event=@0x22f7c4) at c:/Usr/Proj/cbBeta/trunk/src/sdk/cbeditor.cpp:2606
#17 0x100c70d5 in wxEvtHandler::ProcessEventIfMatches ()
   from c:\usr\bin\wxmsw28u_gcc_custom.dll
#18 0x100c8321 in wxEvtHandler::SearchDynamicEventTable ()
   from c:\usr\bin\wxmsw28u_gcc_custom.dll
#19 0x100c83d8 in wxEvtHandler::ProcessEvent ()
   from c:\usr\bin\wxmsw28u_gcc_custom.dll
#20 0x1025551b in wxWindowBase::TryParent ()
   from c:\usr\bin\wxmsw28u_gcc_custom.dll
#21 0x100c83ae in wxEvtHandler::ProcessEvent ()
   from c:\usr\bin\wxmsw28u_gcc_custom.dll
#22 0x100c8399 in wxEvtHandler::ProcessEvent ()
   from c:\usr\bin\wxmsw28u_gcc_custom.dll
---Type <return> to continue, or q <return> to quit---
#23 0x6ca0ed9d in wxScintilla::NotifyParent (this=0x2b744f0, _scn=0x22f898)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:3287
#24 0x6c98865c in ScintillaWX::NotifyParent (this=0x2b74680, scn=
      {nmhdr = {hwndFrom = 0x0, idFrom = 0, code = 2016}, position = 44889, ch =
 0, modifiers = 0, modificationType = 0, text = 0x0, length = 0, linesAdded = 0,
 message = 0, wParam = 0, lParam = 0, line = 0, foldLevelNow = 0, foldLevelPrev
= 0, margin = 0, listType = 0, x = 532, y = 435})
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/wxscintilla/src/ScintillaWX.cpp:470
#25 0x6c9a6ac7 in Editor::NotifyDwelling (this=0x2b74680, pt=
      {x = 532, y = 435}, state=true)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/wxscintilla/src/scintilla/src/Editor.cxx
:3704
#26 0x6c9acef7 in Editor::Tick (this=0x2b74680)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/wxscintilla/src/scintilla/src/Editor.cxx
:5456
#27 0x6ca17c51 in ScintillaWX::DoTick (this=0x2b74680)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/wxscintilla/src/ScintillaWX.h:149
#28 0x6ca1795c in wxSCITimer::Notify (this=0x2b79e08)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/wxscintilla/src/ScintillaWX.cpp:36
#29 0x10127913 in wxTimerProc () from c:\usr\bin\wxmsw28u_gcc_custom.dll
#30 0x77d48709 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#31 0x00000000 in ?? () from
#32 0x00000113 in ?? ()
---Type <return> to continue, or q <return> to quit---



Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CodeCompletion crash
« Reply #1 on: August 28, 2008, 11:01:43 am »
This occurs after loading DragScroll project; put the cursor anywhere in the dragscroll.cpp file and wait 15 to 30 seconds.
Erm... sorry to say this but it works fine for me. I tried multiple times waiting even more than a minute but it never crashed...?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ