[Mono-bugs] [Bug 76243][Maj] New - String.StartsWith() hangs with managed collation when strings differ by accent

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Sep 27 06:20:21 EDT 2005

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 brion at pobox.com.


--- shadow/76243	2005-09-27 06:20:21.000000000 -0400
+++ shadow/76243.tmp.11852	2005-09-27 06:20:21.000000000 -0400
@@ -0,0 +1,64 @@
+Bug#: 76243
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: Ubuntu Hoary/x86
+Status: NEW   
+Priority: Major
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: brion at pobox.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: String.StartsWith() hangs with managed collation when strings differ by accent
+Description of Problem:
+With managed string collation enabled, my program hangs when trying to call
+String.StartsWith() with parameters that differ by accents.
+Steps to reproduce the problem:
+1. "Medi\u00e4vistik".StartsWith("Media");
+Actual Results:
+Hangs in a loop, apparently forever...
+Expected Results:
+Should immediately return.
+How often does this happen? 
+Every time, with managed collation on.
+Additional Information:
+Noticed problem when I upgraded Mono to current SVN (r50824) after a couple
+weeks. Ubuntu Linux box is set for en_US.UTF-8 locale; same results if I
+set LANG=C.
+Trying to do a backtrace and print_method_from_ip in gdb shows a few hits
+in Mono.Globalization.Unicode such as:
+IP 0xb7533622 at offset 0x2a of method
+Mono.Globalization.Unicode.CodePointIndexer:ToIndex (int) (0xb75335f8
+0xb75336a9)[domain 0x21f00 - mwdumper.exe]
+IP 0xb7533385 at offset 0x65 of method
+Mono.Globalization.Unicode.MSCompatUnicodeTable:IsIgnorable (int,byte)
+(0xb7533320 0xb75333ca)[domain 0x21f00 - mwdumper.exe]
+IP 0xb7230c35 at offset 0xd of method
+Mono.Globalization.Unicode.MSCompatUnicodeTable:IsIgnorableNonSpacing (int)
+(0xb7230c28 0xb7230c3a)[domain 0x21f00 - mwdumper.exe]
+No method at 0xbffff24c
+(0xb7531930 0xb7533050)[domain 0x21f00 - mwdumper.exe]
+Attaching short C# program which demonstrates hang cases.

More information about the mono-bugs mailing list