You are not logged in.

#1 2016-05-08 17:15:37

KyleKyleton
Member
Registered: 2016-05-08
Posts: 2

Xorg fails with segfault > successfully launches w/ software rendering

$ uname -r
4.5.3-1-ARCH
$ lspci | grep VGA
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti LE [Radeon HD 7870 XT]

Trying to use the open source "radeon" driver on Xorg version 1.18.3

Here's the Xorg.0.log from the failed first attempt to startx: http://pastebin.com/8dfAe0tk
The big issue seems to be this:

[   347.879] (EE) glamor0: GL error: GL_OUT_OF_MEMORY in glTexSubImage
[   347.879] (EE) glamor0: GL error: GL_OUT_OF_MEMORY in glReadPixels
[   348.053] (WW) glamor: Failed to allocate 36x1920 FBO due to GL_OUT_OF_MEMORY.
[   348.053] (WW) glamor: Expect reduced performance.
[   348.140] (EE) glamor0: GL error: GL_OUT_OF_MEMORY in glBufferData
[   348.140] (EE) glamor0: GL error: GL_INVALID_OPERATION in glReadPixels(out of bounds PBO access)
[   348.140] (EE) glamor0: GL error: GL_INVALID_OPERATION in glMapBuffer(length = 0)

And then it segfaults and shows the backtrace:

[   348.140] (EE) Backtrace:
[   348.141] (EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x139) [0x594d49]
[   348.145] (EE) 1: /usr/lib/libc.so.6 (__restore_rt+0x0) [0x7fd16739a30f]
[   348.145] (EE) 2: /usr/lib/libc.so.6 (__memcpy_sse2_unaligned+0x29) [0x7fd1673f4b49]
[   348.146] (EE) 3: /usr/lib/xorg/modules/libfb.so (fbBlt+0xee) [0x7fd161e1395e]
[   348.146] (EE) 4: /usr/lib/xorg/modules/libfb.so (fbCopyPlane+0x1cb) [0x7fd161e174cb]
[   348.146] (EE) 5: /usr/lib/xorg/modules/libfb.so (fbFill+0x524) [0x7fd161e179a4]
[   348.146] (EE) 6: /usr/lib/xorg/modules/libfb.so (fbPolyFillRect+0x1a0) [0x7fd161e180b0]
[   348.147] (EE) 7: /usr/lib/xorg/modules/libglamoregl.so (glamor_create_gc+0xddc3) [0x7fd161bf5993]
[   348.147] (EE) 8: /usr/lib/xorg-server/Xorg (DamageRegionAppend+0x19c8) [0x51b2f8]
[   348.147] (EE) 9: /usr/lib/xorg-server/Xorg (miPaintWindow+0x20a) [0x57369a]
[   348.147] (EE) 10: /usr/lib/xorg-server/Xorg (miWindowExposures+0x1a2) [0x573462]
[   348.147] (EE) 11: /usr/lib/xorg-server/Xorg (xorgGetVersion+0x2266) [0x48e0a6]
[   348.147] (EE) 12: /usr/lib/xorg-server/Xorg (miHandleValidateExposures+0x29) [0x5883f9]
[   348.147] (EE) 13: /usr/lib/xorg-server/Xorg (UnmapWindow+0x14d) [0x464efd]
[   348.147] (EE) 14: /usr/lib/xorg-server/Xorg (DeleteWindow+0x2c) [0x464f9c]
[   348.147] (EE) 15: /usr/lib/xorg-server/Xorg (RegisterResourceName+0x232) [0x45ac62]
[   348.148] (EE) 16: /usr/lib/xorg-server/Xorg (FreeResource+0xd9) [0x45b6c9]
[   348.148] (EE) 17: /usr/lib/xorg-server/Xorg (xf86I2CGetScreenBuses+0xa99) [0x4c2339]
[   348.148] (EE) 18: /usr/lib/xorg-server/Xorg (RegisterResourceName+0x232) [0x45ac62]
[   348.148] (EE) 19: /usr/lib/xorg-server/Xorg (FreeClientResources+0x6c) [0x45bccc]
[   348.148] (EE) 20: /usr/lib/xorg-server/Xorg (CloseDownClient+0x6f) [0x43567f]
[   348.148] (EE) 21: /usr/lib/xorg-server/Xorg (SendErrorToClient+0x151) [0x4360b1]
[   348.148] (EE) 22: /usr/lib/xorg-server/Xorg (remove_fs_handlers+0x453) [0x43a263]
[   348.149] (EE) 23: /usr/lib/libc.so.6 (__libc_start_main+0xf1) [0x7fd167387741]
[   348.149] (EE) 24: /usr/lib/xorg-server/Xorg (_start+0x29) [0x424589]
[   348.149] (EE) 25: ? (?+0x29) [0x29]
[   348.149] (EE) 
[   348.149] (EE) Segmentation fault at address 0x110d008
[   348.149] (EE) 
Fatal server error:
[   348.149] (EE) Caught signal 11 (Segmentation fault). Server aborting

glxinfo from the successful second attempt: http://pastebin.com/6jfH2RqZ
We can see that it has fallen back to software rendering (line 56):

OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)

dmesg: http://pastebin.com/v6V9kTXZ
Line 861 and onward are the good bits.

Since it looked like it was an issue with glamor, I tried using mesa-libgl-git from the AUR; no luck.
I also tried setting

   Option "AccelMethod" "EXA"

in /etc/X11/xorg.conf.d/20-radeon.conf, but it ends up trying glamor anyway.

What can I do?

Last edited by KyleKyleton (2016-05-10 22:41:07)

Offline

#2 2016-05-13 20:47:21

KyleKyleton
Member
Registered: 2016-05-08
Posts: 2

Re: Xorg fails with segfault > successfully launches w/ software rendering

Wayland fails in the same way that X does.

Should I assume it's purely a hardware issue?
Or is it still possible that there's just some incompatibility with my particular GPU and glamor?

And I have no idea where the logs for Wayland are, otherwise I'd post 'em.

Last edited by KyleKyleton (2016-05-14 14:53:07)

Offline

Board footer

Powered by FluxBB