Bugzilla – Bug 314853
[REGRESSION] mono -O=all --aot mscorlib.dll fails
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by bmaurer@users.sf.net 2004-05-25 21:43:19 MST ---- [benm@Ben tests]$ mono -O=all --aot /devel/install/lib/mscorlib.dll Mono Ahead of Time compiler - compiling assembly /devel/install/lib/mscorlib.dll ** ERROR **: file mini.c: line 4322 (mono_method_to_ir): assertion failed: (costs > 0) aborting... Aborted ---- Additional Comments From bmaurer@users.sf.net 2004-05-25 22:17:42 MST ---- mono -v -v -v -v -O=all --compile Microsoft.Win32.RegistryKey:.ctor /devel/install/lib/mscorlib.dll gets thsi for me too I get converting method Microsoft.Win32.RegistryKey:.ctor (Microsoft.Win32.RegistryHive,string) creating vars creating locals locals done method to IR Microsoft.Win32.RegistryKey:.ctor (Microsoft.Win32.RegistryHive,string) converting (in B2: stack: 0) IL_0000: ldarg.0 converting (in B2: stack: 1) IL_0001: ldsfld 0x040007d6 converting (in B2: stack: 2) IL_0006: stfld 0x040000a6 converting (in B2: stack: 0) IL_000b: ldarg.0 converting (in B2: stack: 1) IL_000c: call 0x06002aa5 converting (in B2: stack: 2) IL_0011: stfld 0x040000a7 INLINE START 0x81254d8 Microsoft.Win32.RegistryKey:.ctor (Microsoft.Win32.RegistryHive,string) -> (wrapper stfld) System.Object:__stfld_wrapper_System.Object (object,intptr,intptr,intptr,object) method to IR (wrapper stfld) System.Object:__stfld_wrapper_System.Object (object,intptr,intptr,intptr,object) converting (in B6: stack: 0) IL_0000: ldarg.0 converting (in B6: stack: 1) IL_0001: mono_objaddr converting (in B6: stack: 1) IL_0003: ldind.i converting (in B6: stack: 1) IL_0004: ldc.i4.0 converting (in B6: stack: 2) IL_0005: add converting (in B6: stack: 1) IL_0006: ldind.i converting (in B6: stack: 1) IL_0007: mono_ldptr1 converting (in B6: stack: 2) IL_000d: bne.un IL_0042 converting (in B9: stack: 0) IL_0012: ldarg.0 converting (in B9: stack: 1) IL_0013: ldarg.1 converting (in B9: stack: 2) IL_0014: ldarg.2 converting (in B9: stack: 3) IL_0015: ldarg.s 4 converting (in B9: stack: 4) IL_0017: mono_save_lmf converting (in B9: stack: 4) IL_0019: mono_ldptr2 converting (in B9: stack: 5) IL_001f: calli 0x00000003 converting (in B9: stack: 0) IL_0024: mono_restore_lmf converting (in B9: stack: 0) IL_0026: mono_ldptr4 converting (in B9: stack: 1) IL_002c: ldind.i4 converting (in B9: stack: 1) IL_002d: brfalse IL_0041 converting (in B10: stack: 0) IL_0032: mono_save_lmf converting (in B10: stack: 0) IL_0034: mono_ldptr5 converting (in B10: stack: 1) IL_003a: calli 0x00000006 converting (in B10: stack: 0) IL_003f: mono_restore_lmf converting (in B8: stack: 0) IL_0041: ret converting (in B7: stack: 0) IL_0042: ldarg.0 converting (in B7: stack: 1) IL_0043: mono_objaddr converting (in B7: stack: 1) IL_0045: ldarg.3 converting (in B7: stack: 2) IL_0046: add converting (in B7: stack: 1) IL_0047: ldarg.s 4 converting (in B7: stack: 2) IL_0049: stind.i converting (in B7: stack: 0) IL_004a: ret INLINE ABORTED (wrapper stfld) System.Object:__stfld_wrapper_System.Object (object,intptr,intptr,intptr,object) ** ERROR **: file mini.c: line 4322 (mono_method_to_ir): assertion failed: (costs > 0) aborting... Aborted Miguel is having trouble repro'ing ---- Additional Comments From vargaz@freemail.hu 2004-05-26 06:42:24 MST ---- This should already be fixed in CVS. You might be using an old runtime. There is no assert at line 4322 in mini.c. ---- Additional Comments From lupus@ximian.com 2004-05-26 09:17:54 MST ---- Closed as invalid. Unknown operating system unknown. Setting to default OS "Other".