mail-archives/mono-bugs/2009-March/086663.html

160 строки
4.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 481559] New: uninitialized local causes failed assertion in mono_local_regalloc
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20481559%5D%20New%3A%20uninitialized%20local%20causes%20failed%0A%20assertion%20in%20mono_local_regalloc&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="086662.html">
<LINK REL="Next" HREF="086727.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 481559] New: uninitialized local causes failed assertion in mono_local_regalloc</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20481559%5D%20New%3A%20uninitialized%20local%20causes%20failed%0A%20assertion%20in%20mono_local_regalloc&In-Reply-To="
TITLE="[Mono-bugs] [Bug 481559] New: uninitialized local causes failed assertion in mono_local_regalloc">bugzilla_noreply at novell.com
</A><BR>
<I>Tue Mar 3 12:15:57 EST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="086662.html">[Mono-bugs] [Bug 481526] New: Action&lt;ClassInProject&gt;[][] not creatable
</A></li>
<LI>Next message: <A HREF="086727.html">[Mono-bugs] [Bug 481559] uninitialized local causes failed assertion in mono_local_regalloc
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#86663">[ date ]</a>
<a href="thread.html#86663">[ thread ]</a>
<a href="subject.html#86663">[ subject ]</a>
<a href="author.html#86663">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=481559">https://bugzilla.novell.com/show_bug.cgi?id=481559</A>
Summary: uninitialized local causes failed assertion in
mono_local_regalloc
Classification: Mono
Product: Mono: Compilers
Version: 2.4.x
Platform: x86
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Other.
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">bugzilla.novell at rohou.it</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
Found By: ---
Created an attachment (id=276792)
--&gt; (<A HREF="https://bugzilla.novell.com/attachment.cgi?id=276792">https://bugzilla.novell.com/attachment.cgi?id=276792</A>)
binary that reproduces the problem when run
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.6)
Gecko/2009011913 Firefox/3.0.6
When generating code from C, I sometimes have uninitialized locals. When such a
value is returned by the function, Mono crashed with the following message:
** ERROR **: file mini-codegen.c: line 1032 (mono_local_regalloc): assertion
fai
led: (reginfo [ins-&gt;sreg1].born_in &gt; 0)
Obviously the code is not verifiable, still it should not kill the register
allocator.
This case originally occured in C code that looked like:
int c;
int main()
{
if (c)
exit(1); // C compiler optimized out initialization of return value
return 0;
}
Reproducible: Always
Steps to Reproduce:
1. Try the following piece of code, or directly the attached binary.
module '&lt;Module&gt;'
method public static int32 'main' () cil managed
{
.entrypoint
.locals (int32 'tmp') // not initialized
.maxstack 1
ldloc 'tmp'
ret
}
Actual Results:
Assertion failed.
Expected Results:
No assertion.
--
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="086662.html">[Mono-bugs] [Bug 481526] New: Action&lt;ClassInProject&gt;[][] not creatable
</A></li>
<LI>Next message: <A HREF="086727.html">[Mono-bugs] [Bug 481559] uninitialized local causes failed assertion in mono_local_regalloc
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#86663">[ date ]</a>
<a href="thread.html#86663">[ thread ]</a>
<a href="subject.html#86663">[ subject ]</a>
<a href="author.html#86663">[ 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>