Bug 2312499 - REGRESSION: sddm-helper-start-wayland: kwin_wayland: symbol lookup error: /lib64/libkwin.so.6: undefined symbol: wl_display_set_default_max_buffer_size\n
Summary: REGRESSION: sddm-helper-start-wayland: kwin_wayland: symbol lookup error: /li...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kwin
Version: 40
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Alessandro Astone
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-16 04:08 UTC by Arcadiy Ivanov
Modified: 2024-09-20 01:56 UTC (History)
7 users (show)

Fixed In Version: kwin-6.1.90-2.fc42 kwin-6.1.5-2.fc41 kwin-6.1.5-2.fc40
Clone Of:
Environment:
Last Closed: 2024-09-17 20:23:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Arcadiy Ivanov 2024-09-16 04:08:56 UTC
Upgraded packages {kwin,kwin-common,kwin-libs,kwin-wayland} to 6.1.4-2. 
SDDM failed to startup, machine is unusable.

Logs contain:
$ journalctl -xeb-2 | grep kwin
Sep 15 22:33:10 hostname sddm-helper-start-wayland[4832]: "/usr/bin/kwin_wayland: symbol lookup error: /lib64/libkwin.so.6: undefined symbol: wl_display_set_default_max_buffer_size\n"

Downgraded {kwin,kwin-common,kwin-libs,kwin-wayland} to 6.1.4-1 via:

dnf install https://kojipkgs.fedoraproject.org/packages/kwin/6.1.4/1.fc40/x86_64/{kwin,kwin-common,kwin-libs,kwin-wayland}-6.1.4-1.fc40.x86_64.rpm

All functionality is restored.

6.1.4-2 is broken and needs to be pulled and -3 with a fix released ASAP.

Comment 1 Alessandro Astone 2024-09-17 14:34:25 UTC
kwin 6.1.4-2 built against libwayland-server 1.23.0 which exposes the new symbol `wl_display_set_default_max_buffer_size`.
The build itself is fine, but we're missing an explicit dependency on `libwayland-server >= 1.23.0`.

You can workaround the issue by upgrading libwayland-server.
This is not an issue I expect many people to hit since most people will upgrade their systems as a whole rather than upgrading individual packages.

Comment 2 Arcadiy Ivanov 2024-09-17 15:34:24 UTC
I didn't upgrade individual packages, I upgraded the system as a whole with `dnf upgrade --refresh -y`, rebooted and kwin_wayland failed to initialize.

Comment 3 Arcadiy Ivanov 2024-09-17 15:43:16 UTC
I already have and HAD libwayland-server >=1.23.0 for several days. Observe:

$ for num in {1..30}; do sudo dnf history info last-$num | grep -e 'Transaction ID\|libwayland\|kwin\|Begin time'; done
Transaction ID : 3641
Begin time     : Mon 16 Sep 2024 08:08:41 PM EDT
Transaction ID : 3640
Begin time     : Mon 16 Sep 2024 08:07:32 PM EDT
Transaction ID : 3639
Begin time     : Sun 15 Sep 2024 11:59:30 PM EDT
Command Line   : install https://kojipkgs.fedoraproject.org/packages/kwin/6.1.4/1.fc40/x86_64/kwin-6.1.4-1.fc40.x86_64.rpm https://kojipkgs.fedoraproject.org/packages/kwin/6.1.4/1.fc40/x86_64/kwin-common-6.1.4-1.fc40.x86_64.rpm https://kojipkgs.fedoraproject.org/packages/kwin/6.1.4/1.fc40/x86_64/kwin-libs-6.1.4-1.fc40.x86_64.rpm https://kojipkgs.fedoraproject.org/packages/kwin/6.1.4/1.fc40/x86_64/kwin-wayland-6.1.4-1.fc40.x86_64.rpm
    Downgrade  kwin-6.1.4-1.fc40.x86_64         @@commandline
    Downgraded kwin-6.1.4-2.fc40.x86_64         @@System
    Downgrade  kwin-common-6.1.4-1.fc40.x86_64  @@commandline
    Downgraded kwin-common-6.1.4-2.fc40.x86_64  @@System
    Downgrade  kwin-libs-6.1.4-1.fc40.x86_64    @@commandline
    Downgraded kwin-libs-6.1.4-2.fc40.x86_64    @@System
    Downgrade  kwin-wayland-6.1.4-1.fc40.x86_64 @@commandline
    Downgraded kwin-wayland-6.1.4-2.fc40.x86_64 @@System
Transaction ID : 3638
Begin time     : Sun 15 Sep 2024 10:43:27 PM EDT
Command Line   : reinstall kwin kwin-common kwin-libs kwin-wayland
    Reinstall   kwin-6.1.4-2.fc40.x86_64         @updates
    Reinstalled kwin-6.1.4-2.fc40.x86_64         @@System
    Reinstall   kwin-common-6.1.4-2.fc40.x86_64  @updates
    Reinstalled kwin-common-6.1.4-2.fc40.x86_64  @@System
    Reinstall   kwin-libs-6.1.4-2.fc40.x86_64    @updates
    Reinstalled kwin-libs-6.1.4-2.fc40.x86_64    @@System
    Reinstall   kwin-wayland-6.1.4-2.fc40.x86_64 @updates
    Reinstalled kwin-wayland-6.1.4-2.fc40.x86_64 @@System
