Bug 14490 - kate crashes when reaching last column of non-highlighted file
Summary: kate crashes when reaching last column of non-highlighted file
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: has_procedure MGA4-32-OK MGA4-64-OK a...
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2014-11-09 16:53 CET by Panos Christeas
Modified: 2014-11-25 10:21 CET (History)
6 users (show)

See Also:
Source RPM: kate-4.12.5-1.mga4.src.rpm
CVE:
Status comment:


Attachments

Description Panos Christeas 2014-11-09 16:53:03 CET
Kate of KDE <= 4.12.5 has had a bug, where reaching the last column of a non-highlighted file (or some special cases in other highlighters) would crash the editor.

The crash is easily reproducible and annoying (may lose some data in the editor) in Mageia 4.

This has been fixed upstream (KDE > 4.12) and backported to the 4.12 branch:
      https://bugs.kde.org/show_bug.cgi?id=337785#c24
.. but they warned us that KDE 4.12.6 may not be in sight.

Are you going to release a package fixing that?

FYI, I have git-built it already, as in:
    https://github.com/xrg/kate/commits/mga4-tmp
Panos Christeas 2014-11-09 16:54:21 CET

Source RPM: (none) => kate-4.12.5-1.mga4.src.rpm

Sander Lepik 2014-11-09 17:33:15 CET

CC: (none) => mageia
Assignee: bugsquad => lmenut

Comment 1 Luc Menut 2014-11-17 01:00:07 CET
Thanks for the bug report.
This should be fixed with kate-4.12.5-1.2.mga4 packages in core/updates_testing.
I added the 2 patches added recently in KDE/4.12 branch, to fix this bug (upstream bko#337785) and some crashes when kate fails to load highlight (bko#328527).
Please, could you try to update to 4.12.5-1.2 packages, they should be available soon on mirrors.
Comment 2 Luc Menut 2014-11-17 01:01:02 CET
src.rpm:
kate-4.12.5-1.2.mga4.src.rpm

packages for i586:
kate-4.12.5-1.2.mga4.i586.rpm
kate-devel-4.12.5-1.2.mga4.i586.rpm
kate-handbook-4.12.5-1.2.mga4.noarch.rpm
katepart-4.12.5-1.2.mga4.i586.rpm
kate-plugin-pate-4.12.5-1.2.mga4.i586.rpm
ktexteditor-4.12.5-1.2.mga4.i586.rpm
kwrite-4.12.5-1.2.mga4.i586.rpm
kwrite-handbook-4.12.5-1.2.mga4.noarch.rpm
libkateinterfaces4-4.12.5-1.2.mga4.i586.rpm
libkatepartinterfaces4-4.12.5-1.2.mga4.i586.rpm
libktexteditor-codesnippets0-4.12.5-1.2.mga4.i586.rpm

packages for x86_64:
kate-4.12.5-1.2.mga4.x86_64.rpm
kate-devel-4.12.5-1.2.mga4.x86_64.rpm
kate-handbook-4.12.5-1.2.mga4.noarch.rpm
katepart-4.12.5-1.2.mga4.x86_64.rpm
kate-plugin-pate-4.12.5-1.2.mga4.x86_64.rpm
ktexteditor-4.12.5-1.2.mga4.x86_64.rpm
kwrite-4.12.5-1.2.mga4.x86_64.rpm
kwrite-handbook-4.12.5-1.2.mga4.noarch.rpm
lib64kateinterfaces4-4.12.5-1.2.mga4.x86_64.rpm
lib64katepartinterfaces4-4.12.5-1.2.mga4.x86_64.rpm
lib64ktexteditor-codesnippets0-4.12.5-1.2.mga4.x86_64.rpm
Comment 3 David Walser 2014-11-18 21:12:25 CET
Panos, I believe Luc is waiting for you to confirm that the issue is fixed in the packages in updates_testing.  Please confirm.  Then this can be assigned to QA so that it can be released as an update.
Comment 4 Panos Christeas 2014-11-18 21:32:04 CET
Sorry, I was afk for a couple of days.

I confirm that packages 4.12.5-1.2 do fix the reported issue.
Comment 5 David Walser 2014-11-18 22:16:25 CET
Thanks Panos!  Did you test on i586 or x86_64?

I'll go ahead and assign this to QA.  Hopefully Luc will provide an advisory soon.

CC: (none) => lmenut
Assignee: lmenut => qa-bugs

Comment 6 Luc Menut 2014-11-18 23:38:42 CET
Suggested advisory:

Updated kate packages fix crashes

This update fixes crashes in kate or kwrite when :
- highlighting is turned off (mga#14490, bko#337785),
- katepart fails to load highlight (bko#328527).


References:
https://bugs.mageia.org/show_bug.cgi?id=14490
http://bugs.kde.org/show_bug.cgi?id=337785
http://bugs.kde.org/show_bug.cgi?id=328527
Comment 7 user7 2014-11-19 15:47:06 CET
Testing complete on Mga4, i586.

I could reproduce mga bug#14490 by following the instructions posted on the corresponding bug on bko. I'll repost them here for the convenience of fellow testers:

"I can reproduce a kate crash by
* setting intendation to spaces
* creating a new document and selecting haskell intendation
* typing

case a of[ENTER]
| b[ENTER]

Notice the space between "|" and "b" as it is required to reproduce."

The update candidate fixes this bug. I could not, however, reproduce bko#328527 here (neither with the previous version nor with the update candidate).

CC: (none) => wassi
Whiteboard: (none) => has_procedure MGA4-32-OK

Comment 8 Rémi Verschelde 2014-11-20 15:59:00 CET
Advisory uploaded.

CC: (none) => remi
Whiteboard: has_procedure MGA4-32-OK => has_procedure MGA4-32-OK advisory

Comment 9 Olivier Delaune 2014-11-23 22:44:01 CET
I reproduced the crash using the user7's procedure on Mageia 4 64-bits. The updates fixes the crash.

CC: (none) => olivier.delaune

Comment 10 user7 2014-11-24 17:44:11 CET
Luc: I cannot reproduce bko#328527 here, the highlighting seems to load just fine, even before the update. Maybe we were not affected by this in the first place? Could you reproduce the bug and if so, how did you do it?
Comment 11 David Walser 2014-11-24 23:58:37 CET
Validating.  Sysadmins, please push to core/updates.  Thanks.

Keywords: (none) => validated_update
Whiteboard: has_procedure MGA4-32-OK advisory => has_procedure MGA4-32-OK MGA4-64-OK advisory
CC: (none) => sysadmin-bugs

Comment 12 Mageia Robot 2014-11-25 10:21:53 CET
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2014-0199.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.