[Mono-bugs] [Bug 33151][Wis] Changed - MCS creates bad MSIL for if statement
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
4 Nov 2002 09:26:55 -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 david_stephenson@hp.com.
http://bugzilla.ximian.com/show_bug.cgi?id=33151
--- shadow/33151 Fri Nov 1 16:12:48 2002
+++ shadow/33151.tmp.5719 Mon Nov 4 04:26:55 2002
@@ -1,12 +1,12 @@
Bug#: 33151
Product: Mono/MCS
Version: unspecified
OS: unknown
OS Details:
-Status: NEEDINFO
+Status: REOPENED
Resolution:
Severity: Unknown
Priority: Wishlist
Component: Misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: david_stephenson@hp.com
@@ -60,6 +60,53 @@
I compiled your program with mcs and csc, and they both generate the
same exception. It is a bug in your code most likely, the state of
things changes inside the first if test.
Ran in on both mono and .net and get the same behavior. Your code
seems to be the buggy one.
+
+------- Additional Comments From david_stephenson@hp.com 2002-11-04 04:26 -------
+Thanks Miguel,
+when I saw, your comment I started to doubt my own sanity!
+you need to pass a single arguement to the program which is a pass to
+a file which is bigger than 2050 characters long. Otherwise you get
+the same error for both mcs and csc, which is I guess what your saw..
+
+I see
+
+C:\Projects\STAX>mcs monobug2.cs
+
+You can run mcs with 'monomcs' on .NET, instead of mono, too.
+
+Compilation succeeded
+
+C:\Projects\STAX>mono monobug2.exe somelargefile.txt
+
+Unhandled Exception: System.SystemException: internal Error this
+should never happen
+in <0x00097> 00 test.aBug:getNextChar ()
+in <0x001c6> 00 test.testMain:Main (string[])
+
+C:\Projects\STAX>C:\WINNT\Microsoft.NET\Framework\v1.0.3705
+\csc.exe /OUT:monobug2cbyCSC.exe monobug2.cs
+Microsoft (R) Visual C# .NET Compiler version 7.00.9466
+for Microsoft (R) .NET Framework version 1.0.3705
+Copyright (C) Microsoft Corporation 2001. All rights reserved.
+
+
+C:\Projects\STAX>monobug2cbyCSC.exe somelargefile.txt
+
+C:\Projects\STAX>mono monobug2cbyCSC.exe somelargefile.txt
+C:\Projects\STAX>
+
+As you see when the prog is compiled by mcs you get a different
+result from CSC.exe!
+
+I have attached a new version of the bug prog (same as before but
+complains if you don't supply a file arg over 2050 bytes.)
+
+[sanity check passed!]
+
+
+
+
+