[Mono-bugs] [Bug 27633][Nor] New - Redirection crashes Mono in Readline.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
11 Jul 2002 04:54:46 -0000


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 miguel@ximian.com.

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

--- shadow/27633	Thu Jul 11 00:54:46 2002
+++ shadow/27633.tmp.22930	Thu Jul 11 00:54:46 2002
@@ -0,0 +1,40 @@
+Bug#: 27633
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Redirection crashes Mono in Readline.
+
+The following program will crash mono if the stdin is redirected:
+
+using System;
+
+class DoStatements 
+{
+	static void Main() {
+		string s;
+		do { s = Console.ReadLine(); }
+		while (s != "Exit");
+	}
+}
+
+mcs a.cs
+mono a.exe < /dev/null
+
+With this error:
+
+** ERROR **: file unicode.c: line 443 (ves_icall_iconv_get_char_count):
+assertion failed: (mono_array_length (bytes) >= (idx + count))
+
+Stracing it did not find any actual reads from /dev/null