https://bugs.kde.org/show_bug.cgi?id=379669
--- Comment #55 from RJVB <[email protected]> --- (In reply to JATothrim from comment #53) > > In case anyone is still reading updates to this ticket: that must be a > > freak event because a ctor should never be called with `this==0x0`, no?! > > All of the parser threads should be long gone when the DUChain::shutdown() > is entered. Can you attach a backtrace of all threads? Done. I do have the impression that parsers for languages that require plugins can help mess up the exit when those plugins are unloaded before the associated thread(s) are all gone. I've patched in checks at the most common locations where this would cause crashing so nowadays I don't get that too often anymore (plus I use KDevelop a lot less than I used to). > How the main thread managed to end up with DUChain::lock() == nullptr is > puzzling to say the least: the lock is statically allocated and to call the > clear() method the sdDUChainPrivate cannot be null. That was my initial reaction too, but that's not what happened here a priori. The offending nullptr is the `this` pointer, the class instance itself. I don't see how that could happen except through a bug in the C++ runtime... > timed lock succeeded. I'm not sure if this could be related to the bug here. The actual bug in this ticket is so well hidden that anything messing up a proper exit could be related to it... -- You are receiving this mail because: You are watching all bug changes.
