Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649392 - x11-base/xorg-server-1.19.99.901 segmentation fault at startup near RRTellChanged()
Summary: x11-base/xorg-server-1.19.99.901 segmentation fault at startup near RRTellCha...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL: https://cgit.freedesktop.org/xorg/xse...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-03-02 18:24 UTC by tka
Modified: 2018-03-08 23:15 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Xorg.0.log (Xorg.0.log,28.96 KB, text/plain)
2018-03-05 05:18 UTC, Peter Levine
Details
journalctl-output.txt.gz (journalctl-output.txt.gz,52.71 KB, application/gzip)
2018-03-05 05:20 UTC, Peter Levine
Details
xorg-server-1.19.99.901-gpu-screens-init.patch (xorg-server-1.19.99.901-gpu-screens-init.patch,1.72 KB, patch)
2018-03-05 05:57 UTC, Peter Levine
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tka 2018-03-02 18:24:30 UTC
xorg-server-1.19.99.901 crashes at startup. A fix is available upstream (see $URL). Please apply it to the tree.

From the log of the unpatched xserver:
> [    11.888] (==) NOUVEAU(G0): Backing store enabled
> [    11.888] (==) NOUVEAU(G0): Silken mouse enabled
> [    11.888] (II) NOUVEAU(G0): [XvMC] Associated with Nouveau GeForce 8/9 Textured Video.
> [    11.888] (II) NOUVEAU(G0): [XvMC] Extension initialized.
> [    11.888] (==) NOUVEAU(G0): DPMS enabled
> [    11.888] (EE) 
> [    11.888] (EE) Backtrace:
> [    11.888] (EE) 0: /usr/libexec/Xorg (xorg_backtrace+0x80) [0x556771558d40]
> [    11.888] (EE) 1: /usr/libexec/Xorg (0x55677137e000+0x1df998) [0x55677155d998]
> [    11.888] (EE) 2: /lib64/libpthread.so.0 (0x7f4568af3000+0x14df0) [0x7f4568b07df0]
> [    11.888] (EE) 3: /usr/libexec/Xorg (RRTellChanged+0x3c9) [0x5567714acd49]
> [    11.888] (EE) 4: /usr/libexec/Xorg (RRChangeOutputProperty+0x438) [0x5567714b7ee8]
> [    11.888] (EE) 5: /usr/libexec/Xorg (RROutputSetNonDesktop+0x81) [0x5567714b6471]
> [    11.888] (EE) 6: /usr/libexec/Xorg (RROutputCreate+0x1c2) [0x5567714b6662]
> [    11.888] (EE) 7: /usr/libexec/Xorg (xf86RandR12Init+0x3b7) [0x55677146d847]
> [    11.888] (EE) 8: /usr/libexec/Xorg (xf86CrtcScreenInit+0x4a) [0x55677145eeca]
> [    11.888] (EE) 9: /usr/lib64/xorg/modules/drivers/nouveau_drv.so (0x7f456506d000+0x11d53) [0x7f456507ed53]
> [    11.888] (EE) 10: /usr/libexec/Xorg (AddGPUScreen+0x10f) [0x5567713e0acf]
> [    11.888] (EE) 11: /usr/libexec/Xorg (InitOutput+0x299) [0x55677142a2c9]
> [    11.888] (EE) 12: /usr/libexec/Xorg (0x55677137e000+0x66d6f) [0x5567713e4d6f]
> [    11.888] (EE) 13: /lib64/libc.so.6 (__libc_start_main+0xf6) [0x7f4568742f56]
> [    11.888] (EE) 14: /usr/libexec/Xorg (_start+0x2a) [0x5567713cc55a]
> [    11.888] (EE) 
> [    11.888] (EE) Segmentation fault at address 0x3d0
> [    11.888] (EE) 
> Fatal server error:
> [    11.888] (EE) Caught signal 11 (Segmentation fault). Server aborting
> [    11.888] (EE) 
> [    11.888] (EE) 
> Please consult the The X.Org Foundation support 
> 	 at http://wiki.x.org
>  for help. 
> [    11.888] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
> [    11.888] (EE) 
> [    11.904] (EE) Server terminated with error (1). Closing log file.
Comment 1 Rafal Kupiec 2018-03-02 18:36:23 UTC
I cannot use Plasma 5 with it. I cannot click on anything, desktop icons, systray ,etc... no action until i downgraded it.
Comment 2 tka 2018-03-02 21:30:32 UTC
(In reply to Rafal Kupiec from comment #1)
> I cannot use Plasma 5 with it. I cannot click on anything, desktop icons,
> systray ,etc... no action until i downgraded it.

I have no idea how this patch can cause that behavior. Can you confirm that this is a regression introduced by the patch, i.e., xorg-server-1.19.99.901 as it is in the tree works, but it becomes unusable after you apply this patch?

If your issue is unrelated to this patch and the crash on xserver startup that it fixes, please file a new bug report.
Comment 3 Rafal Kupiec 2018-03-03 07:59:46 UTC
I have only downgraded xorg-server from 1.19.99.901 to 1.19.5-r1 and all my issues are gone.
Comment 4 Helmut Jarausch 2018-03-03 10:19:32 UTC
Here, the symptoms are a bit different, I get

xf86OpenConsole  Cannot open virtual console 7 (permission denied).

Downgrading to 1.19.5-r1 solves this issue, as well.
Comment 5 Kajzer 2018-03-03 15:17:30 UTC
Couldn't start X at all, it was crashed right at the start , bad file descriptor.
Downgrading Xorg to 1.19.5 solved that problem.
Comment 6 Peter Levine 2018-03-05 05:18:58 UTC
Created attachment 522420 [details]
Xorg.0.log

I can confirm this. I tried rebuilding all Xorg modules and checked linking consistency with revdep-rebuild, with no luck. It happens with both sddm and by running startx from the command-line.
Comment 7 Peter Levine 2018-03-05 05:20:17 UTC
Created attachment 522422 [details]
journalctl-output.txt.gz

Journalctl Output.
Comment 8 Peter Levine 2018-03-05 05:57:53 UTC
Created attachment 522424 [details, diff]
xorg-server-1.19.99.901-gpu-screens-init.patch

Taken from https://cgit.freedesktop.org/xorg/xserver/commit/?id=2af0a50a4bb9be9f58681d417ceb9a7029caaf3b.

This fixes the problem for me.
Comment 9 Larry the Git Cow gentoo-dev 2018-03-06 20:25:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbf0927bb971152a4d7e18b7fa3f3c40c186a569

commit bbf0927bb971152a4d7e18b7fa3f3c40c186a569
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2018-03-06 20:23:08 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2018-03-06 20:25:20 +0000

    x11-base/xorg-server: Add upstream patch to fix crash
    
    Closes: https://bugs.gentoo.org/649392

 .../xorg-server-1.19.99.901-randr-fix-crash.patch  | 44 ++++++++++++++++++++++
 ...01.ebuild => xorg-server-1.19.99.901-r1.ebuild} |  1 +
 2 files changed, 45 insertions(+)
