Bug 343261 - kwrite/kate crashes when opening a specific binary file
Summary: kwrite/kate crashes when opening a specific binary file
Status: RESOLVED DUPLICATE of bug 357341
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL: https://josm.openstreetmap.de/josm-ap...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-25 03:16 UTC by realnobody
Modified: 2016-04-16 12:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description realnobody 2015-01-25 03:16:18 UTC
Tested on two different notebooks (one from a friend). Both Archlinux (3.18.2-2-ARCH #1 SMP PREEMPT Fri Jan 9 07:37:51 CET 2015 x86_64 GNU/Linux), 64 bit packages, running with a full KDE4 DE but kwrite (and four other programs) updated today to "Version 5.0.0 Unter KDE Frameworks 5.6.0" (according to help menu), package version 14.12.1-2.

When run from a terminal with gdb attatched on another (root) terminal I get this:

> Program received signal SIGSEGV, Segmentation fault.
> 0x00007f1039bbc0f3 in ?? () from /usr/lib/libKF5Codecs.so.5

I also tried under another user account with more or less blank settings in a plain TWM X session: crashed too.

On an older notebook (with 32 bit packages) it does NOT crash with the same packages. Not sure what else can be a difference.

Kwrite did also crash when I tried to open a gpg encrypted file; it did not crash when I opened a mp3 (both tested on one machine).

Reproducible: Always

Steps to Reproduce:
open this file https://josm.openstreetmap.de/josm-apt.key  (yes, it is binary, but kwrite should not crash anyway). 
sha256sum josm-apt.key : c3bc91cb610068a58e6c623ed2dca5ce8704199107a90bc5a49a744839cdcd50

Actual Results:  
kwrite crashes (or kate, tried on one of the crashing machines)

Expected Results:  
no crash but just the warning that this is a binary file
Comment 1 Dominik Haumann 2016-04-05 19:54:25 UTC
I fixed that in KCodecs last week: The fix will be shipped with KDE Frameworks 5.21.
See: https://git.reviewboard.kde.org/r/127488/

*** This bug has been marked as a duplicate of bug 357341 ***
Comment 2 realnobody 2016-04-16 12:22:54 UTC
Thank you, Domnik, works now! :-)