[Mono-bugs] [Bug 77399][Nor] New - consistent crash using SortedList with non-primitive key

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jan 29 20:36:39 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 bcs26 at cornell.edu.

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

--- shadow/77399	2006-01-29 20:36:39.000000000 -0500
+++ shadow/77399.tmp.21169	2006-01-29 20:36:39.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 77399
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: bcs26 at cornell.edu               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: consistent crash using SortedList with non-primitive key
+
+The mono runtime crashes consistently on programs using the SortedList
+generic collection with a class or struct key implementing the IComparable
+generic interface. A very simple example case (TestSortedList.cs) is
+attached. Observed behavior:
+
+"
+$ gmcs TestSortedList.cs
+$ mono TestSortedList.exe
+
+** (TestSortedList.exe:6475): WARNING **: Missing method CompareTo in
+assembly /usr/lib64/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 <0xffffffffffffffff> System.Collections.Generic.SortedList`2:Find (ClassA)
+in <0xe9> System.Collections.Generic.SortedList`2:Find (ClassA)
+in <0x70> System.Collections.Generic.SortedList`2:PutImpl (ClassA,bool,bool)
+in <0x30> System.Collections.Generic.SortedList`2:Add (ClassA,bool)
+in <0x7d> TestCompareTo:Main (string[])
+in <0xffffffffc04780fe> (wrapper runtime-invoke)
+System.Object:runtime_invoke_void_string[] (object,intptr,intptr,intptr)
+
+Native stacktrace:
+
+        mono(mono_handle_native_sigsegv+0x88) [0x506558]
+        mono [0x4f327c]
+        /lib/tls/libpthread.so.0 [0x2aaaab17b270]
+        mono(mono_get_inflated_method+0x28) [0x4ab458]
+        [0x7ffffface520]
+Aborted
+"
+
+
+The runtime appears to operate correctly if an int key is used (or,
+presumably, any other primitive key). Incorrect behavior is consistently
+observed with mono 1.1.12.1 and 1.1.13.1 on both amd64 and x86, under
+Gentoo. It's unclear whether this is a compiler, library, or runtime issue.


More information about the mono-bugs mailing list