Comment 10 Kajzer 2018-03-07 12:42:49 UTC
Still can't start X with 1.19.99.901-r1 , seems like some evdev issue :

[302118.595] (II) Using input driver 'evdev' for 'USB Optical Mouse'
[302118.595] (**) USB Optical Mouse: always reports core events
[302118.595] (**) evdev: USB Optical Mouse: Device: "/dev/input/event8"
[302118.661] (--) evdev: USB Optical Mouse: Vendor 0x192f Product 0x416
[302118.661] (--) evdev: USB Optical Mouse: Found 3 mouse buttons
[302118.661] (--) evdev: USB Optical Mouse: Found scroll wheel(s)
[302118.661] (--) evdev: USB Optical Mouse: Found relative axes
[302118.661] (--) evdev: USB Optical Mouse: Found x and y relative axes
[302118.661] (II) evdev: USB Optical Mouse: Configuring as mouse
[302118.661] (II) evdev: USB Optical Mouse: Adding scrollwheel support
[302118.661] (**) evdev: USB Optical Mouse: YAxisMapping: buttons 4 and 5
[302118.661] (**) evdev: USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[302118.661] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/0003:192F:0416.0006/input/input14/event8"
[302118.661] (II) XINPUT: Adding extended input device "USB Optical Mouse" (type: MOUSE, id 8)
[302118.661] (II) evdev: USB Optical Mouse: initialized for relative axes.
[302118.661] (**) USB Optical Mouse: (accel) keeping acceleration scheme 1
[302118.661] (**) USB Optical Mouse: (accel) acceleration profile 0
[302118.661] (**) USB Optical Mouse: (accel) acceleration factor: 2.000
[302118.661] (**) USB Optical Mouse: (accel) acceleration threshold: 4
[337381.436] (II) evdev: USB Optical Mouse: Close
[337381.458] (II) UnloadModule: "evdev"
[337381.458] (II) evdev: AT Translated Set 2 keyboard: Close
[337381.458] (II) UnloadModule: "evdev"
[337381.458] (II) evdev: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815): Close
[337381.458] (II) UnloadModule: "evdev"
[337381.458] (II) evdev: Power Button: Close
[337381.459] (II) UnloadModule: "evdev"
[337381.459] (II) evdev: Power Button: Close
[337381.459] (II) UnloadModule: "evdev"
[337382.147] (II) Server terminated successfully (0). Closing log file.
Comment 11 Helmut Jarausch 2018-03-07 12:55:43 UTC
I still can't start X with 1.19.99.901-r1
I still get
[ 13684.031] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 13684.031] (II) AMDGPU: Driver for AMD Radeon:
	All GPUs supported by the amdgpu kernel driver
[ 13684.031] (EE) 
Fatal server error:
[ 13684.036] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
Comment 12 Matt Turner gentoo-dev 2018-03-07 22:18:01 UTC
(In reply to Helmut Jarausch from comment #11)
> I still can't start X with 1.19.99.901-r1
> I still get
> [ 13684.031] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
> [ 13684.031] (II) AMDGPU: Driver for AMD Radeon:
> 	All GPUs supported by the amdgpu kernel driver
> [ 13684.031] (EE) 
> Fatal server error:
> [ 13684.036] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission
> denied)

This is tracked as bug 635102.
Comment 13 Rafal Kupiec 2018-03-08 05:19:25 UTC
My plasma is still freezing with it.
Comment 14 Matt Turner gentoo-dev 2018-03-08 05:55:38 UTC
(In reply to Rafal Kupiec from comment #13)
> My plasma is still freezing with it.

Please open a new bug. I do not believe what you are reporting is the same as this bug.
Comment 15 Kajzer 2018-03-08 23:15:53 UTC
Solved my issue by following :
https://wiki.gentoo.org/wiki/Non_root_Xorg

Now I have a problem with polybar not showing, it can't find monitor for some reason, but that's another matter.