mail-archives/mono-bugs/2003-August/006953.html

130 строки
5.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 47722][Wis] New - mcs crash with &quot;o as Q&quot; where o is unassigned
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="006952.html">
<LINK REL="Next" HREF="006954.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 47722][Wis] New - mcs crash with &quot;o as Q&quot; where o is unassigned
</H1>
<B>bugzilla-daemon@bugzilla.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com"
TITLE="[Mono-bugs] [Bug 47722][Wis] New - mcs crash with &quot;o as Q&quot; where o is unassigned">bugzilla-daemon@bugzilla.ximian.com
</A><BR>
<I>Tue, 19 Aug 2003 03:04:16 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="006952.html">[Mono-bugs] [Bug 47720][Wis] Changed - DateTime.Parse (RFC1123) does not handle timezone
</A></li>
<LI> Next message: <A HREF="006954.html">[Mono-bugs] [Bug 32336][Min] Changed - We are using callvirt on the closest method, rather than the defining method
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6953">[ date ]</a>
<a href="thread.html#6953">[ thread ]</a>
<a href="subject.html#6953">[ subject ]</a>
<a href="author.html#6953">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="mailto:vladimir@pobox.com.">vladimir@pobox.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=47722">http://bugzilla.ximian.com/show_bug.cgi?id=47722</A>
--- shadow/47722 2003-08-19 03:04:15.000000000 -0400
+++ shadow/47722.tmp.6012 2003-08-19 03:04:16.000000000 -0400
@@ -0,0 +1,66 @@
+Bug#: 47722
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Misc
+AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+ReportedBy: <A HREF="mailto:vladimir@pobox.com">vladimir@pobox.com</A>
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs crash with &quot;o as Q&quot; where o is unassigned
+
+mono/cs as of 08/19, including 0.26, causes a crash inside mcs on the
+following code:
+
+
+---- test.cs ----
+public class Driver {
+ public static void Main () {
+ object o;
+ System.String q = o as System.String;
+ }
+}
+----- end -----
+
+The (I think?) correct error is reported, but a crash follows:
+
<A HREF="mailto:+vladimir@river">+vladimir@river</A>[1038]% mcs crashTest.cs
+crashTest.cs(6) error CS0165: Use of unassigned local variable `o'
+Exception caught by the compiler while compiling:
+ Block that caused the problem begin at: crashTest.cs: (3)
+ Block being compiled: [crashTest.cs: (3),crashTest.cs:
+(7)]
+
+Unhandled Exception: System.NullReferenceException: A null value was found
+where an object instance was required
+in &lt;0x0004f&gt; 00 Mono.CSharp.As:DoResolve (Mono.CSharp.EmitContext)
+in &lt;0x000e1&gt; 00 Mono.CSharp.Expression:Resolve
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
+in &lt;0x00019&gt; 00 Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext)
+in &lt;0x000fc&gt; 00 Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext)
+in &lt;0x000e1&gt; 00 Mono.CSharp.Expression:Resolve
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
+in &lt;0x00019&gt; 00 Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext)
+in &lt;0x00022&gt; 00 Mono.CSharp.ExpressionStatement:ResolveStatement
+(Mono.CSharp.EmitContext)
+in &lt;0x0001d&gt; 00 Mono.CSharp.StatementExpression:Resolve
+(Mono.CSharp.EmitContext)
+in &lt;0x001ee&gt; 00 Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext)
+in &lt;0x000ed&gt; 00 Mono.CSharp.EmitContext:EmitTopBlock
+(Mono.CSharp.Block,Mono.CSharp.InternalParameters,Mono.CSharp.Location)
+in &lt;0x00277&gt; 00 Mono.CSharp.EmitContext:EmitTopBlock
+(Mono.CSharp.Block,Mono.CSharp.InternalParameters,Mono.CSharp.Location)
+in &lt;0x0044e&gt; 00 Mono.CSharp.MethodData:Emit
+(Mono.CSharp.TypeContainer,Mono.CSharp.Block,object)
+in &lt;0x00038&gt; 00 Mono.CSharp.Method:Emit (Mono.CSharp.TypeContainer)
+in &lt;0x00260&gt; 00 Mono.CSharp.TypeContainer:Emit ()
+in &lt;0x005c0&gt; 00 Mono.CSharp.RootContext:EmitCode ()
+in &lt;0x00838&gt; 00 Mono.CSharp.Driver:MainDriver (string[])
+in &lt;0x0001b&gt; 00 Mono.CSharp.Driver:Main (string[])
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="006952.html">[Mono-bugs] [Bug 47720][Wis] Changed - DateTime.Parse (RFC1123) does not handle timezone
</A></li>
<LI> Next message: <A HREF="006954.html">[Mono-bugs] [Bug 32336][Min] Changed - We are using callvirt on the closest method, rather than the defining method
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6953">[ date ]</a>
<a href="thread.html#6953">[ thread ]</a>
<a href="subject.html#6953">[ subject ]</a>
<a href="author.html#6953">[ author ]</a>
</LI>
</UL>
</body></html>