[Bug 47077] Brawlhalla (Steam) crashes with Wine 4.6 ( Steam Game Overlay Renderer hook engine can't cope with GOT/ PIC register load code at API entry, needs DECLSPEC_HOTPATCH for setupapi.SetupDiEnumDeviceInfo)

wine-bugs at winehq.org wine-bugs at winehq.org
Thu May 2 18:21:00 CDT 2019


https://bugs.winehq.org/show_bug.cgi?id=47077

--- Comment #12 from Anastasius Focht <focht at gmx.net> ---
Hello Michele,

your backtrace indicates another hotpatch/PIC victim.

Call frame #1 -> gameoverlayrenderer = hook
Call frame #0 (crash site) -> AUDDRV_GetEndpointIDs (audio backend
GetEndpointIDs)

The instruction at crash site does GOT data access. It's very likely that the
hook engine copied the GOT/PIC register load code into the trampoline which
can't work by design.

--- snip  ---
Unhandled exception: page fault on read access to 0x7f037d94 in 32-bit code
(0x771b8d72).
00e6:fixme:dbghelp:elf_search_auxv can't find symbol in module
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:771b8d72 ESP:0032e7b0 EBP:0032e7c8 EFLAGS:00010213(  R- --  I   -A- -C)
 EAX:00000003 EBX:00000002 ECX:00507900 EDX:7f037580
 ESI:00507758 EDI:00507758
Stack dump:
0x0032e7b0:  771e0930 0032e7c8 0032e7d4 0032e7dc
0x0032e7c0:  00000000 00507618 0032e7f8 1009bf76
0x0032e7d0:  005075f0 7f0102c5 1009bf76 00507758
0x0032e7e0:  00507618 0032e844 0032e810 0032e974
0x0032e7f0:  100ce6f8 ffffffff 0032e844 01c9e6b6
0x0032e800:  00507758 005075f0 01ca013d 00507618
Backtrace:
=>0 0x771b8d72 AUDDRV_GetEndpointIDs+0xffffffff() in winepulse (0x0032e7c8)
  1 0x1009bf76 EntryPoint+0xffffffff() in gameoverlayrenderer (0x0032e7f8)
  2 0x01c9e6b6 EntryPoint+0x3a952e() in adobe air (0x0032e844)
  3 0x01a304ce EntryPoint+0x13b346() in adobe air (0x0032e864)
  4 0x01a14b9f EntryPoint+0x11fa17() in adobe air (0x0032e98c)
  5 0x01931b11 EntryPoint+0x3c989() in adobe air (0x0032ea84)
0x771b8d72 AUDDRV_GetEndpointIDs+0xffffffff in winepulse: testb
$0x8,0x814(%edx)
--- snip ---

Building 32-bit Wine with '-fno-PIC' on x86 is the "one solution to rule them
all". It will fix all hotpatch related issues, in fact making DECLSPEC_HOTPATCH
unnecessary (except for few broken apps that expect hotpatch signature at API
entry).

This is covered by bug 47097 ("Multiple Steam games crash on startup ( Steam
Game Overlay Renderer hook engine can't cope with GOT/ PIC register load
code)(Counter-Strike, Black Mesa, The Superlatives: Shattered Worlds, Lara
Croft GoL)") and friends.

Either build Wine from current Git/Source or wait for Wine 4.8 release.

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list