FS#67831 - [xorg-server] Segfault on startup

Attached to Project: Arch Linux
Opened by Alexander Kapshuk (alkap) - Saturday, 05 September 2020, 08:36 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 03 December 2020, 07:01 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Andreas Radke (AndyRTR)
Laurent Carlier (lordheavy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:
Xorg crashes on startup

Additional info:
* 1.20.9-1, 1.20.9-2
* Xorg.0.log
* https://gitlab.freedesktop.org/xorg/xserver/-/issues/1068

Steps to reproduce:
Run startx.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Thursday, 03 December 2020, 07:01 GMT
Reason for closing:  Fixed
Comment by Alexander Kapshuk (alkap) - Saturday, 05 September 2020, 08:39 GMT
An upstream fix available at this link, https://gitlab.freedesktop.org/xorg/xserver/-/commit/e50c85f4ebf559a3bac4817b41074c43d4691779
It is also referenced in the upstream bug report linked to this ticket.
Comment by god geu (ghodgeuk) - Saturday, 05 September 2020, 22:02 GMT
I can only confirm this bug on a kernel built with its own config.
It does not exist on the default Archlinux linux kernel - 5.8.6.arch1-1.

I can see that it is similar with you. Your kernel is - Linux pc-sasha 5.9.0-rc2-next-20200827-dirty.
Show the kernel configuration as this is probably the problem.
Perhaps a more appropriate place to find a solution would be in the forum.
Comment by Pontus Andersson (epontan) - Sunday, 06 September 2020, 13:12 GMT
I can confirm the exact same issue on 1.20.9-1 and 1.20.9-2. Running 1.20.8-3 currently as a workaround.
Kernel: 5.8.7-arch1-1
Comment by Víctor (mrvik) - Monday, 07 September 2020, 13:45 GMT
Same problem here on AMDGPU.

This bug is also on Gentoo forum: https://bugs.gentoo.org/739056

Can confirm this patch applied on xorg-server package fixes it: https://739056.bugs.gentoo.org/attachment.cgi?id=656936
Comment by Oz Dror (odror) - Monday, 07 September 2020, 18:42 GMT
I have the same issue. I am running 1.20.8-3 as workaround. Also when fixing the bug with the suggested bug fix

https://gitlab.freedesktop.org/xorg/xserver/-/commit/e50c85f4ebf559a3bac4817b41074c43d4691779

I get a different crash error:

364397.835] (EE)
[364397.835] (EE) Backtrace:
[364397.836] (EE) 0: /usr/lib/Xorg (xorg_backtrace+0x53) [0x55e1cbcfeba3]
[364397.836] (EE) 1: /usr/lib/Xorg (0x55e1cbbb8000+0x151895) [0x55e1cbd09895]
[364397.836] (EE) 2: /usr/lib/libc.so.6 (0x7f69e8952000+0x3d6a0) [0x7f69e898f6a0
]
[364397.836] (EE) 3: /usr/lib/Xorg (xf86PlatformDeviceCheckBusID+0x5b) [0x55e1cbd5c3db]
[364397.836] (EE) 4: /usr/lib/Xorg (xf86CallDriverProbe+0x5bf) [0x55e1cbd1254f]
[364397.836] (EE) 5: /usr/lib/Xorg (xf86BusConfig+0x46) [0x55e1cbd13756]
[364397.836] (EE) 6: /usr/lib/Xorg (InitOutput+0x15da) [0x55e1cbd25a0a]
[364397.836] (EE) 7: /usr/lib/Xorg (0x55e1cbbb8000+0x39456) [0x55e1cbbf1456]
[364397.836] (EE) 8: /usr/lib/libc.so.6 (__libc_start_main+0xf2) [0x7f69e897a152]
[364397.836] (EE) 9: /usr/lib/Xorg (_start+0x2e) [0x55e1cbbf25de]
[364397.836] (EE)
[364397.836] (EE) Segmentation fault at address 0x4
Comment by Alexander Kapshuk (alkap) - Thursday, 10 September 2020, 08:14 GMT
FYI,
Please note that the three commits that have likely been the cause of the issues reported here have been reverted upstream.
See https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/508.
Comment by Alexander Kapshuk (alkap) - Thursday, 03 December 2020, 06:21 GMT
This is to confirm that with xorg-server 1.20.10-1 installed the issue reported is no longer reproducible on my machine.
Thanks.

Loading...