[Mono-bugs] [Bug 491517] [verifier] missing visibility checks on calls
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Apr 2 11:08:23 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=491517
User spouliot at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=491517#c2
Sebastien Pouliot <spouliot at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Info Provider|spouliot at novell.com |
--- Comment #2 from Sebastien Pouliot <spouliot at novell.com> 2009-04-02 09:08:23 MDT ---
1. Build Mono / Moonlight from SVN HEAD
2. Run Moonlight with CoreCLR enabled (default)
firefox http://www.farseergames.com/games/tirestorm/tirestorm.aspx
3. move mouse cursor over the "play" text (right)
4. Console shows the exception
System.MethodAccessException: Method `System.Text.Encoding:get_CodePage ()' is
inaccessible from method `System.Xml.XmlDictionaryWriter:CreateTextWriter
(System.IO.Stream,System.Text.Encoding,bool)'
at System.Xml.XmlDictionaryWriter.CreateTextWriter (System.IO.Stream stream,
System.Text.Encoding encoding) [0x00000] in
/home/poupou/svn/mcs/class/System.Runtime.Serialization/System.Xml/XmlDictionaryWriter.cs:113
at System.Xml.XmlDictionaryWriter.CreateTextWriter (System.IO.Stream stream)
[0x00000] in
/home/poupou/svn/mcs/class/System.Runtime.Serialization/System.Xml/XmlDictionaryWriter.cs:107
at System.Runtime.Serialization.XmlObjectSerializer.WriteObject
(System.IO.Stream stream, System.Object graph) [0x00000] in
/home/poupou/svn/mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/XmlObjectSerializer.cs:89
at System.IO.IsolatedStorage.IsolatedStorageSettings.Save () [0x00057] in
/home/poupou/svn/moon/class/System.Windows/System.IO.IsolatedStorage/IsolatedStorageSettings.cs:169
at PPG.RideWavesGame.App.Application_Exit (System.Object sender,
System.EventArgs e) [0x00000]
at System.Windows.Application.Terminate () [0x0001b] in
/home/poupou/svn/moon/class/System.Windows/System.Windows/Application.cs:102
at Mono.ApplicationLauncher.DestroyApplication (IntPtr plugin) [0x0000a] in
/home/poupou/svn/moon/class/System.Windows/Mono/ApplicationLauncher.cs:83
5. Run Moonlight without CoreCLR/verifier enabled
MOON_DISABLE_SECURITY=1 firefox
http://www.farseergames.com/games/tirestorm/tirestorm.aspx
6. Do '3' again, no exception on the console
I use a local mono patch to enable just CoreCLR and/or the verifier to test
Moonlight web sites.
void
mono_security_enable_core_clr ()
{
- mono_verifier_set_mode (MONO_VERIFIER_MODE_VERIFIABLE);
- mono_security_set_mode (MONO_SECURITY_MODE_CORE_CLR);
+ if (g_getenv ("MOON_DISABLE_VERIFIER") != NULL)
+ g_warning ("VERIFIER was DISABLED using MOON_DISABLE_VERIFIER
override");
+ else
+ mono_verifier_set_mode (MONO_VERIFIER_MODE_VERIFIABLE);
+
+ if (g_getenv ("MOON_DISABLE_CORECLR") != NULL)
+ g_warning ("CORECLR was DISABLED using MOON_DISABLE_CORECLR
override");
+ else
+ mono_security_set_mode (MONO_SECURITY_MODE_CORE_CLR);
}
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list