Revision f2f6539...
Go back to digest for 10th November 2013Bug Fixes in Development Tools
Kevin Funk committed changes in [kdevelop/4.6] languages/cpp/cpplanguagesupport.cpp:
Don't crash in case of dangling updates
DUChain::waitForUpdate does QApplication::progressEvents() in a while-loop and
waits for an update from the background parser. In case the application
is shut down, CppLanguageSupport eventually is deleted, but the
while-loop may still be running. When the call to
DUChain::waitForUpdate inside
CppLanguageSupport::switchDefinitionDeclaration returns, 'this' is
already invalid and the subsequent call to CppLanguage::standardContext
ends up in SIGSEGV.
Hence, always check if the context returned by waitForUpdate(...) is
valid and return immediately if not.
Bug 325648: Crash on app close
29 days
File Changes
Modified 1 files
- languages/cpp/cpplanguagesupport.cpp
1 files changed in total