http://bugs.winehq.org/show_bug.cgi?id=31308
Bug #: 31308
Summary: Remote Tools for Visual Studio 2012 RC for Windows on
ARM (WoA) crashes due to invalid user TLS register
value access
Product: Wine
Version: 1.5.9
Platform: arm
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: focht(a)gmx.net
Classification: Unclassified
Hello,
for André, some toy to play with ;-)
"Remote Tools for Visual Studio 2012 RC" for Windows on ARM (WoA) can be
downloaded here:
http://www.microsoft.com/visualstudio/11/en-us/downloads#remote-tools
It crashes on my quad Cortex-A9 based i.mx6 Sabre with Ubuntu Linux 12.04
--- snip ---
Unhandled exception: page fault on read access to 0xc2083992 in 32-bit code
(0x00419d44).
Register dump:
Thumb User Mode
Pc:419d44 Sp:4134f720 Lr:418ed1 Cpsr:200f0030(--C-)
r0:0208 r1:0001 r2:4134f7c8 r3:0208
r4:c208398a r5:4134f7c8 r6:0000 r7:4134f728 r8:dddd
r9:04e4 r10:0100 Fp:4134f758 Ip:4134f518
Stack dump:
0x4134f720: 00000000 00000000 4134f7c8 00000100
0x4134f730: 00000001 8161b1cd 4134f748 00000100
0x4134f740: 4134f7c8 00000001 4134fd38 00446530
0x4134f750: 000004e4 4006e000 4134f790 00418f91
0x4134f760: 4134fac8 000004e4 00000000 00000000
0x4134f770: 00446998 00446308 42164138 40a72801
Backtrace:
=>0 0x00419d44 in rtools_setup_arm (+0x19d44) (0x4134f758)
1 0x00418ed1 in rtools_setup_arm (+0x18ed0) (0x4134f758)
0x00419d44:
ldr r4, [r4, #8]
Modules:
Module Address Debug info Name (77 modules)
ELF 8000- 12000 Deferred <wine-loader>
PE 400000- 454000 Export rtools_setup_arm
ELF 40031000-4003f000 Deferred libsm.so.6
...
System information:
Wine build: wine-1.5.9-186-g1f6febe
Platform: arm
Host system: Linux
Host version: 3.2.0-1000-linaro-lt-mx6
--- snip ---
WINEDEBUG=+tid,+seh,+relay doesn't reveal much, might be app init/startup code:
--- snip ---
$ wine ./rtools_setup_arm.exe
...
0024:Call KERNEL32.GetLastError() ret=00416973
0024:Ret KERNEL32.GetLastError() retval=00000000 ret=00416973
0024:Call KERNEL32.MultiByteToWideChar(000004e4,00000001,4130f7c8 "
\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f
!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94"...,00000100,00000000,00000000)
ret=00418e95
0024:Ret KERNEL32.MultiByteToWideChar() retval=00000100 ret=00418e95
0024:trace:seh:raise_exception info[0]=00000000
0024:trace:seh:raise_exception info[1]=c2083992
0024:trace:seh:raise_exception Pc:419d44 Sp:4130f720 Lr:418ed1 Cpsr:200f0030
r0:0208 r1:0001 r2:0100 r3:0208
0024:trace:seh:raise_exception r4:c208398a r5:4130f7c8 r6:0000 r7:4130f728
r8:dddd r9:04e4 r10:0100 Fp:4130f758 Ip:4130f518
0024:trace:seh:call_stack_handlers calling handler at 0x403e3900 code=c0000005
flags=0
0024:Call KERNEL32.UnhandledExceptionFilter(4130f574) ret=403e3964
wine: Unhandled page fault on read access to 0xc2083992 at address 0x419d44
(thread 0024), starting debugger...
0024:trace:seh:start_debugger Starting debugger "winedbg --auto 35 68"
...
--- snip ---
Winedbg's builtin disassembler isn't really helpful, it's missing various
thumb(2) opcodes.
Fortunately there is a free IDA 6.2 demo version for Linux which also supports
ARM family for download:
http://www.hex-rays.com/products/ida/support/download_demo.shtml
This is an invaluable tool which can be used to improve winedbg's disassembler
and investigate other problems on ARM.
The code in question:
--- snip ---
...
.text:00419D40 MRC p15, 0, R4,c13,c0, 2
.text:00419D44 LDR R4, [R4,#8]
...
--- snip ---
ARM info center CP15 c13 register summary:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0388f/CIHFGF…
Another resource:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0360f/CACEAI…
Opcode_2=3 register "TPIDRURO" is actually ARM HW TLS register, used by libc
(__get_tls()).
Opcode_2=2 register "TPIDRURW" is "Software Thread ID, User, R/W"
Not sure if this is a "free for use" register or if any user space threading
library code actually manages this register.
One would have to search eglibc sources for ARM and any userspace libraries
mapped into process address space, not part of Wine.
The values don't seem very random but they point to invalid (not mapped) memory
locations.
I couldn't find any MCR opcodes in application code, so it's probably written
elsewhere.
This linux kernel patch has a bit of information:
http://www.kernelhub.org/?p=2&msg=57979
It got committed to Linux 3.3.5:
http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.3.5 (search for
TPIDRURW).
I'm running 3.2.0 so it's obviously not cleared by kernel side on context
switch.
Anyway, I fear this will be most likely upstream if the kernel deliberately
clears it on every context switch (starting with 3.3.5).
$ du -sh rtools_setup_arm.exe
16M rtools_setup_arm.exe
$ sha1sum rtools_setup_arm.exe
6f75e6dad60b64e1f074884829b63ca00bcdb531 rtools_setup_arm.exe
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.
https://bugs.winehq.org/show_bug.cgi?id=37915
Bug ID: 37915
Summary: IsWow64Process fix(es) required: 32bit UPlay games do
not launch in a 64Bit prefix when Wine is set to
Vista/Win7
Product: Wine
Version: 1.7.34
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: abolte(a)systemsaviour.com
Distribution: ---
While the recent commit
http://source.winehq.org/git/wine.git/commitdiff/bfd088dbc6b4f397d9adfbc11a…
now allows Uplay to launch 64-bit games in a 64-bit prefix when Windows 7 is
selected (and probably Vista and 8), it doesn't help with launching 32-bit
games.
Since #33776 was closed without covering this situation, I'm opening this bug
to cover that use-case here.
Attachment 50492 from #33776
(https://bugs.winehq.org/attachment.cgi?id=50492&action=diff) solves this for
me, but seems to be a work in progress based on what the author has said there.
This issue is also perhaps not specific to Uplay, although I don't know of any
other application affected by the bugs in the existing implementation at this
time (hence the title).
--
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.
https://bugs.winehq.org/show_bug.cgi?id=39101
Bug ID: 39101
Summary: Visual Studio Compiler creates invalid interface from
a typelib
Product: Wine
Version: 1.7.49
Hardware: x86
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: oleaut32
Assignee: wine-bugs(a)winehq.org
Reporter: leslie_alistair(a)hotmail.com
Distribution: ---
Created attachment 52094
--> https://bugs.winehq.org/attachment.cgi?id=52094
Sample Project
winetricks vc2008express
Open the Attached project and compile.
StdAfx.h has line.
#import "../typelibs/Debug/typelibs.tlb"
which causes the compiler to get generate typelibs.tlh and typelibs.tli files.
These files represent the interfaces that are defined in the TLB.
Under WINE, the file created (runme\Debug\typelibs.tlh),
contains a line, like below, for every function in the base interfaces(s).
virtual HRESULT _VtblGapPlaceholder1( ) { return E_NOTIMPL; }
whereas on windows these lines aren't there.
These extra lines cause the V Table to be incorrect and programs crash when any
of the interface functions are called.
--
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.
http://bugs.winehq.org/show_bug.cgi?id=33221
Bug #: 33221
Summary: Visual Studio 2008 (9.0) Express Edition cannot
compile with builtin msvcr90
Product: Wine
Version: 1.5.25
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: msvcrt
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: ehoover(a)mines.edu
Classification: Unclassified
Regression SHA1: 5d88f780dd4bbbde0ff27075b58321d7347f6d4b
The VS IDE terminal window shows the following error:
1>cl : Command line warning D9002 : ignoring unknown option '/'
1>cl : Command line error D8003 : missing source filename
A git bisect reveals:
5d88f780dd4bbbde0ff27075b58321d7347f6d4b is the first bad commit
commit 5d88f780dd4bbbde0ff27075b58321d7347f6d4b
Author: Piotr Caban <piotr(a)codeweavers.com>
Date: Mon Feb 18 10:26:01 2013 +0100
msvcr90: Prefer builtin version.
:040000 040000 09577625ae5788cd73d4a3cd6c5c6f82ea7d9807
aef32f8a1984759761461627
A debug trace for +msvcrt is quite large (rather obviously), but can be found
here:
https://dl.dropbox.com/u/195059/wine/msvcrt.log
The issue can be worked around by setting msvcr90 to native in winecfg.
--
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.
http://bugs.winehq.org/show_bug.cgi?id=33207
Bug #: 33207
Summary: Visual Studio 2008 (9.0) Express Edition cannot launch
in a fresh prefix
Product: Wine
Version: 1.5.25
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: shell32
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: ehoover(a)mines.edu
Classification: Unclassified
On launch the application reports "The application data folder for <program>
could not be created." (e.g. "Visual C++ Express"). By manually creating the
expected folder the problem can be worked around:
mkdir ${HOME}/.wine/drive_c/users/${USER}/Application\ Data
--
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.
http://bugs.winehq.org/show_bug.cgi?id=15619
Summary: Visual Studio 2008 Installer Hangs after
err:seh:setup_exception_record stack overflow
Product: Wine
Version: 1.1.6
Platform: Other
OS/Version: other
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: peterbelm(a)gmail.com
Created an attachment (id=16642)
--> (http://bugs.winehq.org/attachment.cgi?id=16642)
Terminal output
When running the Visual Studio 2008 installer the setup window appears, and
starts loading installation components, after about 30 seconds full processor
usage, err:seh:setup_exception_record stack overflow appears in the terminal
output (see attachment) the progress bar increases slightly, and then it seems
to hang.
Checking with strace on the setup.exe process (the main one, the other one
gives me 'Operation not permitted', even when sudo'ing it) shows it is waiting
to read from a pipe, which is red when doing 'ls -l', I assume that means the
pipe doesn't exist any more?
--
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.
http://bugs.winehq.org/show_bug.cgi?id=29905
Bug #: 29905
Summary: Microsoft Visual Studio 2008: attaching to process
fails with "unknown error: 0x80070003" (support of
"Session" namespace for named objects needed)
Product: Wine
Version: 1.4-rc3
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: wineserver
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: focht(a)gmx.net
Classification: Unclassified
Hello,
prerequisite: 'winetricks -q dotnet30'
Unfortunately for installation of Visual Studio 2008 Professional/Enterprise
editions you have to resort to hacks.
NOTE: Remote debugging capability is not available in Visual Studio 2005/2008
express editions (free for download).
Bug 29354 (installer fails due to ProductID being set during client side
"ValidateProductID" standard action -> don't set property)
Bug 10601 (GAC API for managed assembly installation needs reparse
point/junction API support -> force
msi_install_assembly()/IAssemblyCache_InstallAssembly to succeed on failure)
The installer still fails in the end but it's enough to have a "half" usable
IDE/build environment (.NET Framework 3.5 and some .NET service packs get
skipped due to Mono registry/fake mess while other components fail to install).
Unlike Visual Studio 2005 which uses wtsapi (bug 29903), Visual Studio 2008
retrieves the process list by different means and displays the process in
"standard" transport mode.
--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/Microsoft Visual Studio 9.0/Common7/IDE
$ wine ./devenv.exe
--- snip ---
1) Menu "extras" -> "attach to process"
2) select one process, click "attach"
It starts the debugging environment but fails half-through with "unknown error:
0x80070003"
--- snip ---
...
0082:Call KERNEL32.ProcessIdToSessionId(00000085,0032e5f0) ret=3f083224
0082:Ret KERNEL32.ProcessIdToSessionId() retval=00000001 ret=3f083224
...
0082:Call
KERNEL32.CreateFileMappingW(ffffffff,0032e604,00000004,00000000,0000003c,0032e610
L"Session\\0\\Microsoft_VS90_causality_sharedmemory-133") ret=3f089149
0082:Ret KERNEL32.CreateFileMappingW() retval=00000000 ret=3f089149
0082:Call KERNEL32.GetLastError() ret=3f08897a
0082:Ret KERNEL32.GetLastError() retval=00000003 ret=3f08897a
...
0082:Call
KERNEL32.FormatMessageW(00001300,00000000,80070003,00000400,0032e638,00000000,00000000)
ret=3f2b9072
0082:Ret KERNEL32.FormatMessageW() retval=00000000 ret=3f2b9072
...
0082:Call oleaut32.SysAllocString(03d19b60 L"Der Vorgang wird nicht
unterst\00fctzt. Unbekannter Fehler: 0x80070003.") ret=3f247a9f
...
--- snip ---
For communication between target and debugger a shared memory location is
created.
The shared memory (file mapping) is created using a special namespace syntax:
"Session\\0\\Microsoft_VS90_causality_sharedmemory-133"
Wineserver doesn't support "Session\<id>" yet, hence CreateFileMappingW()
fails.
(another run with +server):
--- snip ---
0009: create_mapping( access=000f000f, attributes=00000080, protect=00000043,
size=0000003c, file_handle=0000,
objattr={rootdir=0010,sd={control=00000004,owner=<not present>,group=<not
present>,sacl={},dacl={{AceType=ACCESS_ALLOWED_ACE_TYPE,Mask=10000000,AceFlags=0,Sid={S-1-5-21-0-0-0-1000}}}},name=L"Session\\0\\Microsoft_VS90_causality_sharedmemory-18"}
)
0009: create_mapping() = OBJECT_PATH_NOT_FOUND { handle=0000 }
--- snip ---
Source:
http://source.winehq.org/git/wine.git/blob/ba715798094896e8b98fc5803e16b00f…
"Kernel Object Namespaces":
http://msdn.microsoft.com/en-us/library/aa382954.aspx
--- quote ---
...
In addition to the "Global\" prefix, client processes can use the "Local\"
prefix to explicitly create an object in their session namespace. These
keywords are case sensitive.
The "Session\" prefix is reserved for system use and you should not use it in
names of kernel objects.
...
<user comments>
This documentation effectively states that 'Global', 'Local' and 'Session' are
all valid as name prefixes (but not as names).
There appears to be no documentation that says 'Session' cannot be used as a
prefix or that it is reserved for use as a prefix.
By referring to 'Session' as it does, it strongly implies that this a fully
legal and valid way to enable applications in one session to interact with
applications in another session.
I think Microsoft should consider adding more detail about whether 'Session' is
or is not valid for use by developers, and if so exactly what it can and cannot
be used for.
[user reponse] Global\ refers to the Global Namespace, Local\ refers to the
current session's namespace, Session\x\ refers to x's namespace where x is the
session id (not LUID or anything special, just a counter)
--- quote ---
"Memory mapped files from XP to Vista"
http://blogs.msdn.com/b/maartenb/archive/2008/05/07/memory-mapped-files-fro…
--- quote ---
... Online search for "sessions\1\basenamedobject" gives hits that point to
Terminal Services. There appear to be Local Global and Session namespaces. So
prior to Vista and Server 2008 all services shared the same namespace as the
first user logging in to the machine. This was session 0. With Vista this is no
longer the case. Just like all compatibility issues it is explained in the
cookbook.
--- quote ---
There is a workaround for this problem.
You can force a "normal" shared memory mapping name by setting to WinVer to
"Windows 2000" prior running the IDE.
Some components don't really support running WinVer < "Windows XP" anymore
hence this might break some stuff (VS2008 refuses to install with W2K mode).
At least this prevents the error message when attaching.
It doesn't really break/pause the remote process (might be bug 25462).
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.
http://bugs.winehq.org/show_bug.cgi?id=24583
Summary: Wine 1.3.3 can't run Visual Studio 2008 (VC9)
installer
Product: Wine
Version: 1.3.3
Platform: x86
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: simons(a)cryp.to
Created an attachment (id=31046)
--> (http://bugs.winehq.org/attachment.cgi?id=31046)
Output printed by wine while attempting to run the installer
I ran the installer of the full version (not VC express) using the latest
release of wine. The installer starts up and works for a while, but ultimately
it aborts with an unhandled exception.
--
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.
http://bugs.winehq.org/show_bug.cgi?id=20227
Summary: msi: Table Join on two tables that have same
(non-join) column name causes only first column data
to be returned.
Product: Wine
Version: 1.1.30
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: msi
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: ngallaher+winehq(a)deepthought.org
Created an attachment (id=23863)
--> (http://bugs.winehq.org/attachment.cgi?id=23863)
Patch for TableJoin bug
Imagine the following tables
Table foo:
string color
string flavor
Table bar:
string color
string flavor
with query
"Select foo.color, bar.flavor from foo, bar where foo.color=bar.color"
The current version returns the data from columns foo.color and foo.flavor.
This is because when the tables are joined, the original tablename identifiers
are dropped on the floor, resulting in a table with two 'color' and two
'flavor' columns. The VIEW_find_column() function then returns the first
column found that matches the requested name.
This can be traced to a deficiency in VIEW_find_column() which only uses the
column names in its comparison. Further, the sql parser does not preserve the
table identifier, but this is easily fixed.
A patch, including test case is attached.
This behaviour was observed when trying to install Visual Studio 2008 Standard
Edition.
--
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.
http://bugs.winehq.org/show_bug.cgi?id=15671
Summary: Visual Studio 2008 Express web install fails with
"Sharing violation" on $shtdwn$.req
Product: Wine
Version: 1.1.6
Platform: Other
URL: http://www.microsoft.com/express/download/#webInstall
OS/Version: other
Status: NEW
Keywords: download, Installer
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: dank(a)kegel.com
To get the installer to even try, you have to do "winetricks volnum".
The next problem is while copying file 41 of 41, $shtdwn$.req,
it gets a sharing violation. The file it's trying to copy
is there, but can't be opened, possibly because it has
never been closed.
002f:Call KERNEL32.CreateFileA(0100afa0
"c:\\21309f2f7662773b82c3\\$shtdwn$.req",c0000000,00000003,00000000,00000001,04000002,00000000)
ret=0100355e
trace:file:CreateFileW returning 0x68
002f:Ret KERNEL32.CreateFileA() retval=00000068 ret=0100355e
002f:Call KERNEL32.WriteFile(00000068,0100a5a0,00000314,0032fe70,00000000)
ret=010035b5
trace:file:WriteFile 0x68 0x100a5a0 788 0x32fe70 (nil)
002f:Ret KERNEL32.WriteFile() retval=00000001 ret=010035b5
002f:Call KERNEL32.SetEnvironmentVariableA(01002388
"_SFX_CAB_SHUTDOWN_REQUEST",0100afa0 "c:\\21309f2f7662773b82c3\\$shtdwn$.req")
ret=010035cb
...
...
trace:text:DrawTextExW L"Setup is copying required resources to your temp
directory.\r\nCopying file 41 of 41.\r\n\r\nCopying setup file: $shtdwn$.req",
-1,
[(0,0)-(360,70)] 00000050
...
0032:Call KERNEL32.CopyFileExW(0033e80c
L"C:\\21309f2f7662773b82c3\\$shtdwn$.req",0033e5fc
L"C:\\windows\\temp\\SIT42147.tmp\\$shtdwn$.req",3aaed850,0000000
0,0033ddbc,00000002) ret=3aaed716
warn:file:CreateFileW Unable to create file
L"C:\\21309f2f7662773b82c3\\$shtdwn$.req" (status c0000043)
warn:file:CopyFileW Unable to open source
L"C:\\21309f2f7662773b82c3\\$shtdwn$.req"
0032:Call oleaut32.SysAllocString(00787cf0 L"Setup has encountered a problem
while trying to copy:\r\nC:\\21309f2f7662773b82c3\\$shtdwn$.req\r\nPress Retry
to attempt the copy again. Press Cancel to cancel setup.") ret=3aae49ab
Interestingly, even on Windows this file can't be opened sometimes
early in an installer; see
http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-i…
It's an interesting mystery. What triggers that file to be closed on Windows?
--
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.