Bug 2062030 - Xwayland fails with "wl_display@1: error 1: invalid arguments for wl_shm"
Summary: Xwayland fails with "wl_display@1: error 1: invalid arguments for wl_shm@6.cr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: wayland
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:0dd8b5b11459d8757c36eb59866...
: 2063323 2065485 2068620 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-08 23:24 UTC by Michal Turek
Modified: 2022-04-13 15:48 UTC (History)
10 users (show)

Fixed In Version: wayland-1.20.0-4.fc37 wayland-1.20.0-4.fc35 wayland-1.20.0-4.fc36 wayland-1.20.0-4.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-28 14:01:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (61.51 KB, text/plain)
2022-03-08 23:25 UTC, Michal Turek
no flags Details
File: core_backtrace (20.27 KB, text/plain)
2022-03-08 23:25 UTC, Michal Turek
no flags Details
File: cpuinfo (2.51 KB, text/plain)
2022-03-08 23:25 UTC, Michal Turek
no flags Details
File: dso_list (224 bytes, text/plain)
2022-03-08 23:25 UTC, Michal Turek
no flags Details
File: environ (1.75 KB, text/plain)
2022-03-08 23:25 UTC, Michal Turek
no flags Details
File: limits (1.29 KB, text/plain)
2022-03-08 23:25 UTC, Michal Turek
no flags Details
File: maps (3.94 KB, text/plain)
2022-03-08 23:25 UTC, Michal Turek
no flags Details
File: mountinfo (3.88 KB, text/plain)
2022-03-08 23:25 UTC, Michal Turek
no flags Details
File: open_fds (6.15 KB, text/plain)
2022-03-08 23:25 UTC, Michal Turek
no flags Details
File: proc_pid_status (1.39 KB, text/plain)
2022-03-08 23:25 UTC, Michal Turek
no flags Details
File: var_log_messages (313 bytes, text/plain)
2022-03-08 23:25 UTC, Michal Turek
no flags Details


Links
System ID Private Priority Status Summary Last Updated
freedesktop.org Gitlab wayland wayland merge_requests 203 0 None opened shm: Close file descriptors not needed 2022-03-09 08:01:52 UTC

Description Michal Turek 2022-03-08 23:24:59 UTC
Version-Release number of selected component:
xorg-x11-server-Xwayland-21.1.4-1.fc35

Additional info:
reporter:       libreport-2.15.2
backtrace_rating: 3
cgroup:         0::/user.slice/user-1000.slice/user/session.slice/org.gnome.Shell
cmdline:        /usr/bin/Xwayland :0 -rootless -noreset -accessx -core -auth /run/user/1000/.mutter-Xwaylandauth.XSAXI1 -listenfd 4 -listenfd 5 -displayfd 6 -initfd 7
crash_function: xwl_log_handler
executable:     /usr/bin/Xwayland
journald_cursor: s=7734b45d03724639aeed34386566eb8c;i=19b474c;b=12d296ae961f4c7597544658bfef8f50;m=2702d7260;t=5d99e6a94816a;x=1a4965e9f99af3d
kernel:         5.16.12-200.fc35.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Potential duplicate: bug 1943936

Comment 1 Michal Turek 2022-03-08 23:25:02 UTC
Created attachment 1864728 [details]
File: backtrace

Comment 2 Michal Turek 2022-03-08 23:25:03 UTC
Created attachment 1864729 [details]
File: core_backtrace

Comment 3 Michal Turek 2022-03-08 23:25:04 UTC
Created attachment 1864730 [details]
File: cpuinfo

Comment 4 Michal Turek 2022-03-08 23:25:06 UTC
Created attachment 1864731 [details]
File: dso_list

Comment 5 Michal Turek 2022-03-08 23:25:07 UTC
Created attachment 1864732 [details]
File: environ

Comment 6 Michal Turek 2022-03-08 23:25:08 UTC
Created attachment 1864733 [details]
File: limits

Comment 7 Michal Turek 2022-03-08 23:25:09 UTC
Created attachment 1864734 [details]
File: maps

Comment 8 Michal Turek 2022-03-08 23:25:10 UTC
Created attachment 1864735 [details]
File: mountinfo

