[Mono-devel-list] Sample crashes

Richard Torkar richard.torkar at htu.se
Tue May 6 08:00:49 EDT 2003


(CC to mono-devel since it seems to be a mini thing?)
Since it's close to release time I thought I'd mention this.

This is with latest mono/mcs/gtk# from CVS:

[torkar@~/install/gtk-sharp/sample]$ mono gnome-hello-world.exe
                                                                                   ** (gnome-hello-world:25903): WARNING **: wrong maximal instruction length of instruction call (exptected 8, got 11)
                                                                                  ** ERROR **: file mini-x86.c: line 2828 (mono_arch_output_basic_block): should not be reached
aborting...

No idea why it reaches mono_arch_output_basic_block. Attached is two
minor patches that fixes the above typos, but not the actual problem...

I thought it might be a good idea to have the samples working now :)


/Richard
-- 
Ph.D. Student
Dept. of Informatics and Mathematics
HTU
-------------- next part --------------
--- mini-ppc.c.orig	2003-05-06 13:48:11.000000000 +0200
+++ mini-ppc.c	2003-05-06 13:49:28.000000000 +0200
@@ -2531,7 +2531,7 @@
 		}
 
 		if ((cfg->opt & MONO_OPT_BRANCH) && ((code - cfg->native_code - offset) > max_len)) {
-			g_warning ("wrong maximal instruction length of instruction %s (exptected %d, got %d)",
+			g_warning ("wrong maximal instruction length of instruction %s (expected %d, got %d)",
 				   mono_inst_name (ins->opcode), max_len, code - cfg->native_code - offset);
 			g_assert_not_reached ();
 		}
-------------- next part --------------
--- mini-x86.c.orig	2003-05-06 13:53:24.000000000 +0200
+++ mini-x86.c	2003-05-06 13:53:35.000000000 +0200
@@ -2823,7 +2823,7 @@
 		}
 
 		if ((code - cfg->native_code - offset) > max_len) {
-			g_warning ("wrong maximal instruction length of instruction %s (exptected %d, got %d)",
+			g_warning ("wrong maximal instruction length of instruction %s (expected %d, got %d)",
 				   mono_inst_name (ins->opcode), max_len, code - cfg->native_code - offset);
 			g_assert_not_reached ();
 		}


More information about the Mono-devel-list mailing list