зеркало из https://github.com/mono/mail-archives.git
157 строки
5.4 KiB
HTML
157 строки
5.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 77442][Maj] New - [GMCS] call to a generic method
|
|
on null interface field causes SIGSEGV
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2077442%5D%5BMaj%5D%20New%20-%20%5BGMCS%5D%20call%20to%20a%20generic%20method%0A%09on%20null%20interface%20field%20causes%20SIGSEGV&In-Reply-To=bug-77442%40chernobyl.ximian.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="038870.html">
|
|
<LINK REL="Next" HREF="038872.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 77442][Maj] New - [GMCS] call to a generic method
|
|
on null interface field causes SIGSEGV</H1>
|
|
<B>bugzilla-daemon at bugzilla.ximian.com</B>
|
|
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2077442%5D%5BMaj%5D%20New%20-%20%5BGMCS%5D%20call%20to%20a%20generic%20method%0A%09on%20null%20interface%20field%20causes%20SIGSEGV&In-Reply-To=bug-77442%40chernobyl.ximian.com"
|
|
TITLE="[Mono-bugs] [Bug 77442][Maj] New - [GMCS] call to a generic method
|
|
on null interface field causes SIGSEGV">bugzilla-daemon at bugzilla.ximian.com
|
|
</A><BR>
|
|
<I>Wed Feb 1 23:29:33 EST 2006</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="038870.html">[Mono-bugs] [Bug 77440][Nor] Changed - Anonymous methods are hosted
|
|
on the wrong ScopeInfo
|
|
</A></li>
|
|
<LI>Next message: <A HREF="038872.html">[Mono-bugs] [Bug 77234][Maj] Changed - nunit-gui: nunit-gui 2.2.5
|
|
crashes on startup
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#38871">[ date ]</a>
|
|
<a href="thread.html#38871">[ thread ]</a>
|
|
<a href="subject.html#38871">[ subject ]</a>
|
|
<a href="author.html#38871">[ 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="http://lists.ximian.com/mailman/listinfo/mono-bugs">atsushi at ximian.com.</A>
|
|
|
|
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=77442">http://bugzilla.ximian.com/show_bug.cgi?id=77442</A>
|
|
|
|
--- shadow/77442 2006-02-01 23:29:33.000000000 -0500
|
|
+++ shadow/77442.tmp.15583 2006-02-01 23:29:33.000000000 -0500
|
|
@@ -0,0 +1,83 @@
|
|
+Bug#: 77442
|
|
+Product: Mono: Runtime
|
|
+Version: 1.1
|
|
+OS:
|
|
+OS Details:
|
|
+Status: NEW
|
|
+Resolution:
|
|
+Severity:
|
|
+Priority: Major
|
|
+Component: misc
|
|
+AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">martin at ximian.com</A>
|
|
+ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">atsushi at ximian.com</A>
|
|
+QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
|
|
+TargetMilestone: ---
|
|
+URL:
|
|
+Cc:
|
|
+Summary: [GMCS] call to a generic method on null interface field causes SIGSEGV
|
|
+
|
|
+The runtime causes SIGSEGV when call to a generic method on a field
|
|
+happens, where the type of the field is an interface.
|
|
+
|
|
+It should report NullReferenceException.
|
|
+
|
|
+---- repro ----
|
|
+using System;
|
|
+
|
|
+interface ITest
|
|
+{
|
|
+ void Foo<T> ();
|
|
+ void Bar ();
|
|
+}
|
|
+
|
|
+class Test : ITest
|
|
+{
|
|
+ public void Foo<T> () {}
|
|
+
|
|
+ public void Bar () {}
|
|
+
|
|
+ //Test test; // this is OK
|
|
+ ITest test;
|
|
+
|
|
+ public static void Main ()
|
|
+ {
|
|
+ //new Test ().test.Bar (); // this is OK
|
|
+ new Test ().test.Foo<int> ();
|
|
+ }
|
|
+}
|
|
+
|
|
+
|
|
+Actual Results:
|
|
+
|
|
+=================================================================
|
|
+Got a SIGSEGV while executing native code. This usually indicates
|
|
+a fatal error in the mono runtime or one of the native libraries
|
|
+used by your application.
|
|
+=================================================================
|
|
+
|
|
+Stacktrace:
|
|
+
|
|
+in (wrapper managed-to-native)
|
|
+System.Object:__icall_wrapper_compile_generic_met
|
|
+hod (object,intptr,intptr) <0x4>
|
|
+in (wrapper managed-to-native)
|
|
+System.Object:__icall_wrapper_compile_generic_met
|
|
+hod (object,intptr,intptr) <0x8d>
|
|
+in Test:Main () <0x2d>
|
|
+in (wrapper runtime-invoke) System.Object:runtime_invoke_void
|
|
+(object,intptr,int
|
|
+ptr,intptr) <0x6df149e7>
|
|
+
|
|
+Expected Results:
|
|
+
|
|
+NullReferenceException in managed area should happen.
|
|
+
|
|
+How often does this happen?
|
|
+
|
|
+consistently.
|
|
+
|
|
+Additional Information:
|
|
+
|
|
+This is a runtime problem (as the same code normally result in NRE in
|
|
+another runtime, and the same binary from another compiler result in the
|
|
+same on mono).
|
|
</PRE>
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="038870.html">[Mono-bugs] [Bug 77440][Nor] Changed - Anonymous methods are hosted
|
|
on the wrong ScopeInfo
|
|
</A></li>
|
|
<LI>Next message: <A HREF="038872.html">[Mono-bugs] [Bug 77234][Maj] Changed - nunit-gui: nunit-gui 2.2.5
|
|
crashes on startup
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#38871">[ date ]</a>
|
|
<a href="thread.html#38871">[ thread ]</a>
|
|
<a href="subject.html#38871">[ subject ]</a>
|
|
<a href="author.html#38871">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
|
|
mailing list</a><br>
|
|
</body></html>
|