[Bug 31308] Remote Tools for Visual Studio 2012 RC for Windows on ARM (WoA) crashes due to invalid user TLS register value access

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jul 24 19:17:47 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=31308

--- Comment #1 from Anastasius Focht <focht at gmx.net> 2012-07-24 19:17:47 CDT ---
Hello,

until the meaning/working of this "user" TLS register is known we could just
write some magic value to it on thread init, forcing exception on
access/dereference.
This allows to trap/emulate the TLS access, checking for the magic value and
give back some chunk of good memory.
The problem would be newer Linux 3.3.5+ kernels that clear the value on context
switch.
We would have to analyse the code sequence, looking at previous opcode(s) for
"MRC p15, 0, <Rd>, c13, c0, 2" to figure out if this was not a simple null
pointer access by other code.

Best solution would be to have the kernel preserve TPIDRURW on context switch
so Wine could mimic whatever Windows on ARM does.

Regards

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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