Transaction ID : 3637
Begin time     : Sun 15 Sep 2024 11:48:43 AM EDT
Transaction ID : 3636
Begin time     : Fri 13 Sep 2024 07:13:29 PM EDT
Transaction ID : 3635
Begin time     : Fri 13 Sep 2024 07:13:15 PM EDT
Transaction ID : 3634
Begin time     : Fri 13 Sep 2024 07:11:05 PM EDT
    Upgrade       kwin-6.1.4-2.fc40.x86_64                                      @updates
    Upgraded      kwin-6.1.4-1.fc40.x86_64                                      @@System
    Upgrade       kwin-common-6.1.4-2.fc40.x86_64                               @updates
    Upgraded      kwin-common-6.1.4-1.fc40.x86_64                               @@System
    Upgrade       kwin-libs-6.1.4-2.fc40.x86_64                                 @updates
    Upgraded      kwin-libs-6.1.4-1.fc40.x86_64                                 @@System
    Upgrade       kwin-wayland-6.1.4-2.fc40.x86_64                              @updates
    Upgraded      kwin-wayland-6.1.4-1.fc40.x86_64                              @@System
Transaction ID : 3633
Begin time     : Wed 11 Sep 2024 11:30:13 PM EDT
Transaction ID : 3632
Begin time     : Wed 11 Sep 2024 07:17:38 AM EDT
Transaction ID : 3631
Begin time     : Wed 11 Sep 2024 07:17:24 AM EDT
Transaction ID : 3630
Begin time     : Wed 11 Sep 2024 07:15:03 AM EDT
Transaction ID : 3629
Begin time     : Mon 09 Sep 2024 11:55:06 AM EDT
Transaction ID : 3628
Begin time     : Sat 07 Sep 2024 12:00:15 PM EDT
Transaction ID : 3627
Begin time     : Fri 06 Sep 2024 09:15:02 PM EDT
Transaction ID : 3626
Begin time     : Thu 05 Sep 2024 03:47:47 PM EDT
Transaction ID : 3625
Begin time     : Thu 05 Sep 2024 03:47:33 PM EDT
Transaction ID : 3624
Begin time     : Thu 05 Sep 2024 03:45:29 PM EDT
Transaction ID : 3623
Begin time     : Tue 03 Sep 2024 06:57:51 PM EDT
Transaction ID : 3622
Begin time     : Tue 03 Sep 2024 11:38:16 AM EDT
Transaction ID : 3621
Begin time     : Mon 02 Sep 2024 01:40:24 PM EDT
Transaction ID : 3620
Begin time     : Mon 02 Sep 2024 08:30:09 AM EDT
    Install libwayland-server-1.23.0-2.fc40.i686             @updates
Transaction ID : 3619
Begin time     : Mon 02 Sep 2024 08:28:48 AM EDT
Transaction ID : 3618
Begin time     : Mon 02 Sep 2024 08:28:08 AM EDT
Transaction ID : 3617
Begin time     : Mon 02 Sep 2024 08:27:59 AM EDT
    Removed libwayland-server-1.23.0-2.fc40.i686       @@System
Transaction ID : 3616
Begin time     : Mon 02 Sep 2024 08:27:21 AM EDT
Transaction ID : 3615
Begin time     : Mon 02 Sep 2024 08:09:56 AM EDT
Transaction ID : 3614
Begin time     : Sun 01 Sep 2024 06:14:00 AM EDT
Transaction ID : 3613
Begin time     : Sat 31 Aug 2024 10:40:34 AM EDT
Transaction ID : 3612
Begin time     : Fri 30 Aug 2024 04:19:43 AM EDT

Comment 4 Alessandro Astone 2024-09-17 15:47:00 UTC
That only mentions libwayland-server.i686. How about `libwayland-server-1.23.0-2.fc40.x86_64` ?

Comment 5 Alessandro Astone 2024-09-17 15:48:05 UTC
(and do you really need the i686 version?)

Comment 6 Arcadiy Ivanov 2024-09-17 15:49:58 UTC
I think it's `steam` that uses it :)

I had to dig deeper in the history. I had `libwayland-server` 1.23.0-2 for over a month before this happened.

Transaction ID : 3634
Begin time     : Fri 13 Sep 2024 07:11:05 PM EDT
    Upgrade       kwin-6.1.4-2.fc40.x86_64                                      @updates
    Upgraded      kwin-6.1.4-1.fc40.x86_64                                      @@System
    Upgrade       kwin-common-6.1.4-2.fc40.x86_64                               @updates
    Upgraded      kwin-common-6.1.4-1.fc40.x86_64                               @@System
    Upgrade       kwin-libs-6.1.4-2.fc40.x86_64                                 @updates
    Upgraded      kwin-libs-6.1.4-1.fc40.x86_64                                 @@System
    Upgrade       kwin-wayland-6.1.4-2.fc40.x86_64                              @updates
    Upgraded      kwin-wayland-6.1.4-1.fc40.x86_64                              @@System


