[Mono-bugs] [Bug 471275] New: Internal compiler error -> System.OverflowException: Value is greater than Int64.MaxValue

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jan 31 03:18:46 EST 2009


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


           Summary: Internal compiler error -> System.OverflowException:
                    Value is greater than Int64.MaxValue
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.2.x
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: reg at thinkedge.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5;
SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022;
NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; FDM)

Received an internal compiler error when compiling code with gmcs. The error
has been tracked to a single source file (attached).

Here's a complete log:

X:\mosa\trunk\Mosa\DeviceSystem\PCI>gmcs -lib:monolib -target:library
-out:anything.dll DeviceTable.cs
Exception caught by the compiler while emitting:
   Block that caused the problem begin at: DeviceTable.cs(9756,17):
System.OverflowException: Value is greater than Int64.MaxValue
Internal compiler error at DeviceTable.cs(9755,38):: exception caught while
emitting MethodBuilder [DeviceTable::Lookup]

Unhandled Exception: System.OverflowException: Value is greater than
Int64.MaxValue
  at System.Convert.ToInt64 (UInt64 value) [0x00000]
  at System.UInt64.System.IConvertible.ToInt64 (IFormatProvider provider)
[0x00000]
  at System.Convert.ToInt64 (System.Object value, IFormatProvider provider)
[0x00000]
  at System.Convert.ToInt64 (System.Object value) [0x00000]
  at Mono.CSharp.Switch.TableSwitchEmit (Mono.CSharp.EmitContext ec,
Mono.CSharp.Expression val) [0x00000]
  at Mono.CSharp.Switch.DoEmit (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.ExplicitBlock.Emit (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.ToplevelBlock.Emit (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.EmitContext.EmitResolvedTopBlock (Mono.CSharp.ToplevelBlock
blo\ck, Boolean unreachable) [0x00000]
  at Mono.CSharp.EmitContext.EmitTopBlock (IMethodData md,
Mono.CSharp.ToplevelBlock block) [0x00000]







Reproducible: Always

Steps to Reproduce:
1. gmcs -lib:monolib -target:library -out:anything.dll DeviceTable.cs

Actual Results:  
Exception caught by the compiler while emitting:
   Block that caused the problem begin at: DeviceTable.cs(9756,17):
System.OverflowException: Value is greater than Int64.MaxValue
Internal compiler error at DeviceTable.cs(9755,38):: exception caught while
emitting MethodBuilder [DeviceTable::Lookup].


Expected Results:  
Compiles without errors.

Works with Microsoft's Csc.exe compiler.

-- 
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