зеркало из https://github.com/mono/mail-archives.git
130 строки
5.3 KiB
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 "o as Q" 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 "o as Q" 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 "o as Q" 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 "o as Q" 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 <0x0004f> 00 Mono.CSharp.As:DoResolve (Mono.CSharp.EmitContext)
|
|
+in <0x000e1> 00 Mono.CSharp.Expression:Resolve
|
|
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
|
|
+in <0x00019> 00 Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext)
|
|
+in <0x000fc> 00 Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext)
|
|
+in <0x000e1> 00 Mono.CSharp.Expression:Resolve
|
|
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
|
|
+in <0x00019> 00 Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext)
|
|
+in <0x00022> 00 Mono.CSharp.ExpressionStatement:ResolveStatement
|
|
+(Mono.CSharp.EmitContext)
|
|
+in <0x0001d> 00 Mono.CSharp.StatementExpression:Resolve
|
|
+(Mono.CSharp.EmitContext)
|
|
+in <0x001ee> 00 Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext)
|
|
+in <0x000ed> 00 Mono.CSharp.EmitContext:EmitTopBlock
|
|
+(Mono.CSharp.Block,Mono.CSharp.InternalParameters,Mono.CSharp.Location)
|
|
+in <0x00277> 00 Mono.CSharp.EmitContext:EmitTopBlock
|
|
+(Mono.CSharp.Block,Mono.CSharp.InternalParameters,Mono.CSharp.Location)
|
|
+in <0x0044e> 00 Mono.CSharp.MethodData:Emit
|
|
+(Mono.CSharp.TypeContainer,Mono.CSharp.Block,object)
|
|
+in <0x00038> 00 Mono.CSharp.Method:Emit (Mono.CSharp.TypeContainer)
|
|
+in <0x00260> 00 Mono.CSharp.TypeContainer:Emit ()
|
|
+in <0x005c0> 00 Mono.CSharp.RootContext:EmitCode ()
|
|
+in <0x00838> 00 Mono.CSharp.Driver:MainDriver (string[])
|
|
+in <0x0001b> 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>
|