[Mono-bugs] [Bug 396987] New: C# Compiler Internal Error

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 4 04:35:32 EDT 2008


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

User Yury at serdyuk.botik.ru added comment
https://bugzilla.novell.com/show_bug.cgi?id=396987#c1

           Summary: C# Compiler Internal Error
           Product: Mono: Compilers
           Version: 1.9.0
          Platform: x86-64
        OS/Version: SLES 9
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: Yury at serdyuk.botik.ru
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Internal error during compilation ( code generation phase I think):

[serdyuk at access Linq]$ gmcs /r:mcsharp.dll
/r:System.Windows.Forms,System.Drawing RayTracer_CompilerBug.cs                 
Unhandled Exception: Mono.CSharp.InternalErrorException:
RayTracer_CompilerBug.cs(29,10):
RayTracer.RayTracer.RayTracer(System.Runtime.Serialization.SerializationInfo,
System.Runtime.Serialization.StreamingContext) ---> System.Exception: Trying to
emit a local from a different ILGenerator.
  at System.Reflection.Emit.ILGenerator.Emit (OpCode opcode,
System.Reflection.Emit.LocalBuilder lbuilder) [0x00000]
  at Mono.CSharp.LocalTemporary.Store (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.NewInitialize.Emit (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.ArrayCreation.EmitDynamicInitializers (Mono.CSharp.EmitContext
ec, Boolean emitConstants) [0x00000]
  at Mono.CSharp.ArrayCreation.Emit (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.FieldExpr.EmitAssign (Mono.CSharp.EmitContext ec,
Mono.CSharp.Expression source, Boolean leave_copy, Boolean prepare_for_load)
[0x00000]
  at Mono.CSharp.Assign.Emit (Mono.CSharp.EmitContext ec, Boolean is_statement)
[0x00000]
  at Mono.CSharp.Assign.EmitStatement (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.CollectionOrObjectInitializers.EmitStatement
(Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.CollectionOrObjectInitializers.Emit (Mono.CSharp.EmitContext
ec) [0x00000]
  at Mono.CSharp.NewInitialize.Emit (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.FieldExpr.EmitAssign (Mono.CSharp.EmitContext ec,
Mono.CSharp.Expression source, Boolean leave_copy, Boolean prepare_for_load)
[0x00000]
  at Mono.CSharp.Assign.Emit (Mono.CSharp.EmitContext ec, Boolean is_statement)
[0x00000]
  at Mono.CSharp.Assign.EmitStatement (Mono.CSharp.EmitContext ec) [0x00000]
  at Mono.CSharp.FieldInitializer.EmitStatement (Mono.CSharp.EmitContext ec)
[0x00000]
  at Mono.CSharp.TypeContainer.EmitFieldInitializers (Mono.CSharp.EmitContext
ec) [0x00000]
  at Mono.CSharp.Constructor.Emit () [0x00000]
  at Mono.CSharp.TypeContainer.EmitConstructors () [0x00000] --- End of inner
exception stack trace ---

  at Mono.CSharp.TypeContainer.EmitConstructors () [0x00000]
  at Mono.CSharp.TypeContainer.EmitType () [0x00000]
  at Mono.CSharp.RootContext.EmitCode () [0x00000]
  at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000]
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]

Mono Version and System information:

[serdyuk at access Linq]$ mono -V
Mono JIT compiler version 1.9.1 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
[serdyuk at access Linq]$ uname -a
Linux access.icyb 2.6.18-028stab053-srv-0.2 #1 SMP Tue Feb 12 16:17:10 EET 2008
x86_64 x86_64 x86_64 GNU/Linux

Zip file with program file and dll is attached.

Sorry for the some "shaggy" form of program code -
it has been generated automatically from some high-level description.


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