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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78623 --- shadow/78623 2006-06-13 11:58:57.000000000 -0400 +++ shadow/78623.tmp.12516 2006-06-13 11:58:57.000000000 -0400 @@ -0,0 +1,145 @@ +Bug#: 78623 +Product: Mono: Runtime +Version: 1.1 +OS: Debian Woody +OS Details: kernel: 2.6.12-1-386 on a i586 +Status: NEW +Resolution: +Severity: Unknown +Priority: Major +Component: JIT +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: execution of console hello world crashes if --optimize=all is used + +Description of Problem: +A console program that is running well with default optimization is +crashing when using --optimize=all with following output: + [EMAIL PROTECTED] mono --optimize=all md5.exe + +Unhandled Exception: System.TypeInitializationException: An exception was +thrown by the type initializer for System.Console ---> +System.Reflection.TargetInvocationException: Exception has been thrown by +the target of an invocation. ---> System.ExecutionEngineException: SIGILL +in <0x00020> System.Collections.Hashtable:.ctor (Int32 capacity, Single +loadFactor, IHashCodeProvider hcp, IComparer comparer) +in <0x0003a> I18N.Common.Manager:.ctor () +in <0x0003d> I18N.Common.Manager:get_PrimaryManager () +in <0x00000> <unknown method> +in (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke +(object,object[]) +in <0x0008f> System.Reflection.MonoMethod:Invoke (System.Object obj, +BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] +parameters, System.Globalization.CultureInfo culture)--- End of inner +exception stack trace --- + +in <0x00110> System.Reflection.MonoMethod:Invoke (System.Object obj, +BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] +parameters, System.Globalization.CultureInfo culture) +in <0x005c6> System.MonoType:InvokeMember (System.String name, BindingFlags +invokeAttr, System.Reflection.Binder binder, System.Object target, +System.Object[] args, System.Reflection.ParameterModifier[] modifiers, +System.Globalization.CultureInfo culture, System.String[] namedParameters) +in <0x001aa> System.Text.Encoding:InvokeI18N (System.String name, +System.Object[] args) +in <0x00124> System.Text.Encoding:GetEncoding (System.String name) +in <0x0006b> System.Text.Encoding:get_Default () +in <0x00076> System.Console:.cctor ()--- End of inner exception stack trace --- + +in <0x00000> <unknown method> +in <0x001b2> Md5MonoOptimized.Program:Main (System.String[] args) + +Steps to reproduce the problem: +1. use this machine +2. compile a hello world like this: +using System; +class Hello { + static void Main() { + System.Console.WriteLine("Hello World"); + } +} +3. use --optimize=all + +Actual Results: +Program crashes + +Expected Results: +Hello world + +How often does this happen? +always + +Additional Information: +Steps are reproducable using version (selfcompiled): +Mono JIT compiler version 1.1.15.20060610, (C) 2002-2006 Novell, Inc and +Contributors. www.mono-project.com + TLS: __thread + GC: Included Boehm (with typed GC) + SIGSEGV: normal + Disabled: none + +and version (standard debian testing): +Mono JIT compiler version 1.1.13.6, (C) 2002-2005 Novell, Inc and +Contributors. www.mono-project.com + TLS: normal + GC: Included Boehm (with typed GC) + SIGSEGV : normal + + +This only happens on my old linux machine, with these specifications: + [EMAIL PROTECTED] cat /proc/cpuinfo +processor : 0 +vendor_id : GenuineIntel +cpu family : 5 +model : 4 +model name : Pentium MMX +stepping : 3 +cpu MHz : 227.653 +fdiv_bug : no +hlt_bug : no +f00f_bug : yes +coma_bug : no +fpu : yes +fpu_exception : yes +cpuid level : 1 +wp : yes +flags : fpu vme de pse tsc msr mce cx8 mmx +bogomips : 450.56 + [EMAIL PROTECTED] cat /proc/version +Linux version 2.6.12-1-386 ([EMAIL PROTECTED]) (gcc version +4.0.2 20050917 (prerelease) (Debian 4.0.1-8)) #1 Tue Sep 27 12:41:08 JST 2005 + +------- Additional Comments From [EMAIL PROTECTED] 2006-06-12 08:50 ------- +I can't repro this neither with HEAD, neither with the debian package. + + +------- Additional Comments From [EMAIL PROTECTED] 2006-06-12 18:33 ------- +Sorry, I did some more testing and I stumbled across this line in the +trace: + +in <0x0003a> I18N.Common.Manager:.ctor () +in <0x0003d> I18N.Common.Manager:get_PrimaryManager () +in <0x00000> <unknown method> + +So I figured it was some internationalization problem. + +And I found out this machine has following settings: [EMAIL PROTECTED] +LANGUAGE=en_GB:en:C:de_DE:de + +changing them back to =C fixes this problem! But non the less, it is +weird that the default optimization works without a problem with the +above LANG settings and the all optimization fails. + +------- Additional Comments From [EMAIL PROTECTED] 2006-06-13 11:58 ------- +I still couldn't repro this, could you try simplifying your LANG +and LANGUAGE settings to simpler ones, like LANGUAGE is not set, LANG +is de_DE etc ? + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
