Bug 415279 - SEGFAULT when closing Kate
Summary: SEGFAULT when closing Kate
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 19.04.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-17 09:52 UTC by brett_h
Modified: 2020-01-06 06:28 UTC (History)
0 users

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


Attachments
coredump when closing Kate (942.94 KB, application/x-lz4)
2019-12-17 09:52 UTC, brett_h
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brett_h 2019-12-17 09:52:18 UTC
Created attachment 124540 [details]
coredump when closing Kate

SUMMARY
I've set up a minimal desktop on Centos 8 / Epel 8 with konsole, kate and dolphin using the following commands:
sudo yum install xorg-x11-server-Xorg xorg-x11-drv-libinput xterm xorg-x11-xinit epel-release dbus-x11
sudo yum install openbox konsole kate dolphin

The apps are working fine (really liking them) but when I exit Kate, I see a SEGFAULT in the system log. 

BTW, a SEGFAULT also occurs in file.so when closing Dolphin (sometimes multiple file.so crash). Konsole seems ok.

A similar installation on Ubuntu Eoan is ok so it is possibly a packaging/dependency problem in Epel 8. The reason I have raised a bug report is the IP value of 0 suggests that file.so is assuming the existence of something and perhaps the code could be more robust if a check were added.

STEPS TO REPRODUCE
1. Open Kate
2. Close Kate 

OBSERVED RESULT
System log:
Dec 17 17:38:29 TEW13814 kernel: file.so[2775]: segfault at 0 ip 0000000000000000 sp 00007ffdab1dc1d8 error 14 in kdeinit5[55ce3f8a2000+d000]
Dec 17 17:38:29 TEW13814 kernel: Code: Bad RIP value.
Dec 17 17:38:29 TEW13814 systemd[1]: Started Process Core Dump (PID 2781/UID 0).
Dec 17 17:38:29 TEW13814 systemd-coredump[2782]: Process 2775 (file.so) of user 1000 dumped core.#012#012Stack trace of thread 2775:#012#0  0x0000000000000000 n/a (n/a)


EXPECTED RESULT
  No coredump

SOFTWARE/OS VERSIONS
OS: Centos8/Epel8
KDE Plasma Version: kf5-plasma-5.59.0-1.epel8.playground.x86_64
KDE Frameworks Version: N/A - no pkgs with name containing "fram" installed
Qt Version: qt5-qtbase-5.11.1-5.el8.x86_64

ADDITIONAL INFORMATION
Coredump attached.
Sorry for the noise if this is not a bug. Happy to write up a bug for Dolphin if needed. 
Or help in some other way, I have sysadmin and Java coding skills, a little bit of C.

Thanks for the apps.
Comment 1 brett_h 2019-12-18 10:39:01 UTC
Possibly related to https://bugzilla.redhat.com/show_bug.cgi?id=1746465

Version of kf5-kio matches Epel 8. Eoan is running a later version which fits with it working.

Can't find an earlier version to revert to on Epel 8 - looking for another way to confirm.
Comment 2 Dominik Haumann 2020-01-03 14:26:59 UTC
Since this is likely resolved by now, please update to 19.08.x or even 19.12 if you can. In case you still encounter this issue then, please let us know.
Comment 3 brett_h 2020-01-05 10:16:44 UTC
Thank you. 

By way of trying an earlier version, I loaded the Fedora 28 (Kate/Dolphin 17.12.2-2) rpm's with Centos8. They worked ok.

Battery life with the Centos8 kernel is not great so I've installed the latest Fedora (v31) instead which includes Kate/Dolphin 19.08.2. They are also working fine with my Openbox setup.

Happy to close this one. Can I do that or do you have to ?
Comment 4 Dominik Haumann 2020-01-06 06:28:52 UTC
Thanks for letting us know!