Transaction ID : 3578
Begin time     : Sun 11 Aug 2024 08:39:08 PM EDT
    Upgrade  libwayland-client-1.23.0-2.fc40.i686          @updates
    Upgraded libwayland-client-1.22.0-3.fc40.i686          @@System
    Upgrade  libwayland-client-1.23.0-2.fc40.x86_64        @updates
    Upgraded libwayland-client-1.22.0-3.fc40.x86_64        @@System
    Upgrade  libwayland-cursor-1.23.0-2.fc40.i686          @updates
    Upgraded libwayland-cursor-1.22.0-3.fc40.i686          @@System
    Upgrade  libwayland-cursor-1.23.0-2.fc40.x86_64        @updates
    Upgraded libwayland-cursor-1.22.0-3.fc40.x86_64        @@System
    Upgrade  libwayland-egl-1.23.0-2.fc40.i686             @updates
    Upgraded libwayland-egl-1.22.0-3.fc40.i686             @@System
    Upgrade  libwayland-egl-1.23.0-2.fc40.x86_64           @updates
    Upgraded libwayland-egl-1.22.0-3.fc40.x86_64           @@System
    Upgrade  libwayland-server-1.23.0-2.fc40.i686          @updates
    Upgraded libwayland-server-1.22.0-3.fc40.i686          @@System
    Upgrade  libwayland-server-1.23.0-2.fc40.x86_64        @updates
    Upgraded libwayland-server-1.22.0-3.fc40.x86_64        @@System

Comment 7 Alessandro Astone 2024-09-17 16:05:31 UTC
Sounds like something else in your system is misconfigured, because the version that's being loaded by kwin is not actually 1.23.0. Or alternatively, disk corruption.

Please show me the output of:

sudo -u sddm ldd /lib64/libkwin.so.6 | grep libwayland-server

nm -gD /lib64/libwayland-server.so.0 | grep wl_display_set_default_max_buffer_size

Comment 8 Arcadiy Ivanov 2024-09-17 16:13:38 UTC
Ah, yes, it's my system but not my exclusively. I have amdgpu drivers which caused this:

$ sudo -u sddm ldd /lib64/libkwin.so.6 | grep libwayland-server
        libwayland-server.so.0 => /opt/amdgpu/lib64/libwayland-server.so.0 (0x00007f154b3e8000)

$ sudo dnf remove libwayland-amdgpu\* libdrm-amdgpu\*
....
$ sudo -u sddm ldd /lib64/libkwin.so.6 | grep libwayland-server
        libwayland-server.so.0 => /lib64/libwayland-server.so.0 (0x00007f37ba7f3000)

I'll upgrade and report.

Comment 9 Arcadiy Ivanov 2024-09-17 16:19:30 UTC
Works now. Lesson: do not install amdgpu stack on Fedora :)

Comment 10 Alessandro Astone 2024-09-17 16:28:09 UTC
Who packages the amdgpu stack? Sounds like they're setting LD_LIBRARY_PATH to point to /opt/amdgpu/lib64, or instructing you to do so.

You could gently notify them that this is generally a bad idea :)
They should compile their libraries setting the RPATH instead so that only those libraries will look inside /opt/amdgpu/lib64

Comment 11 Fedora Update System 2024-09-17 18:26:53 UTC
FEDORA-2024-f2b932785c (kwin-6.1.90-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-f2b932785c

Comment 12 Fedora Update System 2024-09-17 20:23:22 UTC
FEDORA-2024-f2b932785c (kwin-6.1.90-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Arcadiy Ivanov 2024-09-17 23:18:10 UTC
(In reply to Alessandro Astone from comment #10)
> Who packages the amdgpu stack? Sounds like they're setting LD_LIBRARY_PATH
> to point to /opt/amdgpu/lib64, or instructing you to do so.
> 
> You could gently notify them that this is generally a bad idea :)
> They should compile their libraries setting the RPATH instead so that only
> those libraries will look inside /opt/amdgpu/lib64

AMD is packaging it :) https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/amdgpu-install.html

Comment 14 Fedora Update System 2024-09-18 07:09:15 UTC
FEDORA-2024-2c6a06f1cf (KDE Plasma 6.1.5 for f40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-2c6a06f1cf

Comment 15 Fedora Update System 2024-09-18 07:09:53 UTC
FEDORA-2024-9687bb03d0 (kwin-6.1.5-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-9687bb03d0

Comment 16 Fedora Update System 2024-09-19 02:23:11 UTC
FEDORA-2024-2c6a06f1cf has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-2c6a06f1cf`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-2c6a06f1cf

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2024-09-19 03:48:47 UTC
FEDORA-2024-9687bb03d0 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-9687bb03d0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-9687bb03d0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 18 Fedora Update System 2024-09-20 00:15:50 UTC
FEDORA-2024-9687bb03d0 (kwin-6.1.5-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2024-09-20 01:56:16 UTC
FEDORA-2024-2c6a06f1cf (KDE Plasma 6.1.5 for f40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


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