[Bug 21483] changed token security breaks .NET Framework 2.0 SDK tools

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Aug 5 16:09:40 CDT 2010


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


Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |dotnet, download
                URL|                            |http://www.microsoft.com/do
                   |                            |wnloads/details.aspx?Family
                   |                            |ID=fe6f2099-b7b4-4f47-a244-
                   |                            |c96d69c35dec&displaylang=en
            Summary|changed token security      |changed token security
                   |breaks .NET Framework SDK   |breaks .NET Framework 2.0
                   |tools                       |SDK tools




--- Comment #1 from Anastasius Focht <focht at gmx.net>  2010-08-05 16:09:40 ---
Hello,

revisiting, adding keywords, download.
Due to Mono fake .NET registry keys the installer won't complain about missing
MS .NET Framework 2.0 install but you will need 'winetricks dotnet20' for SDK
tools to properly work afterwards.

A small "Hello world" .NET executable is sufficient to reproduce, e.g.:

--- snip hello.cs ---
public class HelloWorld
{
  public static void Main()
  {
    System.Console.WriteLine("Hello World !");
  }
}
--- snip hello.cs ---

Compile it:

--- snip ---
$ wine "c:\windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /debug hello.cs
--- snip ---

Start the program with any of the available managed console debuggers (mdbg,
cordbg) and it should stop at program entry but instead it misses all CLR hooks
and runs to completion:

--- snip ---
$ wine "c:\Program Files\Microsoft.NET\SDK\v2.0\Bin\cordbg.exe" hello.exe
fixme:sync:CreateMemoryResourceNotification (0) stub
fixme:shell:URL_ParseUrl failed to parse L"MdbgCore"
fixme:shell:URL_ParseUrl failed to parse L"System"
fixme:shell:URL_ParseUrl failed to parse L""
fixme:shell:URL_ParseUrl failed to parse L"msvcm80"
Microsoft (R) Common Language Runtime Test Debugger Shell Version 2.0.50727.42
(RTM.050727-4200)
Copyright (C) Microsoft Corporation. All rights reserved.

(cordbg) run ./hello.exe
fixme:shell:URL_ParseUrl failed to parse L"System.Configuration"
fixme:shell:URL_ParseUrl failed to parse L"System.Xml"
fixme:sync:CreateMemoryResourceNotification (0) stub
Hello World !
fixme:ole:Context_CC_ContextCallback (0x153580/0x153584)->(0x79f277a5,
0x2f9dea0, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
fixme:ole:Context_CC_ContextCallback (0x153580/0x153584)->(0x79f277a5,
0x2f9da3c, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
Process exited.
--- snip ---

Expected behaviour (token security fixed):

--- snip ---
$ wine "c:\Program Files\Microsoft.NET\SDK\v2.0\Bin\cordbg.exe" hello.exe
fixme:sync:CreateMemoryResourceNotification (0) stub
fixme:shell:URL_ParseUrl failed to parse L"MdbgCore"
fixme:shell:URL_ParseUrl failed to parse L"System"
fixme:shell:URL_ParseUrl failed to parse L""
fixme:shell:URL_ParseUrl failed to parse L"msvcm80"
Microsoft (R) Common Language Runtime Test Debugger Shell Version 2.0.50727.42
(RTM.050727-4200)
Copyright (C) Microsoft Corporation. All rights reserved.

(cordbg) run ./hello.exe
fixme:shell:URL_ParseUrl failed to parse L"System.Configuration"
fixme:shell:URL_ParseUrl failed to parse L"System.Xml"
...
Process 31/0x1f created.
fixme:ole:Context_CC_ContextCallback (0x1542c0/0x1542c4)->(0x79f277a5,
0x2f9dc78, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
fixme:sync:CreateMemoryResourceNotification (0) stub
...
Warning: couldn't load symbols for
C:\windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll
[thread 0x20] Thread created.
...
004:   {
(cordbg) sh
...
001: public class HelloWorld
002: {
003:   public static void Main()
004:*  {
005:     System.Console.WriteLine("Hello World !");
006:   }
007: }
(cordbg) s
005:     System.Console.WriteLine("Hello World !");
...
--- snip ---

I removed lots of "fixme:ole:Context_CC_ContextCallback()" messages from output
which is an indication of another general problem/bug.

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