Comment 9 Michal Turek 2022-03-08 23:25:11 UTC
Created attachment 1864736 [details]
File: open_fds

Comment 10 Michal Turek 2022-03-08 23:25:13 UTC
Created attachment 1864737 [details]
File: proc_pid_status

Comment 11 Michal Turek 2022-03-08 23:25:14 UTC
Created attachment 1864738 [details]
File: var_log_messages

Comment 12 Olivier Fourdan 2022-03-09 08:01:53 UTC
From attachment 1864738 [details]:

> (EE) wl_display@1: error 1: invalid arguments for wl_shm

This is because Fedora 35 very recently updated Wayland to 1.20.

https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/203 should fix this.

As an alternative, you could try downgrading wayland to 1.19 and restart your session.

Comment 13 Robert Hancock 2022-03-09 17:28:46 UTC
I am seeing a regression with X2Go client sessions in Wayland 1.20, they are crashing XWayland with:

Mar 09 11:08:08 haswell gnome-shell[1967]: WL: file descriptor expected, object (6), message create_pool(nhi)
Mar 09 11:08:08 haswell gnome-shell[1967]: WL: error in client communication (pid 1967)
Mar 09 11:08:08 haswell gnome-shell[2592]: (EE)
Mar 09 11:08:08 haswell gnome-shell[2592]: Fatal server error:
Mar 09 11:08:08 haswell gnome-shell[2592]: (EE) request could not be marshaled: can't send file descriptor
Mar 09 11:08:08 haswell gnome-shell[2592]: (EE)

..

                                                Stack trace of thread 2592:
                                                #0  0x00007f3a0705e88c __pthread_kill_implementation (libc.so.6 + 0x8f88c)
                                                #1  0x00007f3a070116a6 raise (libc.so.6 + 0x426a6)
                                                #2  0x00007f3a06ffb7d3 abort (libc.so.6 + 0x2c7d3)
                                                #3  0x000055f531e7682c OsAbort (Xwayland + 0x16e82c)
                                                #4  0x000055f531e76b0c FatalError (Xwayland + 0x16eb0c)
                                                #5  0x000055f531d40fd0 xwl_log_handler.lto_priv.0 (Xwayland + 0x38fd0)
                                                #6  0x00007f3a077cac6a wl_log (libwayland-client.so.0 + 0x5c6a)
                                                #7  0x00007f3a077ce57d wl_proxy_marshal_array_flags (libwayland-client.so.0 + 0x957d)
                                                #8  0x00007f3a077ced10 wl_proxy_marshal_constructor (libwayland-client.so.0 + 0x9d10)
                                                #9  0x000055f531d4876d xwl_shm_create_pixmap (Xwayland + 0x4076d)
                                                #10 0x000055f531d48a86 xwl_realize_cursor (Xwayland + 0x40a86)
                                                #11 0x000055f531e03c65 AnimCurRealizeCursor.lto_priv.0 (Xwayland + 0xfbc65)
                                                #12 0x000055f531dd0fee RealizeCursorAllScreens (Xwayland + 0xc8fee)
                                                #13 0x000055f531dd6de0 AllocARGBCursor (Xwayland + 0xcede0)
                                                #14 0x000055f531e0125d ProcRenderCreateCursor (Xwayland + 0xf925d)
                                                #15 0x000055f531dad5da Dispatch (Xwayland + 0xa55da)
                                                #16 0x000055f531d3eec9 main (Xwayland + 0x36ec9)
                                                #17 0x00007f3a06ffc560 __libc_start_call_main (libc.so.6 + 0x2d560)
                                                #18 0x00007f3a06ffc60c __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2d60c)
                                                #19 0x000055f531d40605 _start (Xwayland + 0x38605)


Downgrading libwayland to 1.19.0-2 fixes this. Might be the same issue..

Comment 14 Robert Hancock 2022-03-10 01:56:02 UTC
From looking at the issue linked above, it does seem like the same problem. I've downgraded to Wayland 1.19 for now to fix X2Go blowing up, but Firefox 98 (now in updates-testing) seems to have issues with that version and crashes on startup. So hopefully something gets fixed here shortly..

