[Mono-bugs] [Bug 662315] New: Accessing System.Text.Encoding.Default results in a SIGILL

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 4 14:16:22 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=662315

https://bugzilla.novell.com/show_bug.cgi?id=662315#c0


           Summary: Accessing System.Text.Encoding.Default results in a
                    SIGILL
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: x86-64
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: saml at itrgroupinc.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:
Using System.Text.Encoding.Default causes the app to crash with a
System.ExecutionEngineException: SIGILL

Steps to reproduce the problem:
1. Create a new MDr app.
2. After your base.OnCreate(bundle), put:
    Android.Util.Log.D("test", System.Text.Encoding.Default.EncodingName);
3. Run.


Actual Results:
Logcat:
01-04 11:39:09.332: ERROR/mono(7940): [0xafe42a98:] EXCEPTION handling:
System.ExecutionEngineException: SIGILL
01-04 11:39:09.542: INFO/MonoDroid(7940): UNHANDLED EXCEPTION:
System.ExecutionEngineException: SIGILL
01-04 11:39:09.542: INFO/MonoDroid(7940): at System.Text.Encoding.get_Default
() <0x0007b>
01-04 11:39:09.542: INFO/MonoDroid(7940): at Test.TestActivity.OnCreate
(Android.OS.Bundle) <0x0001f>
01-04 11:39:09.542: INFO/MonoDroid(7940): at
Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr)
<0x0005f>
01-04 11:39:09.542: INFO/MonoDroid(7940): at (wrapper dynamic-method)
object.beee8d0e-fd24-46a7-b0d3-f1a8eaf45b15 (intptr,intptr,intptr) <0x00033>
01-04 11:39:09.712: ERROR/mono(7940): [0xafe42a98:] EXCEPTION handling:
System.MissingMethodException: Cannot create an abstract class
'Java.Lang.VirtualMachineError'.
01-04 11:39:09.752: ERROR/mono(7940): Unhandled Exception:
System.MissingMethodException: Cannot create an abstract class
'Java.Lang.VirtualMachineError'.
01-04 11:39:09.752: ERROR/mono(7940): at System.Activator.CheckAbstractType
(System.Type) <0x000a8>
01-04 11:39:09.752: ERROR/mono(7940): at System.Activator.CreateInstance
(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[])
<0x0027f>
01-04 11:39:09.752: ERROR/mono(7940): at System.Activator.CreateInstance
(System.Type,object[],object[]) <0x0003f>
01-04 11:39:09.752: ERROR/mono(7940): at System.Activator.CreateInstance
(System.Type,object[]) <0x00033>
01-04 11:39:09.752: ERROR/mono(7940): at Java.Lang.Throwable.FromException
(System.Exception) <0x0019b>
01-04 11:39:09.752: ERROR/mono(7940): at
Android.Runtime.AndroidEnvironment.UnhandledException (System.Exception)
<0x000e7>
01-04 11:39:09.752: ERROR/mono(7940): at (wrapper dynamic-method)
object.beee8d0e-fd24-46a7-b0d3-f1a8eaf45b15 (intptr,intptr,intptr) <0x00087>
01-04 11:39:09.752: ERROR/mono(7940): at (wrapper native-to-managed)
object.beee8d0e-fd24-46a7-b0d3-f1a8eaf45b15 (intptr,intptr,intptr) <0x00053>

Expected Results:
The default Encoding to be returned.

How often does this happen? 
Every time.

Additional Information:
This property also seems to be getting called from
XmlSerializer.Serialize(Stream, object)

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list