Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832155 - x11-base/xorg-server-21 with x11-drivers/xf86-video-ati segfaults when I use "xrandr --output XXX --rotate XXX"
Summary: x11-base/xorg-server-21 with x11-drivers/xf86-video-ati segfaults when I use ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-27 09:35 UTC by Petr Bahula
Modified: 2023-04-25 18:54 UTC (History)
3 users (show)

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


Attachments
lspci -k (lspci-k,txt,3.73 KB, text/plain)
2022-01-27 09:36 UTC, Petr Bahula
Details
emerge --info (emerge--info.txt,5.99 KB, text/plain)
2022-01-27 09:37 UTC, Petr Bahula
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Bahula 2022-01-27 09:35:48 UTC
After update from x11-base/xorg-server-1.20.13 to x11-base/xorg-server-21.1.3 xserver crash when I use "xrandr --output XXX --rotate XXX". The crash is independent on used output (HDMI-0, VGA-0) or direct rotation (left, right).

 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Trinity [Radeon HD 7640G]
        Subsystem: Lenovo Trinity [Radeon HD 7640G]
        Kernel driver in use: radeon
Used xf86-video-ati/xf86-video-ati-19.1.0-r1

 [ 10409.674] (EE) 
 [ 10409.674] (EE) Backtrace:
 [ 10409.674] (EE) 0: X (xorg_backtrace+0x5b) [0x55679425a23b]
 [ 10409.674] (EE) 1: X (0x556794120000+0x13dea5) [0x55679425dea5]
 [ 10409.674] (EE) 2: /lib64/libpthread.so.0 (0x7fb6173f0000+0x121d0) [0x7fb6174021d0]
 [ 10409.674] (EE) 
 [ 10409.674] (EE) Segmentation fault at address 0x0
 [ 10409.674] (EE) 
 Fatal server error:
 [ 10409.674] (EE) Caught signal 11 (Segmentation fault). Server aborting
 [ 10409.674] (EE) 
 [ 10409.674] (EE) 
 Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 


Reproducible: Always

Steps to Reproduce:
1. Start Xorg
2. Try rotate by xrandr




Not working: x11-base/xorg-server-21.1.2-r4 x11-base/xorg-server-21.1.3
Working: x11-base/xorg-server-1.20.14
Comment 1 Petr Bahula 2022-01-27 09:36:55 UTC
Created attachment 763731 [details]
lspci -k
Comment 2 Petr Bahula 2022-01-27 09:37:25 UTC
Created attachment 763732 [details]
emerge --info
Comment 3 Petr Bahula 2022-01-28 09:01:14 UTC
Hmmm...., I don't know what happened. :-O

I had an idea to test if only rotate or any next xrandr function is broken. I had once again recompiled xorg-server from 1.20.14 to 21.1.3 and rebooted computer (emerge -qO1 xorg-server && chmod u+s /usr/bin/Xorg && reboot).

Now my system start and is fully working. Only names of outputs are changed from LVDS, VGA-0, HDMI-0 to LVDS-1, VGA-1, HDMI-1. I made a few reboots and power off-power ons and the system is stable and working.

From my point of view is possible to close this bug.
Comment 4 Tim Bowers 2022-01-31 14:10:49 UTC
Hi,

I hit this issue, and patched with `wget 
                   "https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/-/merge_requests/9.patch" 
                   -O /etc/portage/patches/x11-drivers/xf86-video-ati/fix.patch` which then enabled me to get into my system once again.

Thanks to c17637da on IRC who helped with this.

Weirdly, if I ran startxfce4 as root, it'd give me a working xfce4 session. This only effected my 'normal' user.
Comment 5 Tim Bowers 2022-01-31 14:12:13 UTC
(In reply to Tim Bowers from comment #4)

> Weirdly, if I ran startxfce4 as root, it'd give me a working xfce4 session.
> This only effected my 'normal' user.

I've just realised this is likely because I don't have my rotated monitor setup in my root's session, so it could start cleanly.
Comment 7 Petr Bahula 2022-02-05 14:38:24 UTC
Hi,

I found what I described in "Comment 3". I had xorg-server-21.1.3 but xorg-drivers-1.20-r2. With this combination, X worked fully with changed output names.

But the correct configuration of xorg-server-21.1.3 and xorg-drivers-21.1 still crashes when using rotation.

With the patch from "Comments 4", X is now fully functional.

Thanks to Tim and Michael.
Comment 8 Michael 2022-02-05 18:12:36 UTC
xorg-drivers is a metapackage, so something else must've also changed
Comment 9 Brent Busby 2023-01-06 05:49:33 UTC
I can confirm that this bug exists.  I held off upgrades of X11 for a long time to keep it away from me.  However, I found a fix that works on my machine.

Add:
=x11-drivers/xf86-video-ati-9999 **

in /etc/portage/package.accept_keywords to pull the bleeding edge radeon driver.
Comment 10 Michael 2023-01-06 07:45:46 UTC
Or, alternatively, you could take the patch and stuff it in /etc/portage/patches/{$CATEGORY}/{$PACKAGE}/filename.patch as a quick self-help method.
Comment 11 Larry the Git Cow gentoo-dev 2023-04-25 18:54:37 UTC
The bug has been closed via the following commit(s):

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

commit c734012e783f70f850d35f9011e7dd2899a92373
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2023-04-25 18:50:42 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2023-04-25 18:54:34 +0000

    x11-drivers/xf86-video-ati: Version bump to 22.0.0
    
    Closes: https://bugs.gentoo.org/832155
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-drivers/xf86-video-ati/Manifest                |  1 +
 .../xf86-video-ati/xf86-video-ati-22.0.0.ebuild    | 52 ++++++++++++++++++++++
 .../xf86-video-ati/xf86-video-ati-9999.ebuild      |  9 ++--
 3 files changed, 59 insertions(+), 3 deletions(-)