Bug 1403507

Summary: Latest mesa-dri-drivers causes startup failure for dota2
Product: [Fedora] Fedora Reporter: HIGHGuY
Component: mesaAssignee: Adam Jackson <ajax>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 25CC: ajax, fschwarz, ignatenko
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-11 00:34:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description HIGHGuY 2016-12-10 20:20:10 UTC
Description of problem:
dota2 fails to start up with the latest version of mesa-dri-drivers.

Version-Release number of selected component (if applicable):
13.0.2-1

How reproducible:
Always

Steps to Reproduce:
1. Update system to latest mesa-dri-drivers
2. start dota2
3.

Actual results:
Application crashes in OPENSSL_ia32_cpuid

Expected results:
Application starts.

Additional info:
Backtrace:
#0  0x00007fffe666f840 in OPENSSL_ia32_cpuid () from /lib64/libcrypto.so.10
#1  0x00007fffdea60a24 in ?? () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libpanorama_text_pango.so
#2  0x00007fffde9438b6 in _init () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libpanorama_text_pango.so
#3  0x00007fffde923370 in ?? () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libpanorama_text_pango.so
#4  0x00007ffff7de798a in call_init.part () from /lib64/ld-linux-x86-64.so.2
#5  0x00007ffff7de7adb in _dl_init () from /lib64/ld-linux-x86-64.so.2
#6  0x00007ffff7deca36 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#7  0x00007ffff7de7874 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#8  0x00007ffff7dec009 in _dl_open () from /lib64/ld-linux-x86-64.so.2
#9  0x00007ffff7987f09 in dlopen_doit () from /lib64/libdl.so.2
#10 0x00007ffff7de7874 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#11 0x00007ffff7988591 in _dlerror_run () from /lib64/libdl.so.2
#12 0x00007ffff7987fa2 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2
#13 0x00007ffff595b699 in Plat_LoadModuleRaw () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libtier0.so
#14 0x00007ffff6224428 in ?? () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libengine2.so
#15 0x00007ffff6225cab in ?? () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libengine2.so
#16 0x00007ffff6226afc in ?? () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libengine2.so
#17 0x00007fffded70cb7 in ?? () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libmaterialsystem2.so
#18 0x00007ffff6225b72 in ?? () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libengine2.so
#19 0x00007ffff6226f51 in ?? () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libengine2.so
#20 0x00007ffff5fff3ed in ?? () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libengine2.so
#21 0x00007ffff5ffff87 in ?? () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libengine2.so
#22 0x00007ffff5f2c7cd in ?? () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libengine2.so
#23 0x00007ffff5f2cc07 in Source2Main () from /media/SteamLibrary/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/libengine2.so
#24 0x0000555555555299 in ?? ()
#25 0x00007ffff7259401 in __libc_start_main () from /lib64/libc.so.6
#26 0x000055555555532d in _start ()

Known steam run-time bug:
https://github.com/ValveSoftware/steam-for-linux/issues/3803

The root-cause is that mesa-dri-drivers uses libcrypto/openssl when vulkan is enabled at build-time. Per the above bug, any run-time loading of libcrypto causes failure of certain games on steam.

Suggested workaround:
mesa can use other sha1-hashing options at build time (one of which is simply libc), so these would be a better fit to avoid crashes.

Comment 1 HIGHGuY 2016-12-10 20:24:52 UTC
Confirmed that downgrading mesa to 12.0.3-3 works around the issue.

Comment 2 Igor Gnatenko 2016-12-11 00:34:08 UTC

*** This bug has been marked as a duplicate of bug 1403443 ***