Summary: | KDevelop crashed - closing a file | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Vishesh Handa <me> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | kde, simone6021 |
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Vishesh Handa
2010-06-17 13:15:48 UTC
#6 0x05b0398c in vtable for Oxygen::EnableData () from /home/vishesh/kde/lib/kde4/plugins/styles/oxygen.so Please install kdebase-runtime debug package and paste a new bactrace You don't need to, it's a known bug with the SmartRanges. Should hopefully be fixed with David's rewrite that will use the MovingRanges that are introduced in Kate for KDE 4.5. Closing for now, as it's being actively being worked on and it's a known bug (probably there are duplicates somewhere available...) *** Bug 241299 has been marked as a duplicate of this bug. *** *** Bug 242163 has been marked as a duplicate of this bug. *** *** Bug 242643 has been marked as a duplicate of this bug. *** Changing the product back to kdevelop. Otherwise, the bug reporting assistant will never find this report. oh yes sorry Christophe Giboudeaux just provided me with the valgrind infos below. Even though parts of the line numbers/debug info look fishy, I'm tempted to say this should be all we need to fix it. To me it looks as if one need to unset watchers on SmartRanges before deleting the watcher. I'll have to find out which widget actually causes that, probably the problem highlighter itself - but why is that getting deleted before the KateDocument? # ==29016== Thread 1: # ==29016== Invalid read of size 8 # ==29016== at 0x25DA523D: KateSmartRange::~KateSmartRange() (katesmartrange.cpp:56) # ==29016== by 0x25DA52E8: KateSmartRange::~KateSmartRange() (katesmartrange.cpp:60) # ==29016== by 0x2BD7CC5E: ProblemHighlighter::~ProblemHighlighter() (qalgorithms.h:322) # ==29016== by 0x2BD7CC88: ProblemHighlighter::~ProblemHighlighter() (problemhighlighter.cpp:114) # ==29016== by 0x2BD78618: ProblemReporterPlugin::documentAboutToBeDeleted(KTextEditor::Document*) (problemreporterplugin.cpp:116) # ==29016== by 0x2BD786C2: ProblemReporterPlugin::qt_metacall(QMetaObject::Call, int, void**) (problemreporterplugin.moc:82) # ==29016== by 0x61F670E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3272) # ==29016== by 0x9D0DAC1: KDevelop::EditorIntegratorStatic::documentAboutToBeDeleted(KTextEditor::Document*) (editorintegratorstatic.moc:112) # ==29016== by 0x9D0E179: KDevelop::EditorIntegratorStatic::removeDocument(KTextEditor::Document*) (editorintegratorstatic.cpp:98) # ==29016== by 0x5596551: KDevelop::TextDocument::close(KDevelop::IDocument::DocumentSaveMode) (textdocument.cpp:499) # ==29016== by 0xA0F3F33: Sublime::Area::closeView(Sublime::View*) (area.cpp:431) # ==29016== by 0xA10351A: Sublime::MainWindowPrivate::widgetCloseRequest(QWidget*) (mainwindow_p.cpp:612) # ==29016== Address 0x13745e50 is 144 bytes inside a block of size 752 free'd # ==29016== at 0x4C25C8D: operator delete(void*) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) # ==29016== by 0x61F3AE3: QObjectPrivate::deleteChildren() (qobject.cpp:1949) # ==29016== by 0x672E64F: QWidget::~QWidget() (qwidget.cpp:1560) # ==29016== by 0x55969A8: KDevelop::TextEditorWidget::~TextEditorWidget() (textdocument.cpp:621) # ==29016== by 0x55964D3: KDevelop::TextView::~TextView() (textdocument.cpp:523) # ==29016== by 0x5596508: KDevelop::TextView::~TextView() (textdocument.cpp:526) # ==29016== by 0x5595C97: KDevelop::PartDocument::close(KDevelop::IDocument::DocumentSaveMode) (partdocument.cpp:136) # ==29016== by 0x5596537: KDevelop::TextDocument::close(KDevelop::IDocument::DocumentSaveMode) (textdocument.cpp:495) # ==29016== by 0xA0F3F33: Sublime::Area::closeView(Sublime::View*) (area.cpp:431) # ==29016== by 0xA10351A: Sublime::MainWindowPrivate::widgetCloseRequest(QWidget*) (mainwindow_p.cpp:612) # ==29016== by 0xA105395: Sublime::MainWindowPrivate::qt_metacall(QMetaObject::Call, int, void**) (mainwindow_p.moc:130) # ==29016== by 0x61F670E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3272) # ==29016== # ==29016== Invalid read of size 8 # ==29016== at 0x5850900: KTextEditor::SmartRange::removeChildRange(KTextEditor::SmartRange*) (smartrange.cpp:357) # ==29016== by 0x585208A: KTextEditor::SmartRange::setParentRange(KTextEditor::SmartRange*) (smartrange.cpp:602) # ==29016== by 0x25DA4606: KateSmartRange::setParentRange(KTextEditor::SmartRange*) (katesmartrange.cpp:193) # ==29016== by 0x9D0C161: KDevelop::EditorIntegrator::releaseRange(KTextEditor::SmartRange*) (editorintegrator.cpp:369) # ==29016== by 0x9D0AE87: KDevelop::DocumentRangeObject::setSmartRange(KTextEditor::SmartRange*, KDevelop::DocumentRangeObject::RangeOwning) (documentrangeobject.cpp:187) # ==29016== by 0x9D3578A: KDevelop::deconvertDUChainInternal(KDevelop::DUContext*) (duchain.cpp:1470) # ==29016== by 0x9D3592F: KDevelop::DUChain::documentAboutToBeDeletedFinal(KTextEditor::Document*) (duchain.cpp:1495) # ==29016== by 0x9D35AF2: KDevelop::DUChain::qt_metacall(QMetaObject::Call, int, void**) (duchain.moc:167) # ==29016== by 0x61F670E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3272) # ==29016== by 0x9D0DB01: KDevelop::EditorIntegratorStatic::documentAboutToBeDeletedFinal(KTextEditor::Document*) (editorintegratorstatic.moc:119) # ==29016== by 0x9D0E232: KDevelop::EditorIntegratorStatic::removeDocument(KTextEditor::Document*) (editorintegratorstatic.cpp:125) # ==29016== by 0x5596551: KDevelop::TextDocument::close(KDevelop::IDocument::DocumentSaveMode) (textdocument.cpp:499) # ==29016== Address 0x13745e50 is 144 bytes inside a block of size 752 free'd # ==29016== at 0x4C25C8D: operator delete(void*) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) # ==29016== by 0x61F3AE3: QObjectPrivate::deleteChildren() (qobject.cpp:1949) # ==29016== by 0x672E64F: QWidget::~QWidget() (qwidget.cpp:1560) # ==29016== by 0x55969A8: KDevelop::TextEditorWidget::~TextEditorWidget() (textdocument.cpp:621) # ==29016== by 0x55964D3: KDevelop::TextView::~TextView() (textdocument.cpp:523) # ==29016== by 0x5596508: KDevelop::TextView::~TextView() (textdocument.cpp:526) # ==29016== by 0x5595C97: KDevelop::PartDocument::close(KDevelop::IDocument::DocumentSaveMode) (partdocument.cpp:136) # ==29016== by 0x5596537: KDevelop::TextDocument::close(KDevelop::IDocument::DocumentSaveMode) (textdocument.cpp:495) # ==29016== by 0xA0F3F33: Sublime::Area::closeView(Sublime::View*) (area.cpp:431) # ==29016== by 0xA10351A: Sublime::MainWindowPrivate::widgetCloseRequest(QWidget*) (mainwindow_p.cpp:612) # ==29016== by 0xA105395: Sublime::MainWindowPrivate::qt_metacall(QMetaObject::Call, int, void**) (mainwindow_p.moc:130) # ==29016== by 0x61F670E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3272) # ==29016== # ==29016== Invalid read of size 8 # ==29016== at 0x5851C00: KTextEditor::SmartRange::insertChildRange(KTextEditor::SmartRange*) (smartrange.cpp:317) # ==29016== by 0x58520A2: KTextEditor::SmartRange::setParentRange(KTextEditor::SmartRange*) (smartrange.cpp:609) # ==29016== by 0x9D0C1EA: KDevelop::EditorIntegrator::releaseRange(KTextEditor::SmartRange*) (editorintegrator.cpp:372) # ==29016== by 0x9D0AE87: KDevelop::DocumentRangeObject::setSmartRange(KTextEditor::SmartRange*, KDevelop::DocumentRangeObject::RangeOwning) (documentrangeobject.cpp:187) # ==29016== by 0x9D35716: KDevelop::deconvertDUChainInternal(KDevelop::DUContext*) (duchain.cpp:1477) # ==29016== by 0x9D3573E: KDevelop::deconvertDUChainInternal(KDevelop::DUContext*) (duchain.cpp:1475) # ==29016== by 0x9D3592F: KDevelop::DUChain::documentAboutToBeDeletedFinal(KTextEditor::Document*) (duchain.cpp:1495) # ==29016== by 0x9D35AF2: KDevelop::DUChain::qt_metacall(QMetaObject::Call, int, void**) (duchain.moc:167) # ==29016== by 0x61F670E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3272) # ==29016== by 0x9D0DB01: KDevelop::EditorIntegratorStatic::documentAboutToBeDeletedFinal(KTextEditor::Document*) (editorintegratorstatic.moc:119) # ==29016== by 0x9D0E232: KDevelop::EditorIntegratorStatic::removeDocument(KTextEditor::Document*) (editorintegratorstatic.cpp:125) # ==29016== by 0x5596551: KDevelop::TextDocument::close(KDevelop::IDocument::DocumentSaveMode) (textdocument.cpp:499) # ==29016== Address 0x13745e50 is 144 bytes inside a block of size 752 free'd # ==29016== at 0x4C25C8D: operator delete(void*) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) # ==29016== by 0x61F3AE3: QObjectPrivate::deleteChildren() (qobject.cpp:1949) # ==29016== by 0x672E64F: QWidget::~QWidget() (qwidget.cpp:1560) # ==29016== by 0x55969A8: KDevelop::TextEditorWidget::~TextEditorWidget() (textdocument.cpp:621) # ==29016== by 0x55964D3: KDevelop::TextView::~TextView() (textdocument.cpp:523) # ==29016== by 0x5596508: KDevelop::TextView::~TextView() (textdocument.cpp:526) # ==29016== by 0x5595C97: KDevelop::PartDocument::close(KDevelop::IDocument::DocumentSaveMode) (partdocument.cpp:136) # ==29016== by 0x5596537: KDevelop::TextDocument::close(KDevelop::IDocument::DocumentSaveMode) (textdocument.cpp:495) # ==29016== by 0xA0F3F33: Sublime::Area::closeView(Sublime::View*) (area.cpp:431) # ==29016== by 0xA10351A: Sublime::MainWindowPrivate::widgetCloseRequest(QWidget*) (mainwindow_p.cpp:612) # ==29016== by 0xA105395: Sublime::MainWindowPrivate::qt_metacall(QMetaObject::Call, int, void**) (mainwindow_p.moc:130) # ==29016== by 0x61F670E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3272) # ==29016== # ==29016== Invalid read of size 8 # ==29016== at 0x25DA523D: KateSmartRange::~KateSmartRange() (katesmartrange.cpp:56) # ==29016== by 0x25DA52E8: KateSmartRange::~KateSmartRange() (katesmartrange.cpp:60) # ==29016== by 0x9D0C219: KDevelop::EditorIntegrator::releaseRange(KTextEditor::SmartRange*) (editorintegrator.cpp:374) # ==29016== by 0x9D0AE87: KDevelop::DocumentRangeObject::setSmartRange(KTextEditor::SmartRange*, KDevelop::DocumentRangeObject::RangeOwning) (documentrangeobject.cpp:187) # ==29016== by 0x9D35716: KDevelop::deconvertDUChainInternal(KDevelop::DUContext*) (duchain.cpp:1477) # ==29016== by 0x9D3592F: KDevelop::DUChain::documentAboutToBeDeletedFinal(KTextEditor::Document*) (duchain.cpp:1495) # ==29016== by 0x9D35AF2: KDevelop::DUChain::qt_metacall(QMetaObject::Call, int, void**) (duchain.moc:167) # ==29016== by 0x61F670E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3272) # ==29016== by 0x9D0DB01: KDevelop::EditorIntegratorStatic::documentAboutToBeDeletedFinal(KTextEditor::Document*) (editorintegratorstatic.moc:119) # ==29016== by 0x9D0E232: KDevelop::EditorIntegratorStatic::removeDocument(KTextEditor::Document*) (editorintegratorstatic.cpp:125) # ==29016== by 0x5596551: KDevelop::TextDocument::close(KDevelop::IDocument::DocumentSaveMode) (textdocument.cpp:499) # ==29016== by 0xA0F3F33: Sublime::Area::closeView(Sublime::View*) (area.cpp:431) # ==29016== Address 0x13745e50 is 144 bytes inside a block of size 752 free'd # ==29016== at 0x4C25C8D: operator delete(void*) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) # ==29016== by 0x61F3AE3: QObjectPrivate::deleteChildren() (qobject.cpp:1949) # ==29016== by 0x672E64F: QWidget::~QWidget() (qwidget.cpp:1560) # ==29016== by 0x55969A8: KDevelop::TextEditorWidget::~TextEditorWidget() (textdocument.cpp:621) # ==29016== by 0x55964D3: KDevelop::TextView::~TextView() (textdocument.cpp:523) # ==29016== by 0x5596508: KDevelop::TextView::~TextView() (textdocument.cpp:526) # ==29016== by 0x5595C97: KDevelop::PartDocument::close(KDevelop::IDocument::DocumentSaveMode) (partdocument.cpp:136) # ==29016== by 0x5596537: KDevelop::TextDocument::close(KDevelop::IDocument::DocumentSaveMode) (textdocument.cpp:495) # ==29016== by 0xA0F3F33: Sublime::Area::closeView(Sublime::View*) (area.cpp:431) # ==29016== by 0xA10351A: Sublime::MainWindowPrivate::widgetCloseRequest(QWidget*) (mainwindow_p.cpp:612) # ==29016== by 0xA105395: Sublime::MainWindowPrivate::qt_metacall(QMetaObject::Call, int, void**) (mainwindow_p.moc:130) # ==29016== by 0x61F670E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3272) # ==29016== # ==29016== Invalid read of size 8 # ==29016== at 0x5850900: KTextEditor::SmartRange::removeChildRange(KTextEditor::SmartRange*) (smartrange.cpp:357) # ==29016== by 0x585208A: KTextEditor::SmartRange::setParentRange(KTextEditor::SmartRange*) (smartrange.cpp:602) # ==29016== by 0x5852200: KTextEditor::SmartRange::~SmartRange() (smartrange.cpp:198) # ==29016== by 0x25DA5288: KateSmartRange::~KateSmartRange() (katesmartrange.cpp:48) # ==29016== by 0x25DA52E8: KateSmartRange::~KateSmartRange() (katesmartrange.cpp:60) # ==29016== by 0x5850325: KTextEditor::SmartRange::deleteChildRanges() (qalgorithms.h:322) # ==29016== by 0x58521F6: KTextEditor::SmartRange::~SmartRange() (smartrange.cpp:196) # ==29016== by 0x25DA5288: KateSmartRange::~KateSmartRange() (katesmartrange.cpp:48) # ==29016== by 0x25DA52E8: KateSmartRange::~KateSmartRange() (katesmartrange.cpp:60) # ==29016== by 0x9D0C219: KDevelop::EditorIntegrator::releaseRange(KTextEditor::SmartRange*) (editorintegrator.cpp:374) # ==29016== by 0x9D0AE87: KDevelop::DocumentRangeObject::setSmartRange(KTextEditor::SmartRange*, KDevelop::DocumentRangeObject::RangeOwning) (documentrangeobject.cpp:187) # ==29016== by 0x9D35716: KDevelop::deconvertDUChainInternal(KDevelop::DUContext*) (duchain.cpp:1477) # ==29016== Address 0x13745e50 is 144 bytes inside a block of size 752 free'd # ==29016== at 0x4C25C8D: operator delete(void*) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) # ==29016== by 0x61F3AE3: QObjectPrivate::deleteChildren() (qobject.cpp:1949) # ==29016== by 0x672E64F: QWidget::~QWidget() (qwidget.cpp:1560) # ==29016== by 0x55969A8: KDevelop::TextEditorWidget::~TextEditorWidget() (textdocument.cpp:621) # ==29016== by 0x55964D3: KDevelop::TextView::~TextView() (textdocument.cpp:523) # ==29016== by 0x5596508: KDevelop::TextView::~TextView() (textdocument.cpp:526) # ==29016== by 0x5595C97: KDevelop::PartDocument::close(KDevelop::IDocument::DocumentSaveMode) (partdocument.cpp:136) # ==29016== by 0x5596537: KDevelop::TextDocument::close(KDevelop::IDocument::DocumentSaveMode) (textdocument.cpp:495) # ==29016== by 0xA0F3F33: Sublime::Area::closeView(Sublime::View*) (area.cpp:431) # ==29016== by 0xA10351A: Sublime::MainWindowPrivate::widgetCloseRequest(QWidget*) (mainwindow_p.cpp:612) # ==29016== by 0xA105395: Sublime::MainWindowPrivate::qt_metacall(QMetaObject::Call, int, void**) (mainwindow_p.moc:130) # ==29016== by 0x61F670E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3272) # ==29016== here an experimental patch, but since I cannot reproduce that issue, I'd like to hear your testing results: http://pastebin.com/4MjQXFsF fixed in both 1.0 and master with my patch, lets hope that fixes it - if not please reopen. |