[Mono-bugs] [Bug 77136][Blo] New - Runtime cannot find method (multiple generic parameter constraints)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jan 1 16:35:21 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 sestoft at dina.kvl.dk.

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

--- shadow/77136	2006-01-01 16:35:21.000000000 -0500
+++ shadow/77136.tmp.330	2006-01-01 16:35:21.000000000 -0500
@@ -0,0 +1,103 @@
+Bug#: 77136
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: JIT
+AssignedTo: lupus at ximian.com                            
+ReportedBy: sestoft at dina.kvl.dk               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Runtime cannot find method (multiple generic parameter constraints)
+
+Description of Problem:
+
+The program below compiles correctly with Mono gmcs and Microsoft csc, but
+the Mono 1.1.12.1 runtime for Debian Linux cannot execute the resulting exe.
+
+Steps to reproduce the problem:
+1. Compile with gmcs or csc
+2. Try to run it with mono
+3. Observe segmentation fault
+
+Actual Results:
+
+** (Bug19.exe:11783): WARNING **: Missing method CompareTo in assembly
+/usr/local/mono-1.1.12.1/lib/mono/2.0/mscorlib.dll token 6000046
+
+=================================================================
+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 <0xffffffff>
+System.Collections.Generic.Comparer`1:System.Collections.IComparer.Compare
+(object,object)
+in <0x110>
+System.Collections.Generic.Comparer`1:System.Collections.IComparer.Compare
+(object,object)
+in <0xc7> System.Array:compare (object,object,System.Collections.IComparer)
+in <0x72> System.Array:qsort
+(System.Array,System.Array,int,int,System.Collections.IComparer)
+in <0x2f1> System.Array:Sort
+(System.Array,System.Array,int,int,System.Collections.IComparer)
+in <0x15> System.Array:Sort (System.Array,int,int,System.Collections.IComparer)
+in <0x26> System.Collections.Generic.List`1:Sort ()
+in <0xae> MyTest:Main (string[])
+in <0xc773ab87> (wrapper runtime-invoke)
+System.Object:runtime_invoke_void_string[] (object,intptr,intptr,intptr)
+
+Native stacktrace:
+
+        mono(mono_handle_native_sigsegv+0xba) [0x814a44a]
+        mono [0x81368cf]
+        /lib/libpthread.so.0 [0x400d08cb]
+        /lib/libc.so.6 [0x40173670]
+        mono(mono_class_inflate_generic_method+0x23) [0x8089b23]
+        mono(mono_get_method_constrained+0xaf) [0x80bd22f]
+        mono [0x81229c0]
+        mono [0x813543f]
+        mono [0x813617b]
+        mono [0x8136487]
+        mono [0x81364ba]
+        mono(mono_compile_method+0x3a) [0x80d311a]
+        mono(mono_magic_trampoline+0x1a) [0x814b73a]
+        [0x4027e032]
+        [0x40a00a78]
+        [0x40a0089b]
+        [0x40a00602]
+        [0x40a002f6]
+        [0x409fd13f]
+        [0x409fbfe7]
+        [0x409fbc23]
+        mono [0x8136780]
+        mono(mono_runtime_invoke+0x27) [0x80d4927]
+        mono(mono_runtime_exec_main+0x5c) [0x80d579c]
+        mono(mono_runtime_run_main+0x171) [0x80d53c1]
+        mono(strftime+0x1b52) [0x805ce02]
+        mono(mono_main+0x786) [0x805d716]
+        mono(__fxstat64+0x12b) [0x805c1cb]
+        /lib/libc.so.6(__libc_start_main+0xc6) [0x4015fdc6]
+        mono(sinh+0x41) [0x805c121]
+Aborted
+
+
+Expected Results:
+
+(Brazil, 2002)
+(France, 1998)
+
+Additional Information:
+
+The gmcs-generated exe runs fine on Microsoft .Net SDK 2005 final release.
+
+The mono runtime crashes also on the csc-generated exe.


More information about the mono-bugs mailing list