https://bugs.kde.org/show_bug.cgi?id=379004
--- Comment #6 from RJVB <rjvber...@gmail.com> --- So it's not that; the crash occurs before sdDUChainPrivate is deleted. However, m_openDocumentContexts clearly contains stale references which currently cannot be detected properly. I tried using `sdDUChainPrivate->m_referenceCounts[top] == 0` as a test before the check on top->url() but that catches only part of the offending cases. In other words, TopDUContexts are apparently deleted also without bumping their refcount to 0 . I tried setting m_dynamicData=nullptr in ~TopDUContext() and then got another crash in ~DUContext() where I see this: TopDUContext* top = topContext(); if(!top->deleting() || !top->isOnDisk()) { How can that be correct if ~DUContext() can be called after its associated TopDUContext has been deleted?! -- You are receiving this mail because: You are watching all bug changes.