[Bug 101881] [regression] 32bit steam games segfault when launched with DRI_PRIME=1

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jul 29 14:17:38 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101881

--- Comment #5 from Rafael Ristovski <rafael.ristovski at gmail.com> ---
I can confirm a very similar issue on my SI Cape Verde (HD8850M GCN1.0) using
the amdgpu driver with mesa. It happens even if I compile mesa's `xdemos` with
-m32 in which case most of the binaries produce a segfault pointing to
drmGetVersion().

Can you confirm the same thing on your end?
Steps to reproduce:

1) Compile xdemos with -m32
2) Load `glthreads` in gdb
3) Switch DRI on inside gdb via 'set environment DRI_prime=1'
4) After you run the program ('r'), and it segfaults, try and see what 'bt'
produces.

For me its the following:

#0  0xf7a9c001 in ?? () from /lib32/libc.so.6
#1  0xf7a9bceb in strdup () from /lib32/libc.so.6
#2  0xf7735c55 in drmGetVersion () from /usr/lib32/libdrm.so.2
#3  0xf71a1acc in amdgpu_winsys_create () from /usr/lib32/dri/radeonsi_dri.so
#4  0xf69152d8 in ?? () from /usr/lib32/dri/radeonsi_dri.so
#5  0xf6de8238 in ?? () from /usr/lib32/dri/radeonsi_dri.so
#6  0xf6de2eb3 in ?? () from /usr/lib32/dri/radeonsi_dri.so
#7  0xf7e0f0c5 in ?? () from /usr/lib32/libGL.so.1
#8  0xf7de040c in ?? () from /usr/lib32/libGL.so.1
#9  0xf7dde789 in glXChooseVisual () from /usr/lib32/libGL.so.1
#10 0x0804a483 in create_window ()
#11 0x0804abe9 in main ()

Note 64bit binaries work flawlessly.
Using gcc 8 alpha here.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170729/4eb0147a/attachment.html>


More information about the dri-devel mailing list