[Mono-bugs] [Bug 77395][Maj] New - GMCS 1.1.13.1 crashes when compiling generics code below

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jan 28 14:24:59 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jan.oravec at 6com.sk.

http://bugzilla.ximian.com/show_bug.cgi?id=77395

--- shadow/77395	2006-01-28 14:24:59.000000000 -0500
+++ shadow/77395.tmp.26441	2006-01-28 14:24:59.000000000 -0500
@@ -0,0 +1,85 @@
+Bug#: 77395
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: jan.oravec at 6com.sk               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: GMCS 1.1.13.1 crashes when compiling generics code below
+
+Description of Problem:
+
+GMCS crashes on the following input:
+
+class A : C<B<int>> {}
+class B<X> {}
+interface C<X> where X : D<X> {}
+interface D<X> {}
+
+
+Steps to reproduce the problem:
+1. compile the code
+
+Actual Results:
+
+=================================================================
+Got a SIGSEGV while executing native code. This usually indicates
+a fatal error in the mono runtime or one of the native libraries 
+used by your application.
+=================================================================
+
+Stacktrace:
+
+in <0xb> (wrapper managed-to-native) System.Type:type_is_assignable_from
+(System.Type,System.Type)
+in <0xffffffffffffff7e> (wrapper managed-to-native)
+System.Type:type_is_assignable_from (System.Type,System.Type)
+in <0x1a6> System.Type:IsAssignableFrom (System.Type)
+in <0x995> Mono.CSharp.Convert:ImplicitStandardConversionExists
+(Mono.CSharp.EmitContext,Mono.CSharp.Expression,System.Type)
+in <0x1db> Mono.CSharp.ConstraintChecker:CheckConstraint
+(Mono.CSharp.EmitContext,System.Type,Mono.CSharp.Expression,System.Type)
+in <0x4ed> Mono.CSharp.ConstraintChecker:CheckConstraints
+(Mono.CSharp.EmitContext,int)
+in <0x35> Mono.CSharp.ConstraintChecker:CheckConstraints
+(Mono.CSharp.EmitContext)
+in <0x65> Mono.CSharp.ConstraintChecker:CheckConstraints
+(Mono.CSharp.EmitContext,System.Type,System.Type[],System.Type[],Mono.CSharp.Location)
+in <0x34> Mono.CSharp.ConstructedType:CheckConstraints
+(Mono.CSharp.EmitContext)
+in <0x11f> Mono.CSharp.TypeContainer:DoDefineMembers ()
+in <0x5e> Mono.CSharp.TypeContainer:DefineMembers ()
+in <0x2fb> Mono.CSharp.RootContext:PopulateTypes ()
+in <0xd15> Mono.CSharp.Driver:MainDriver (string[])
+in <0x79> Mono.CSharp.Driver:Main (string[])
+in <0xffffffffc0441054> (wrapper runtime-invoke)
+System.Object:runtime_invoke_int_string[] (object,intptr,intptr,intptr)
+
+Native stacktrace:
+
+        /usr/bin/mono(mono_handle_native_sigsegv+0x8a) [0x5243aa]
+        /usr/bin/mono [0x50dedc]
+        /lib/libpthread.so.0 [0x2aaaab18b2c0]
+        /usr/bin/mono(mono_class_is_assignable_from+0x14c) [0x4bb85c]
+        [0x402aa94b]
+Aborted
+
+
+
+Expected Results:
+
+Do not crash.
+
+
+How often does this happen? 
+
+Always


More information about the mono-bugs mailing list