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=80258 --- 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: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: misc +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +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 +crash. + +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 +Settings\quinanel\Desktop\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe +could not be loaded: + Assembly: log4net (assemblyref_index=1) + Version: 1.2.0.30714 + 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 +Settings\quinanel\Desktop\ConsoleApplication1\ConsoleApplication1\bin\Debug\). + + +** (ConsoleApplication1.exe:756): WARNING **: Could not load file or +assembly 'log4net, Version=1.2.0.30714, Culture=neutral' or one of its +dependencies. + +================================================================= +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 +application. +================================================================= + +Stacktrace: + + +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: +TypeInitializationException + +How often does this happen? +Always _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
