https://bugzilla.novell.com/show_bug.cgi?id=648063
https://bugzilla.novell.com/show_bug.cgi?id=648063#c0 Summary: Each compiled application throws TypeInitializationException and SIGILL!!! Classification: Mono Product: Mono: Runtime Version: 2.8.x Platform: i686 OS/Version: Linux Status: NEW Severity: Critical Priority: P5 - None Component: generics AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.62 Safari/534.3 Since Mono 2.8 all mono applications fail at startup showing TypeInitializationException (also xbuild). Reproducible: Always Steps to Reproduce: 1.Upgrade from mono 2.6.x to mono 2.8 2.Run xbuil (with no args) Actual Results: $ mono --debug --trace=program /usr/lib/mono/4.0/xbuild.exe [0xb76e16f0: 0,00000 0] ENTER: (wrapper runtime-invoke) <Module>:runtime_invoke_void_object (object,intptr,intptr,intptr)((nil), 0xbfaa1aec, (nil), 0xb6b2fcd8, ) [0xb76e16f0: 0,00742 1] ENTER: Mono.XBuild.CommandLine.MainClass:Main (string[])(0x2de40, ) [0xb76e16f0: 0,01077 2] ENTER: Mono.XBuild.CommandLine.MainClass:.ctor ()(this:0x46fa0[Mono.XBuild.CommandLine.MainClass xbuild.exe], ) [0xb76e16f0: 0,03259 3] ENTER: Mono.XBuild.CommandLine.Parameters:.ctor ()(this:0x53fc0[Mono.XBuild.CommandLine.Parameters xbuild.exe], ) [0xb76e16f0:] EXCEPTION handling: System.ExecutionEngineException: SIGILL [0xb76e16f0:] EXCEPTION handling: System.TypeInitializationException: An exception was thrown by the type initializer for System.StringComparer Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.StringComparer ---> System.ExecutionEngineException: SIGILL at System.Collections.Hashtable..ctor (Int32 capacity, Single loadFactor, IHashCodeProvider hcp, IComparer comparer) [0x0008b] in /home/ise/svn-packages/mono/trunk/src/mono-2.8/mcs/class/corlib/System.Collections/Hashtable.cs:160 at System.Collections.Hashtable..ctor (Int32 capacity, Single loadFactor) [0x00000] in <filename unknown>:0 at System.Collections.Hashtable..ctor () [0x00000] in <filename unknown>:0 at System.Globalization.CompareInfo..ctor (System.Globalization.CultureInfo ci) [0x00032] in /home/ise/svn-packages/mono/trunk/src/mono-2.8/mcs/class/corlib/System.Globalization/CompareInfo.cs:144 at System.Globalization.CultureInfo.get_CompareInfo () [0x00033] in /home/ise/svn-packages/mono/trunk/src/mono-2.8/mcs/class/corlib/System.Globalization/CultureInfo.cs:467 at System.CultureAwareComparer..ctor (System.Globalization.CultureInfo ci, Boolean ignore_case) [0x00006] in /home/ise/svn-packages/mono/trunk/src/mono-2.8/mcs/class/corlib/System/StringComparer.cs:153 at System.StringComparer..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at Microsoft.Build.BuildEngine.BuildPropertyGroup..ctor (System.Xml.XmlElement xmlElement, Microsoft.Build.BuildEngine.Project project, Microsoft.Build.BuildEngine.ImportedProject importedProject, Boolean readOnly) [0x000b9] in /home/ise/svn-packages/mono/trunk/src/mono-2.8/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildPropertyGroup.cs:73 at Microsoft.Build.BuildEngine.BuildPropertyGroup..ctor () [0x00000] in <filename unknown>:0 at Mono.XBuild.CommandLine.Parameters..ctor () [0x0003f] in /home/ise/svn-packages/mono/trunk/src/mono-2.8/mcs/tools/xbuild/Parameters.cs:72 at Mono.XBuild.CommandLine.MainClass..ctor () [0x0001e] in /home/ise/svn-packages/mono/trunk/src/mono-2.8/mcs/tools/xbuild/Main.cs:66 at Mono.XBuild.CommandLine.MainClass.Main (System.String[] args) [0x00000] in /home/ise/svn-packages/mono/trunk/src/mono-2.8/mcs/tools/xbuild/Main.cs:57 Expected Results: (From anoher i686 machine) mono --debug --trace=program /usr/lib/mono/4.0/xbuild.exe [0xb76816f0: 0,0000 0] ENTER: (wrapper runtime-invoke) <Module>:runtime_invoke_void_object (object,intptr,intptr,intptr)((nil), 0xbfb2d74c, (nil), 0xb62cdcd8, ) [0xb76816f0: 0,00834 1] ENTER: Mono.XBuild.CommandLine.MainClass:Main (string[])(0x2de40, ) [0xb76816f0: 0,01125 2] ENTER: Mono.XBuild.CommandLine.MainClass:.ctor ()(this:0x46fa0[Mono.XBuild.CommandLine.MainClass xbuild.exe], ) [0xb76816f0: 0,03285 3] ENTER: Mono.XBuild.CommandLine.Parameters:.ctor ()(this:0x53fc0[Mono.XBuild.CommandLine.Parameters xbuild.exe], ) [0xb76816f0: 0,05653 3] LEAVE: Mono.XBuild.CommandLine.Parameters:.ctor () [0xb76816f0: 0,05662 2] LEAVE: Mono.XBuild.CommandLine.MainClass:.ctor () [0xb76816f0: 0,06631 2] ENTER: Mono.XBuild.CommandLine.MainClass:Execute ()(this:0x46fa0[Mono.XBuild.CommandLine.MainClass xbuild.exe], ) [0xb76816f0: 0,07170 3] ENTER: Mono.XBuild.CommandLine.Parameters:ParseArguments (string[])(this:0x53fc0[Mono.XBuild.CommandLine.Parameters xbuild.exe], 0x2de40, ) [0xb76816f0: 0,07387 4] ENTER: Mono.XBuild.CommandLine.Parameters:LoadResponseFile (string)(this:0x53fc0[Mono.XBuild.CommandLine.Parameters xbuild.exe], [STRING:0x51be0:/usr/lib/mono/4.0/xbuild.rsp], ) [0xb76816f0: 0,08097 4] LEAVE: Mono.XBuild.CommandLine.Parameters:LoadResponseFile (string) [0xb76816f0: 0,08315 4] ENTER: Mono.XBuild.CommandLine.Parameters:ReportError (int,string)(this:0x53fc0[Mono.XBuild.CommandLine.Parameters xbuild.exe], 3, [STRING:0x65ea0:Please specify the project or solution file to build, as none was found in the current directory.], ) [0xb76816f0: 0,08353 5] ENTER: Mono.XBuild.CommandLine.CommandLineException:.ctor (string,int)(this:0x49cb0[Mono.XBuild.CommandLine.CommandLineException xbuild.exe], [STRING:0x65ea0:Please specify the project or solution file to build, as none was found in the current directory.], 3, ) [0xb76816f0: 0,08366 5] LEAVE: Mono.XBuild.CommandLine.CommandLineException:.ctor (string,int) [0xb76816f0: 0,08457 5] ENTER: (wrapper runtime-invoke) <Module>:runtime_invoke_object__this__ (object,intptr,intptr,intptr)([Mono.XBuild.CommandLine.CommandLineException:0x49cb0], (nil), 0xbfb2d334, 0xb62d2960, ) [0xb76816f0: 0,08464 6] ENTER: Mono.XBuild.CommandLine.CommandLineException:get_Message ()(this:0x49cb0[Mono.XBuild.CommandLine.CommandLineException xbuild.exe], ) [0xb76816f0: 0,08476 6] LEAVE: Mono.XBuild.CommandLine.CommandLineException:get_Message ()[STRING:0x65ea0:Please specify the project or solution file to build, as none was found in the current directory.] [0xb76816f0: 0,08481 5] LEAVE: (wrapper runtime-invoke) <Module>:runtime_invoke_object__this__ (object,intptr,intptr,intptr)[System.String:0x65ea0] [0xb76816f0:] EXCEPTION handling: Mono.XBuild.CommandLine.CommandLineException: Please specify the project or solution file to build, as none was found in the current directory. EXCEPTION: catch found at clause 3 of Mono.XBuild.CommandLine.MainClass:Execute () [0xb76816f0: 0,08504 5] ENTER: Mono.XBuild.CommandLine.CommandLineException:get_Message ()(this:0x49cb0[Mono.XBuild.CommandLine.CommandLineException xbuild.exe], ) [0xb76816f0: 0,08508 5] LEAVE: Mono.XBuild.CommandLine.CommandLineException:get_Message ()[STRING:0x65ea0:Please specify the project or solution file to build, as none was found in the current directory.] [0xb76816f0: 0,08589 5] ENTER: Mono.XBuild.CommandLine.ErrorUtilities:.cctor ()() [0xb76816f0: 0,08627 5] LEAVE: Mono.XBuild.CommandLine.ErrorUtilities:.cctor () [0xb76816f0: 0,08634 5] ENTER: Mono.XBuild.CommandLine.ErrorUtilities:ReportError (int,string)(3, [STRING:0x65ea0:Please specify the project or solution file to build, as none was found in the current directory.], ) MSBUILD: error MSBUILD0003: Please specify the project or solution file to build, as none was found in the current directory. if i specify --gc=sgen, all works correctly... So basically it seems to be a machine configuration problem. Machine 1: after installing mono 2.8 all NET applications will fail. I've removed all mono packages and etc config and mono dirs and reinstlled them, but Exception persist. using "--gc=sgen" option all works. Using "--gc=boehm" the problem appears. Machine 2: after installing mono 2.8 all works correctly. If i specify both "--gc=boehm" or "--gc=sgen" all works correctly. I'm on ArchLinux i686. Installed Packages: extra/mod_mono 2.8-1 extra/mono 2.8-1 extra/mono-addins 0.5-1 extra/mono-debugger 2.8-1 extra/xsp 2.8-1 extra/gecko-sharp-2.0 0.13-3 extra/gnome-desktop-sharp 2.26.0-5 extra/gnome-sharp 2.24.1-1 extra/gtk-sharp-2 2.12.10-1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
