[Mono-bugs] [Bug 80258][Nor] New - SIGSEGV during class initialization

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Dec 14 01:57:15 EST 2006

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 luke at quinane.id.au.


--- shadow/80258	2006-12-14 01:57:15.000000000 -0500
+++ shadow/80258.tmp.6922	2006-12-14 01:57:15.000000000 -0500
@@ -0,0 +1,79 @@
+Bug#: 80258
+Product: Mono: Runtime
+Version: 1.2
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: luke at quinane.id.au               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: SIGSEGV during class initialization
+Description of Problem:
+If an assembly fails to load during class initialization the runtime tries
+to deference a null pointer (object.c line 987). This causes the runtime to
+Steps to reproduce the problem:
+1. Compile the following code:
+using System;
+class Class1
+	log4net.ILog log;
+	[STAThread]
+	static void Main(string[] args)
+	{
+		Console.WriteLine("Hi");
+	}
+2. Try and run the program with Mono ensuring that log4net.dll is not in
+the assembly load path or GAC.
+Actual Results:
+** (ConsoleApplication1.exe:756): WARNING **: The following assembly
+referenced from C:\Documents and
+could not be loaded:
+     Assembly:   log4net    (assemblyref_index=1)
+     Version:
+     Public Key: (none)
+The assembly was not found in the Global Assembly Cache, a path listed in
+the MONO_PATH environment variable, or in the location of the executing
+assembly (C:\Documents and
+** (ConsoleApplication1.exe:756): WARNING **: Could not load file or
+assembly 'log4net, Version=, Culture=neutral' or one of its
+Got a SIGSEGV while executing native code. This usually indicates a fatal
+error in the mono runtime or one of the native libraries used by your
+This application has requested the Runtime to terminate it in an unusual way.
+Please contact the application's support team for more information.
+Expected Results:
+How often does this happen? 

More information about the mono-bugs mailing list