mail-archives/mono-bugs/2009-November/095198.html

187 строки
6.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 558230] New: [verifier] SIGSEGV in mono_class_is_open_constructed_type on a bad assembly
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20558230%5D%20New%3A%20%5Bverifier%5D%20SIGSEGV%20in%0A%20mono_class_is_open_constructed_type%20on%20a%20bad%20assembly&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="095194.html">
<LINK REL="Next" HREF="095231.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 558230] New: [verifier] SIGSEGV in mono_class_is_open_constructed_type on a bad assembly</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20558230%5D%20New%3A%20%5Bverifier%5D%20SIGSEGV%20in%0A%20mono_class_is_open_constructed_type%20on%20a%20bad%20assembly&In-Reply-To="
TITLE="[Mono-bugs] [Bug 558230] New: [verifier] SIGSEGV in mono_class_is_open_constructed_type on a bad assembly">bugzilla_noreply at novell.com
</A><BR>
<I>Tue Nov 24 20:51:55 EST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="095194.html">[Mono-bugs] [Bug 507463] Resizing an image generates a black image instead. Works fine in .NET
</A></li>
<LI>Next message: <A HREF="095231.html">[Mono-bugs] [Bug 558230] [verifier] SIGSEGV in mono_class_is_open_constructed_type on a bad assembly
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#95198">[ date ]</a>
<a href="thread.html#95198">[ thread ]</a>
<a href="subject.html#95198">[ subject ]</a>
<a href="author.html#95198">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="http://bugzilla.novell.com/show_bug.cgi?id=558230">http://bugzilla.novell.com/show_bug.cgi?id=558230</A>
<A HREF="http://bugzilla.novell.com/show_bug.cgi?id=558230#c0">http://bugzilla.novell.com/show_bug.cgi?id=558230#c0</A>
Summary: [verifier] SIGSEGV in
mono_class_is_open_constructed_type on a bad assembly
Classification: Mono
Product: Mono: Runtime
Version: 2.6.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">rkumpera at novell.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">spouliot at novell.com</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
Found By: ---
Blocker: ---
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fd1a07c1710 (LWP 20431)]
0x00000000004135d7 in mono_class_is_open_constructed_type (t=0x0) at
class.c:478
478 switch (t-&gt;type) {
(gdb) bt
#0 0x00000000004135d7 in mono_class_is_open_constructed_type (t=0x0) at
class.c:478
#1 0x000000000044a1a5 in mono_metadata_get_generic_inst (type_argc=1,
type_argv=0x863530) at metadata.c:2393
#2 0x000000000044b810 in mono_metadata_inflate_generic_inst (ginst=0x863620,
context=0x87f268) at metadata.c:2507
#3 0x000000000041b7cd in inflate_generic_type (image=0x0, type=0x87f8d0,
context=0x87f268, error=&lt;value optimized out&gt;) at class.c:571
#4 0x000000000041c96a in mono_type_retrieve_from_typespec (image=&lt;value
optimized out&gt;, type_spec=&lt;value optimized out&gt;, context=0x87f268,
did_inflate=0x7fffa87dfff4) at class.c:5095
#5 0x000000000041cc84 in mono_class_get_full (image=0x85da80,
type_token=8795440, context=0x50da40) at class.c:5117
#6 0x000000000042f552 in mono_field_from_token (image=0x85da80,
token=167772270, retklass=0x7fffa87e00a8, context=0x87f268) at loader.c:447
#7 0x000000000049488f in verifier_load_field (ctx=0x7fffa87e0310,
token=167772270, out_klass=0x7fffa87e00f0, opcode=0x523f3b &quot;stfld&quot;) at
verify.c:826
#8 0x000000000049492e in check_is_valid_type_for_field_ops (ctx=0x0,
token=8795440, obj=0x862bc0, ret_field=0x7fffa87e0128,
opcode=0x2525252525252525 &lt;Address 0x2525252525252525 out of bounds&gt;)
at verify.c:3542
#9 0x0000000000494fd3 in do_store_field (ctx=0x7fffa87e0310, token=167772270)
at verify.c:3621
#10 0x000000000049a5fd in mono_method_verify (method=&lt;value optimized out&gt;,
level=&lt;value optimized out&gt;) at verify.c:5525
#11 0x000000000040daed in main (argc=8430352, argv=&lt;value optimized out&gt;) at
pedump.c:374
The loop calling mono_class_inflate_generic_type in
mono_metadata_inflate_generic_inst (#2) does not check the result, which can be
NULL on error, and then goes on to call mono_metadata_get_generic_inst (#1)
with a vector that contains NULL values (which the code does not handle).
The solution seems to change the call to use
mono_class_inflate_generic_type_checked (easy) then deal with/propagate the
error upward (less fun).
--
Configure bugmail: <A HREF="http://bugzilla.novell.com/userprefs.cgi?tab=email">http://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="095194.html">[Mono-bugs] [Bug 507463] Resizing an image generates a black image instead. Works fine in .NET
</A></li>
<LI>Next message: <A HREF="095231.html">[Mono-bugs] [Bug 558230] [verifier] SIGSEGV in mono_class_is_open_constructed_type on a bad assembly
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#95198">[ date ]</a>
<a href="thread.html#95198">[ thread ]</a>
<a href="subject.html#95198">[ subject ]</a>
<a href="author.html#95198">[ 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>