[Mono-bugs] [Bug 78748][Nor] New - broken string comparison and/or sorted generic dictionaries

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jul 2 19:10:17 EDT 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.


--- shadow/78748	2006-07-02 19:10:17.000000000 -0400
+++ shadow/78748.tmp.19438	2006-07-02 19:10:17.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 78748
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: bcs26 at cornell.edu               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: broken string comparison and/or sorted generic dictionaries
+The attached test cases (C5TreeDict.cs and SCGDict.cs) are very simple
+programs that perform several basic operations on a dictionary of strings
+(C5.TreeDictionary and SCG.SortedDictionary, respectively), and then
+attempt to look up one of the values mapped in the dictionary. The value
+should be in the dictionary (and iterating over the dictionary's elements
+will find it), but the dictionary lookup fails when it should succeed:
+$ gmcs SCGDict.cs -t:exe -out:SCGDict.exe
+$ mono SCGDict.exe
+Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The
+given key was not present in the dictionary.
+  at
+(System.String ) [0x00000]
+  at SCGDict.Main (System.String[] args) [0x00000]
+The underlying bug is unclear. The fact that it's exhibited by both
+C5.TreeDictionary and SCG.SortedDictionary suggests that it's a subtle
+issue with string comparison, but I haven't been able to pinpoint the
+specific problem.
+I see this behavior on both 1.1.15 and svn r62176, on both gentoo amd64 and

More information about the mono-bugs mailing list