[Mono-bugs] [Bug 77848][Cri] New - when using --trace, mono crashes in InternalStrCpy

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Mar 19 02:30:57 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 matt at use.net.

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

--- shadow/77848	2006-03-19 02:30:57.000000000 -0500
+++ shadow/77848.tmp.9651	2006-03-19 02:30:57.000000000 -0500
@@ -0,0 +1,153 @@
+Bug#: 77848
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: matt at use.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: when using --trace, mono crashes in InternalStrCpy
+
+Description of Problem:   
+I am consistently getting a crash similar to the one below in several   
+apps when running them with --trace . The presence of --debug doesn't   
+affect the behaviour. There are many bugs I can't debug easily because I  
+can't use --trace.  
+   
+   
+Steps to reproduce the problem:   
+1. run just about any app (nunit-console, nunit-gui, reflector, etc)  
+with current SVN like this: 'mono  --trace nunit-console 
+nunit.framework.tests.dll' 
+   
+Actual Results:   
+mono crashes, with a similar stack trace at the top: 
+Unhandled Exception: System.ArgumentException: Invalid sequence in 
+conversion input 
+Parameter name: string 
+in <0x00000> <unknown method> 
+in (wrapper managed-to-native) System.String:InternalStrcpy 
+(string,int,string,int,int) 
+in [0x0007c] 
+(at /home/matt/src/mono/mcs/class/corlib/System.Text/StringBuilder.cs:473) 
+System.Text.StringBuilder:Append (System.String value, Int32 startIndex, 
+Int32 count) 
+in [0x00038] 
+(at /home/matt/src/mono/mcs/class/corlib/System/String.cs:1168) 
+System.String:FormatHelper (System.Text.StringBuilder result, 
+IFormatProvider provider, System.String format, System.Object[] args) 
+in [0x00004] 
+(at /home/matt/src/mono/mcs/class/corlib/System.Text/StringBuilder.cs:505) 
+System.Text.StringBuilder:AppendFormat (IFormatProvider provider, 
+System.String format, System.Object[] args) 
+in [0x00011] 
+(at /home/matt/src/mono/mcs/class/corlib/System.Text/StringBuilder.cs:511) 
+System.Text.StringBuilder:AppendFormat (System.String format, 
+System.Object arg0, System.Object arg1) 
+in [0x00139] 
+(at /home/matt/src/mono/mcs/class/corlib/System/Exception.cs:187) 
+System.Exception:get_StackTrace () 
+in [0x00086] 
+(at /home/matt/src/mono/mcs/class/corlib/System/Exception.cs:282) 
+System.Exception:ToString () 
+in <0x00000> <unknown method> 
+in (wrapper managed-to-native) System.String:InternalStrcpy 
+(string,int,string,int,int) 
+in [0x0007c] 
+(at /home/matt/src/mono/mcs/class/corlib/System.Text/StringBuilder.cs:473) 
+System.Text.StringBuilder:Append (System.String value, Int32 startIndex, 
+Int32 count) 
+in [0x00038] 
+(at /home/matt/src/mono/mcs/class/corlib/System/String.cs:1168) 
+System.String:FormatHelper (System.Text.StringBuilder result, 
+IFormatProvider provider, System.String format, System.Object[] args) 
+in [0x00004] 
+(at /home/matt/src/mono/mcs/class/corlib/System.Text/StringBuilder.cs:505) 
+System.Text.StringBuilder:AppendFormat (IFormatProvider provider, 
+System.String format, System.Object[] args) 
+in [0x0000d] 
+(at /home/matt/src/mono/mcs/class/corlib/System.Text/StringBuilder.cs:493) 
+System.Text.StringBuilder:AppendFormat (System.String format, 
+System.Object arg0) 
+in [0x0010f] 
+(at /home/matt/src/mono/mcs/class/corlib/System/Exception.cs:183) 
+System.Exception:get_StackTrace () 
+in [0x00086] 
+(at /home/matt/src/mono/mcs/class/corlib/System/Exception.cs:282) 
+System.Exception:ToString () 
+in <0x00000> <unknown method> 
+in (wrapper managed-to-native) System.String:InternalStrcpy 
+(string,int,string) 
+in [0x00096] 
+(at /home/matt/src/mono/mcs/class/corlib/System.Text/StringBuilder.cs:346) 
+System.Text.StringBuilder:Append (System.String value) 
+in [0x000aa] 
+(at /home/matt/src/mono/mcs/class/corlib/System/Exception.cs:177) 
+System.Exception:get_StackTrace () 
+in [0x00086] 
+(at /home/matt/src/mono/mcs/class/corlib/System/Exception.cs:282) 
+System.Exception:ToString () 
+in <0x00000> <unknown method> 
+in (wrapper managed-to-native) System.String:InternalStrcpy 
+(string,int,string) 
+in [0x00096] 
+(at /home/matt/src/mono/mcs/class/corlib/System.Text/StringBuilder.cs:346) 
+System.Text.StringBuilder:Append (System.String value) 
+in [0x00150] 
+(at /home/matt/src/mono/mcs/class/corlib/System/String.cs:1219) 
+System.String:FormatHelper (System.Text.StringBuilder result, 
+IFormatProvider provider, System.String format, System.Object[] args) 
+in [0x00004] 
+(at /home/matt/src/mono/mcs/class/corlib/System.Text/StringBuilder.cs:505) 
+System.Text.StringBuilder:AppendFormat (IFormatProvider provider, 
+System.String format, System.Object[] args) 
+in [0x00011] 
+(at /home/matt/src/mono/mcs/class/corlib/System.Text/StringBuilder.cs:511) 
+System.Text.StringBuilder:AppendFormat (System.String format, 
+System.Object arg0, System.Object arg1) 
+in [0x000c8] 
+(at /home/matt/src/mono/mcs/class/corlib/System/Exception.cs:178) 
+System.Exception:get_StackTrace () 
+in [0x00086] 
+(at /home/matt/src/mono/mcs/class/corlib/System/Exception.cs:282) 
+System.Exception:ToString () 
+in <0x00000> <unknown method> 
+in (wrapper managed-to-native) System.String:InternalAllocateStr (int) 
+in [0x000b2] 
+(at /home/matt/src/mono/mcs/class/corlib/System.Text/StringBuilder.cs:676) 
+System.Text.StringBuilder:InternalEnsureCapacity (Int32 size) 
+in [0x00084] 
+(at /home/matt/src/mono/mcs/class/corlib/System.Text/StringBuilder.cs:345) 
+System.Text.StringBuilder:Append (System.String value) 
+in [0x000aa] 
+(at /home/matt/src/mono/mcs/class/corlib/System/Exception.cs:177) 
+System.Exception:get_StackTrace () 
+in [0x00086] 
+(at /home/matt/src/mono/mcs/class/corlib/System/Exception.cs:282) 
+System.Exception:ToString () 
+in <0x00000> <unknown method> 
+in (wrapper managed-to-native) System.String:InternalStrcpy 
+(string,int,string) 
+in [0x00096] 
+(at /home/matt/src/mono/mcs/class/corlib/System.Text/StringBuilder.cs:346) 
+System.Text.StringBuilder:Append (System.String value) 
+ 
+   
+   
+Expected Results:   
+shouldn't crash 
+   
+   
+How often does this happen?    
+  every time 
+   
+Additional Information:   
+  This was working a few weeks ago, at least.


More information about the mono-bugs mailing list