[Mono-bugs] [Bug 665001] New: Compiling Fluent NHibernate crashes the compiler

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jan 17 17:05:53 EST 2011


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

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


           Summary: Compiling Fluent NHibernate crashes the compiler
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.8.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: cthielen at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b9)
Gecko/20100101 Firefox/4.0b9

In an attempt to compile the Fluent NHibernate ORM open source library and its
accompanying Example project, the compiler crashes (both on Mono 2.8.1 and Mono
2.8.2).

The source code can be found here:
https://github.com/jagregory/fluent-nhibernate/tree/master/src/Examples.FirstProject
 This is the 'official' test source code from the Fluent NHibernate project.

The download includes compiled assemblies which can be referenced successfully,
just not built.

The example project itself can be built, but if you attempt to re-build Fluent
NHibernate instead of referencing the pre-compiled assembly, the compiler will
crash:


Building: FluentNHibernate (Debug)

Building Solution FluentNHibernate

Building: FluentNHibernate (Debug)

Performing main compilation...
-- snipping out the very long compile line --

Unhandled Exception: Mono.CSharp.InternalErrorException:
/Users/cthielen/Downloads/jagregory-fluent-nhibernate-bd94ea5/src/FluentNHibernate/Mapping/ComponentMap.cs(25,18):
FluentNHibernate.Mapping.ComponentMap<T> --->
Mono.CSharp.InternalErrorException:
/Users/cthielen/Downloads/jagregory-fluent-nhibernate-bd94ea5/src/FluentNHibernate/Mapping/ComponentMap.cs(47,60):
FluentNHibernate.Mapping.ComponentMap<T>.Component<TComponent>(System.Linq.Expressions.Expression<System.Func<T,TComponent>>)
---> System.ArgumentException: Invalid arguments
  at Mono.CSharp.TypeParameterInflator..ctor (Mono.CSharp.TypeSpec type,
Mono.CSharp.TypeParameterSpec[] tparams, Mono.CSharp.TypeSpec[] targs)
[0x00000] in <filename unknown>:0 
  at Mono.CSharp.Method.DefineTypeParameters () [0x00000] in <filename
unknown>:0 
  at Mono.CSharp.Method.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal) [0x00000] in
<filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.Class.DefineContainerMembers (IList list) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x00000] in <filename
unknown>:0 
  at Mono.CSharp.ClassOrStruct.DoDefineMembers () [0x00000] in <filename
unknown>:0 
  at Mono.CSharp.Class.DoDefineMembers () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.RootContext.PopulateTypes () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.RootContext.PopulateTypes () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename
unknown>:0 



Unhandled Exception: Mono.CSharp.InternalErrorException:
/Users/cthielen/Downloads/jagregory-fluent-nhibernate-bd94ea5/src/FluentNHibernate/Mapping/ComponentMap.cs(25,18):
FluentNHibernate.Mapping.ComponentMap<T> --->
Mono.CSharp.InternalErrorException:
/Users/cthielen/Downloads/jagregory-fluent-nhibernate-bd94ea5/src/FluentNHibernate/Mapping/ComponentMap.cs(47,60):
FluentNHibernate.Mapping.ComponentMap<T>.Component<TComponent>(System.Linq.Expressions.Expression<System.Func<T,TComponent>>)
---> System.ArgumentException: Invalid arguments
  at Mono.CSharp.TypeParameterInflator..ctor (Mono.CSharp.TypeSpec type,
Mono.CSharp.TypeParameterSpec[] tparams, Mono.CSharp.TypeSpec[] targs)
[0x00000] in <filename unknown>:0 
  at Mono.CSharp.Method.DefineTypeParameters () [0x00000] in <filename
unknown>:0 
  at Mono.CSharp.Method.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal) [0x00000] in
<filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.Class.DefineContainerMembers (IList list) [0x00000] in
<filename unknown>:0 
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x00000] in <filename
unknown>:0 
  at Mono.CSharp.ClassOrStruct.DoDefineMembers () [0x00000] in <filename
unknown>:0 
  at Mono.CSharp.Class.DoDefineMembers () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.RootContext.PopulateTypes () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.RootContext.PopulateTypes () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename
unknown>:0 
Build complete -- 1 error, 0 warnings

---------------------- Done ----------------------

Build: 1 error, 0 warnings


Reproducible: Always

Steps to Reproduce:
1. Download the tarball linked above.
2. Attempt to build using MonoDevelop on Mono 2.8.1 or Mono 2.8.2.

Actual Results:  
The compilation failed as the compiler crashed.

Expected Results:  
The library should compile and operate as expected.

-- 
Configure bugmail: https://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