FS#57778 - [xf86-video-amdgpu] Xorg segmentation fault with xf86-video-amdgpu version 18.0.0-1

Attached to Project: Arch Linux
Opened by Harry Sheppard (99lives) - Saturday, 10 March 2018, 08:15 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 16 March 2018, 08:33 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Andreas Radke (AndyRTR)
Laurent Carlier (lordheavy)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi there, this is my first bug report here so I apologise if I get anything wrong.

Description:
Xorg crashes with a segmentation fault on xf86-video-amdgpu version 18.0.0-1.

Additional info:

Package version: xf86-video-amdgpu 18.0.0-1

Xorg log (last few lines that seemed relevant):

[ 28.951] (EE) Backtrace:
[ 28.953] (EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x139) [0x55b01a862e99]
[ 28.953] (EE) 1: /usr/lib/libpthread.so.0 (funlockfile+0x50) [0x7fd8a7b6be1f]
[ 28.954] (EE) 2: /usr/lib/xorg/modules/drivers/amdgpu_drv.so (_init+0x10373) [0x7fd8a446f993]
[ 28.954] (EE) 3: /usr/lib/xorg-server/Xorg (RamDacHandleColormaps+0x60f) [0x55b01a78126f]
[ 28.954] (EE) 4: /usr/lib/xorg-server/Xorg (xf86PruneDuplicateModes+0x1e5e) [0x55b01a77e6ee]
[ 28.954] (EE) 5: /usr/lib/xorg-server/Xorg (ProcRRSetCrtcGamma+0xb7) [0x55b01a7bf477]
[ 28.955] (EE) 6: /usr/lib/xorg-server/Xorg (SendErrorToClient+0x368) [0x55b01a6fd278]
[ 28.955] (EE) 7: /usr/lib/xorg-server/Xorg (InitFonts+0x420) [0x55b01a7012a0]
[ 28.956] (EE) 8: /usr/lib/libc.so.6 (__libc_start_main+0xea) [0x7fd8a77c3f4a]
[ 28.956] (EE) 9: /usr/lib/xorg-server/Xorg (_start+0x2a) [0x55b01a6eaf0a]
[ 28.956] (EE)
[ 28.956] (EE) Segmentation fault at address 0x4
[ 28.956] (EE)
Fatal server error:
[ 28.956] (EE) Caught signal 11 (Segmentation fault). Server aborting

I don't really know what other parts of the Xorg log may be relevant, let me know if you need more.

My hardware:
My video devices are an AMD RX580, and an AMD RX550. No integrated graphics on my CPU.

Steps to reproduce:
* Install xf86-video-amdgpu version 18.0.0-1.
* Start a window manager/desktop environment, such as with startx.
* Xorg will crash.

Workaround:
Downgrade back to xf86-video-amdgpu version 1.4.0-1.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Friday, 16 March 2018, 08:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  18.0.1-1
Comment by Andreas Radke (AndyRTR) - Saturday, 10 March 2018, 08:54 GMT Comment by Laurent Carlier (lordheavy) - Monday, 12 March 2018, 16:33 GMT
Do you have multiple screens ?
Comment by Harry Sheppard (99lives) - Tuesday, 13 March 2018, 06:53 GMT
Yes, one monitor for each GPU. Forgot to mention, sorry.
Comment by Laurent Carlier (lordheavy) - Wednesday, 14 March 2018, 17:14 GMT
Could be fixed with:
https://cgit.freedesktop.org/xorg/driver/xf86-video-amdgpu/commit/?id=29649652a08ece7e07741be161b067a4484455ca
or/and https://cgit.freedesktop.org/xorg/driver/xf86-video-amdgpu/commit/?id=b4a28bdcfa7089e1cf708490ddf048b7df4c7eed

Can you test with patch applied or xf86-video-amdgpu-git from aur? (https://aur.archlinux.org/packages/xf86-video-amdgpu-git/)
Comment by Laurent Carlier (lordheavy) - Friday, 16 March 2018, 06:33 GMT
Please test with xf86-video-amdgpu-18.0.1-1
Comment by Harry Sheppard (99lives) - Friday, 16 March 2018, 07:16 GMT
xf86-video-amdgpu-18.0.1-1 works. Xorg no longer crashes.

However, now my second monitor is having frame rate issues, but this is likely a separate bug. Feel free to disregard in this ticket, I will investigate and report upstream if need be.

Loading...