Comment 15 Olivier Fourdan 2022-03-10 07:33:36 UTC
(In reply to Robert Hancock from comment #14)
> From looking at the issue linked above, it does seem like the same problem.
> I've downgraded to Wayland 1.19 for now to fix X2Go blowing up, but Firefox
> 98 (now in updates-testing) seems to have issues with that version and
> crashes on startup. So hopefully something gets fixed here shortly..

FF being incompatible with wayland < 1.20 seems quite surprising.

Comment 16 Olivier Fourdan 2022-03-10 09:07:53 UTC
(In reply to Olivier Fourdan from comment #15)
> FF being incompatible with wayland < 1.20 seems quite surprising.

Surprising, but true of course, looks like it's using symbols from wayland 1.20 indeed! We should report that against Firefox as a separate issue, the dependencies of the package should reflect that I guess

Comment 17 Olivier Fourdan 2022-03-10 13:01:37 UTC
(In reply to Robert Hancock from comment #14)
> From looking at the issue linked above, it does seem like the same problem.
> […] So hopefully something gets fixed here shortly..

I've run a scratch build of wayland 1.20 for Fedora 35 with the patch I submitted upstream in https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/203, can you try it?

https://koji.fedoraproject.org/koji/taskinfo?taskID=83954399

(Note, being a scratch build, it will be automatically removed after some time)

Comment 18 Robert Hancock 2022-03-11 00:30:02 UTC
(In reply to Olivier Fourdan from comment #17)
> (In reply to Robert Hancock from comment #14)
> > From looking at the issue linked above, it does seem like the same problem.
> > […] So hopefully something gets fixed here shortly..
> 
> I've run a scratch build of wayland 1.20 for Fedora 35 with the patch I
> submitted upstream in
> https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/203, can you
> try it?
> 
> https://koji.fedoraproject.org/koji/taskinfo?taskID=83954399
> 
> (Note, being a scratch build, it will be automatically removed after some
> time)

Looks like that build resolves the issue with X2Go blowing up XWayland when connecting to a machine.

Comment 19 Olivier Fourdan 2022-03-11 14:50:57 UTC
(In reply to Robert Hancock from comment #18)
> 
> Looks like that build resolves the issue with X2Go blowing up XWayland when
> connecting to a machine.

Thanks for confirming!

Comment 20 Olivier Fourdan 2022-03-18 07:00:28 UTC
*** Bug 2065485 has been marked as a duplicate of this bug. ***

Comment 21 Tom Hughes 2022-03-28 08:46:59 UTC
*** Bug 2068620 has been marked as a duplicate of this bug. ***

Comment 22 Fedora Update System 2022-03-28 13:58:20 UTC
FEDORA-2022-237a9785ac has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-237a9785ac

Comment 23 Fedora Update System 2022-03-28 14:01:39 UTC
FEDORA-2022-237a9785ac has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 24 Fedora Update System 2022-03-28 14:32:15 UTC
FEDORA-2022-157d79b1ab has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-157d79b1ab

Comment 25 Fedora Update System 2022-03-28 14:55:12 UTC
FEDORA-2022-ca717e6f35 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-ca717e6f35

Comment 26 Fedora Update System 2022-03-28 15:08:01 UTC
FEDORA-2022-9d2bca3d15 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2022-9d2bca3d15

Comment 27 Fedora Update System 2022-03-29 01:22:59 UTC
FEDORA-2022-157d79b1ab has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-157d79b1ab`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-157d79b1ab

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

Comment 28 Fedora Update System 2022-03-29 01:32:04 UTC
FEDORA-2022-ca717e6f35 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-ca717e6f35`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-ca717e6f35

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

Comment 29 Fedora Update System 2022-03-29 01:39:34 UTC
FEDORA-2022-9d2bca3d15 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-9d2bca3d15`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-9d2bca3d15

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

Comment 30 Fedora Update System 2022-03-31 01:15:06 UTC
FEDORA-2022-ca717e6f35 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 31 Olivier Fourdan 2022-03-31 07:36:06 UTC
*** Bug 2063323 has been marked as a duplicate of this bug. ***

Comment 32 Fedora Update System 2022-04-03 00:15:27 UTC
FEDORA-2022-157d79b1ab has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 33 Fedora Update System 2022-04-13 15:48:52 UTC
FEDORA-2022-9d2bca3d15 has been pushed to the Fedora 34 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.