[Mono-bugs] [Bug 58785][Nor] New - Mono runtime aborts with failed assertion (costs > 0)
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 21 May 2004 02:16:17 -0400 (EDT)
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 mathpup@mylinuxisp.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58785
--- shadow/58785 2004-05-21 02:16:17.000000000 -0400
+++ shadow/58785.tmp.28424 2004-05-21 02:16:17.000000000 -0400
@@ -0,0 +1,96 @@
+Bug#: 58785
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mathpup@mylinuxisp.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Mono runtime aborts with failed assertion (costs > 0)
+
+Description of Problem:
+
+When running with full optimization enabled (-O=all), the mono runtime
+aborts with
+
+** ERROR **: file mini.c: line 4322 (mono_method_to_ir): assertion failed:
+(costs > 0)
+aborting...
+
+when running any non-trivial program, such as the one below:
+
+public class Testing
+{
+ public static void Main()
+ {
+ System.Console.WriteLine("HI");
+ }
+}
+
+The problem does not occur without -O=all.
+
+Steps to reproduce the problem:
+1. mcs test.cs
+2. mono -O=all test.exe
+
+Actual Results:
+
+See above
+
+
+Expected Results:
+
+"HI" printed.
+
+How often does this happen?
+
+Always
+
+Additional Information:
+
+Backtrace from gdb:
+
+Program received signal SIGABRT, Aborted.
+[Switching to Thread 32771 (LWP 437)]
+0x40c96b71 in kill () from /lib/i686/libc.so.6
+(gdb) bt
+#0 0x40c96b71 in kill () from /lib/i686/libc.so.6
+#1 0x40bedcf1 in pthread_kill () from /lib/i686/libpthread.so.0
+#2 0x40bee00b in raise () from /lib/i686/libpthread.so.0
+#3 0x40c96904 in raise () from /lib/i686/libc.so.6
+#4 0x40c97e8c in abort () from /lib/i686/libc.so.6
+#5 0x401ec560 in g_logv () from /opt/gnome/lib/libglib-2.0.so.0
+#6 0x401ec592 in g_log () from /opt/gnome/lib/libglib-2.0.so.0
+#7 0x4005a7fa in mono_method_to_ir (cfg=0x813d870, method=0x813b910,
+ start_bblock=0x8180f98, end_bblock=0x8181030, locals_offset=1,
+return_var=0x0,
+ dont_inline=0x8180600, inline_args=0x0, inline_offset=0,
+is_virtual_call=0)
+ at mini.c:4959
+#8 0x40061348 in mini_method_compile (method=0x813b910, opts=0,
+domain=0x0,
+ run_cctors=0, parts=0) at mini.c:7723
+#9 0x40061d31 in mono_jit_compile_method_inner (method=0x813b910,
+ target_domain=0x808eed8) at mini.c:8019
+#10 0x40062027 in mono_jit_compile_method (method=0x0) at mini.c:8096
+#11 0x400a94a4 in mono_compile_method (method=0x0) at object.c:288
+#12 0x40097eb2 in x86_magic_trampoline (eax=1094463664, ecx=1075391552,
+edx=135510288,
+ esi=135273928, edi=0, ebx=134847440,
+ code=0x413c30d4
+"\203Ä\004\213Ã\205Àu(h¸×\005\bèÑáÿÿ\203Ä\004\213øh\200Þ\020\b\213ÇP\2038",
+m=0x813b910) at tramp-x86.c:97
+#13 0x080cc415 in ?? ()
+#14 0x413c30b0 in ?? ()
+#15 0x40192c40 in type_initialization_section ()
+from /usr/local/lib/libmono.so.0
+#16 0x0813b910 in ?? ()
+#17 0x08101dc8 in ?? ()