Summary: | kate crashes deleting a block of text | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Vadym Krevs <vkrevs> |
Component: | general | Assignee: | Andreas Kling <info> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | ac_z01, gpiez |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | text file to reproduce the bug |
Description
Vadym Krevs
2006-05-24 12:38:26 UTC
Created attachment 16253 [details]
text file to reproduce the bug
This is the file referred to in the bug description.
Can you *always* reproduce this? Here, kate/kwrite does not crash. Yep, unfortunately it still crashes for me ... I'm planning an upgrade to SUSE 10.1 - perhaps that'll cure the problem. I can reproduce on 3.5 branch r554128. SVN commit 554150 by kling: When deleting blocks, make sure m_lastInSyncBlock doesn't point to a deleted area. BUG: 127928 CCBUG: 124507 CCMAIL: cullmann@kde.org M +4 -0 katebuffer.cpp --- branches/KDE/3.5/kdelibs/kate/part/katebuffer.cpp #554149:554150 @@ -807,6 +807,10 @@ // cu block ! delete buf; m_blocks.erase (m_blocks.begin()+index); + + // make sure we don't keep a pointer to the deleted block + if( m_lastInSyncBlock >= index ) + m_lastInSyncBlock = index - 1; } else { Just for info: also fixed in trunk due to cullmann's buffer rewrite. *** Bug 112071 has been marked as a duplicate of this bug. *** *** Bug 117030 has been marked as a duplicate of this bug. *** |