Bug 28250 - kvirc Segmentation fault (core dumped) when run under kwin_wayland, while OK under X11
Summary: kvirc Segmentation fault (core dumped) when run under kwin_wayland, while OK ...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Low normal
Target Milestone: ---
Assignee: KDE maintainers
QA Contact:
URL: https://github.com/kvirc/KVIrc/issues...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2021-01-29 09:33 CET by peter winterflood
Modified: 2021-02-01 12:36 CET (History)
3 users (show)

See Also:
Source RPM: kvirc-5.0.0-7.mga8
CVE:
Status comment:


Attachments
strace output (251.49 KB, text/plain)
2021-01-29 09:34 CET, peter winterflood
Details

Description peter winterflood 2021-01-29 09:33:57 CET
Description of problem:

kvirc Segmentation fault (core dumped) when run under kwin_wayland plasma based session. Cant say wether this is also a problem under gnome-wayland, needs to be verified. tried on both Intel based 810 driven kwin_wayland and Nvidia_460.39-1.mga8 so definitely hardware agnostic.

Log of reproducer workflow follows including strace and gdb.

[peter@localhost ~]$ xhost +
access control disabled, clients can connect from any host
[peter@localhost ~]$ strace -o kvirc.strace-f.txt -f /usr/bin/kvirc
Segmentation fault (core dumped)
will attach kvirc.strace-f.txt in next comment

[peter@localhost ~]$ su -
Password: 

[root@localhost ~]# urpmi kvirc-debuginfo
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release Debug (distrib2)")
  kvirc-debuginfo                5.0.0        7.mga8        x86_64  
  kvirc-debugsource              5.0.0        7.mga8        x86_64  (recommended)
76MB of additional disk space will be used.
16MB of packages will be retrieved.
Proceed with the installation of the 2 packages? (Y/n) y


    $MIRRORLIST: media/debug/core/release/kvirc-debuginfo-5.0.0-7.mga8.x86_64.rpm
    $MIRRORLIST: media/debug/core/release/kvirc-debugsource-5.0.0-7.mga8.x86_64.rpm                             
installing kvirc-debuginfo-5.0.0-7.mga8.x86_64.rpm kvirc-debugsource-5.0.0-7.mga8.x86_64.rpm from /var/cache/urpmi/rpms
Preparing...                     ##############################################################################
      1/2: kvirc-debugsource     ##############################################################################
      2/2: kvirc-debuginfo       ##############################################################################
[root@localhost ~]# gdb /usr/bin/kvirc
GNU gdb (GDB) 10.1-5.mga8 (Mageia release 8)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-mageia-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/kvirc...
Reading symbols from /usr/lib/debug/usr/bin/kvirc-5.0.0-7.mga8.x86_64.debug...
(gdb) run
Starting program: /usr/bin/kvirc 
Missing separate debuginfos, use: debuginfo-install glibc-2.32-12.mga8.x86_64
Missing separate debuginfo for /lib64/libkvilib.so.5
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/1b/b4e50d55dce023747de9c74b9ebaa4b5f9e5cf.debug
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.


Program received signal SIGABRT, Aborted.
0x00007ffff31e34b0 in raise () from /lib64/libc.so.6
Missing separate debuginfos, ..... removed as unnecessary to list.

(gdb) quit
A debugging session is active.

        Inferior 1 [process 4229] will be killed.

Quit anyway? (y or n) y
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# rpm -qa|egrep "wayland|kvirc"
qtwayland5-doc-5.15.2-2.mga8
kwin-wayland-5.20.4-3.mga8
kvirc-debuginfo-5.0.0-7.mga8
kwayland-5.76.0-1.mga8
wayland-doc-1.18.0-3.mga8
kwin-wayland-debuginfo-5.20.4-3.mga8
lib64kwaylandserver5-5.20.4-1.mga8
lib64nvidia-egl-wayland1-1.1.5-3.mga8
wayland-tools-1.18.0-3.mga8
kvirc-debugsource-5.0.0-7.mga8
lib64wayland-server0-1.18.0-3.mga8
lib64wayland-cursor0-1.18.0-3.mga8
kwayland-server-5.20.4-1.mga8
qtwayland5-5.15.2-2.mga8
plasma-wayland-protocols-1.1.1-1.mga8
lib64wayland-client0-1.18.0-3.mga8
libwayland-client0-1.18.0-3.mga8
lib64kf5wayland5-5.76.0-1.mga8
kvirc-5.0.0-7.mga8
libwayland-server0-1.18.0-3.mga8
x11-server-xwayland-1.20.10-3.mga8
waylandpp-doc-0.2.8-2.mga8
egl-wayland-json-1.1.5-3.mga8
kwayland-integration-5.20.4-1.mga8
lib64qt5waylandclient5-5.15.2-2.mga8
lib64qt5waylandcompositor5-5.15.2-2.mga8
plasma-workspace-wayland-5.20.4-5.mga8
libwayland-egl1-1.18.0-3.mga8
lib64waylandpp0-0.2.8-2.mga8
libwayland-cursor0-1.18.0-3.mga8
lib64wayland-egl1-1.18.0-3.mga8

While I get that kwin-wayland is experimental, X11 is now at a feature improvement end, and if we dont at least feedback these kwin-wayland issues upstream, wayland adoption will drag on even further. So I will continue to log this and any future kwin-wayland environmental issues as low priority, and be available for future verification of fixes.
Thank you
Regards peter winterflood
Comment 1 peter winterflood 2021-01-29 09:34:55 CET
Created attachment 12280 [details]
strace output

CC: (none) => peter.winterflood

peter winterflood 2021-01-29 09:35:07 CET

Priority: Normal => Low

Comment 2 David GEIGER 2021-01-29 10:18:32 CET
Can you please open a new upstream bug at https://github.com/kvirc/KVIrc ?

Thanks in advance!

CC: (none) => geiger.david68210

Comment 3 peter winterflood 2021-01-29 10:51:13 CET
I dont have a github account and dont intend to get one unless hell freezes over, but I will attempt to raise it on there IRC channel which is one of there suggested ways of raising bugs.
regards peter
Comment 4 peter winterflood 2021-01-29 11:56:57 CET
looks like its already been reported upstream

https://github.com/kvirc/KVIrc/issues/2479

via fedora. 

but its the same issue as far as i can see.

regards peter
Comment 5 Lewis Smith 2021-02-01 12:32:00 CET
@Peter : thanks for reporting this.

Trying it on my up-to-date M8 system, and despite having a heap of Wayland pkgs (including 'k' ones) installed, I could not get Plasma/Wayland to happen (be offered in the SDDM desktop menu) without adding 'plasma-workspace-wayland' as well. That for info to others.

'kvirc' worked on straight X11/Plasma.
It worked on Gnome/Wayland (not so easy to achieve either; use GDM).
It crashed instantly on Plasma/Wayland (the lack of X select/paste is painful here - at least between applications):
 $ kvirc
 Segmentation fault (core dumped)

> I dont have a github account and dont intend to get one unless hell
> freezes over
Sympathies! And thanks for that bug reference. I guess we have to wait.

Assigning to the KDE people.

URL: (none) => https://github.com/kvirc/KVIrc/issues/2479
Keywords: (none) => UPSTREAM
Assignee: bugsquad => kde

Comment 6 Nicolas Lécureuil 2021-02-01 12:36:03 CET
maybe we can add this on our package https://github.com/kvirc/KVIrc/pull/2493

CC: (none) => mageia


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