[Mono-bugs] [Bug 81453][Wis] New - reflection SIGSEGV using nunit

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Apr 25 14:17:37 EDT 2007


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 geoff at mmks.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81453

--- shadow/81453	2007-04-25 14:17:37.000000000 -0400
+++ shadow/81453.tmp.17174	2007-04-25 14:17:37.000000000 -0400
@@ -0,0 +1,211 @@
+Bug#: 81453
+Product: Mono: Runtime
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Linux version 2.6.8-3-686 (pbuilder at dl360-g3) (gcc version 3.3.5 (Debian 1:3.3.5-13))
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: JIT
+AssignedTo: lupus at ximian.com                            
+ReportedBy: geoff at mmks.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: reflection SIGSEGV using nunit
+
+Description of Problem:
+
+A call to System.Reflection.GetExportedTypes() causes a SIGSEGV error when
+a dll is present that contains a missing reference.
+
+We would expect a 'FileNotFoundException' in this case. This is the
+behavior of nunit-console when running the identical tests under .NET on
+Windows XP.
+
+mono is built from svn://anonsvn.mono-project.com/source/trunk/mono,
+revision 76224
+
+The attached zip provides the minimal setup to reproduce this error.
+
+Steps to reproduce the problem:
+1. unzip attachment
+2. run './build'
+3. run 'mono nunit-console.exe nunit_Reflection.nunit'
+
+Actual Results:
+
+NUnit version 2.4.0
+Copyright (C) 2002-2007 Charlie Poole.
+Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A.
+Vorontsov.
+Copyright (C) 2000-2002 Philip Craig.
+All Rights Reserved.
+
+Runtime Environment -
+OS Version: Unix 2.6.8.3
+CLR Version: 2.0.50727.42 ( Mono 1.2.4 )
+
+
+** (/home/geoff/NUnit-2.4.0-r2-net-2.0/bin/nunit-console.exe:21858):
+WARNING **: The following assembly referenced from
+/home/geoff/Debug/bug_1708/nunit_Reflection.dll could not be loaded:
+Assembly: nunit_Reflection.Missing (assemblyref_index=0)
+Version: 0.0.0.0
+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 (/home/geoff/Debug/bug_1708).
+
+
+** (/home/geoff/NUnit-2.4.0-r2-net-2.0/bin/nunit-console.exe:21858):
+WARNING **: Could not load file or assembly 'nunit_Reflection.Missing,
+Version=0.0.0.0, Culture=neutral' or one of its dependencies.
+Stacktrace:
+
+at (wrapper managed-to-native) System.Reflection.Assembly.LoadFrom
+(string,bool) <0x00004>
+at (wrapper managed-to-native) System.Reflection.Assembly.LoadFrom
+(string,bool) <0xffffffff>
+at System.Reflection.Assembly.LoadFrom
+(string,System.Security.Policy.Evidence) <0x00010>
+at System.Reflection.Assembly.LoadFile
+(string,System.Security.Policy.Evidence) <0x00039>
+at System.Reflection.Assembly.LoadFile (string) <0x0000c>
+at nunit_Reflection.ReflectionTests.Test002_Bug1708 () <0x00028>
+at (wrapper runtime-invoke) System.Object.runtime_invoke_void
+(object,intptr,intptr,intptr) <0xffffffff>
+at (wrapper managed-to-native)
+System.Reflection.MonoMethod.InternalInvoke (object,object[]) <0x00004>
+at (wrapper managed-to-native)
+System.Reflection.MonoMethod.InternalInvoke (object,object[]) <0xffffffff>
+at System.Reflection.MonoMethod.Invoke
+(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],Sy
+stem.Globalization.CultureInfo) <0x0009a>
+at System.Reflection.MethodBase.Invoke (object,object[]) <0x0001a>
+at NUnit.Core.Reflect.InvokeMethod
+(System.Reflection.MethodInfo,object,object[]) <0x00049>
+at NUnit.Core.Reflect.InvokeMethod (System.Reflection.MethodInfo,object)
+<0x0000f>
+at NUnit.Core.TestMethod.RunTestMethod (NUnit.Core.TestCaseResult)
+<0x00021>
+at NUnit.Core.TestMethod.doTestCase (NUnit.Core.TestCaseResult)
+<0x0001c>
+at NUnit.Core.TestMethod.doRun (NUnit.Core.TestCaseResult) <0x0009a>
+at NUnit.Core.TestMethod.Run (NUnit.Core.TestCaseResult) <0x000aa>
+at NUnit.Core.NUnitTestMethod.Run (NUnit.Core.TestCaseResult) <0x00014>
+at NUnit.Core.TestCase.Run (NUnit.Core.EventListener) <0x00130>
+at NUnit.Core.TestCase.Run
+(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00011>
+at NUnit.Core.TestSuite.RunAllTests
+(NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter
+) <0x0015f>
+at NUnit.Core.TestSuite.Run
+(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x001b1>
+at NUnit.Core.TestFixture.Run
+(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x0008d>
+at NUnit.Core.TestSuite.RunAllTests
+(NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter
+) <0x0015f>
+at NUnit.Core.TestSuite.Run
+(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x001b1>
+at NUnit.Core.TestSuite.RunAllTests
+(NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter
+) <0x0015f>
+at NUnit.Core.TestSuite.Run
+(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x001b1>
+at NUnit.Core.TestSuite.RunAllTests
+(NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter
+) <0x0015f>
+at NUnit.Core.TestSuite.Run
+(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x001b1>
+at NUnit.Core.SimpleTestRunner.Run
+(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00080>
+at NUnit.Core.TestRunnerThread.TestRunnerThreadProc () <0x0003f>
+at (wrapper delegate-invoke) System.MulticastDelegate.invoke_void ()
+<0xffffffff>
+at (wrapper runtime-invoke) System.Object.runtime_invoke_void
+(object,intptr,intptr,intptr) <0xffffffff>
+
+
+Native stacktrace:
+
+mono [0x81522c6]
+mono [0x813c0ae]
+[0xffffe440]
+mono [0x80c5f8d]
+mono [0x80c60ab]
+mono(mono_assembly_invoke_load_hook+0x2d) [0x80d36fd]
+mono(mono_assembly_open_full+0x15c) [0x80d3f7c]
+mono [0x80c6e71]
+[0x40f1496c]
+[0x40f148e9]
+[0x411666da]
+[0x41166685]
+[0x4116a6c9]
+[0x40eb4589]
+mono [0x813bf50]
+mono(mono_runtime_invoke+0x27) [0x808b737]
+mono(mono_runtime_invoke_array+0x257) [0x808cb17]
+mono [0x80940b4]
+[0x40e9d02d]
+[0x41127193]
+[0x40f0efeb]
+[0x4116630a]
+[0x411662a8]
+[0x4116628a]
+[0x41166175]
+[0x41165f73]
+[0x41165e13]
+[0x41165d45]
+[0x41165af1]
+[0x411659a2]
+[0x41161c58]
+[0x4116134a]
+[0x4116247e]
+[0x41161c58]
+[0x4116134a]
+[0x41161c58]
+[0x4116134a]
+[0x41161c58]
+[0x4116134a]
+[0x41160c11]
+[0x41160b28]
+[0x40f18328]
+[0x40eb4589]
+mono [0x813bf50]
+mono(mono_runtime_invoke+0x27) [0x808b737]
+mono(mono_runtime_delegate_invoke+0x38) [0x808c0b8]
+mono [0x80b9d55]
+mono [0x8104f6f]
+mono [0x811b0c4]
+/lib/tls/libpthread.so.0 [0x400a9b63]
+/lib/tls/libc.so.6(__clone+0x5a) [0x401ae18a]
+
+Debug info from gdb:
+
+
+
+=================================================================
+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.
+=================================================================
+
+Aborted
+
+Expected Results:
+
+Expected FileNotFoundException in test Test001 and no errors in Test002.
+
+
+How often does this happen? 
+Always
+
+Additional Information:
+
+bug also filed against nunit project:
+
+http://sourceforge.net/tracker/index.php?func=detail&aid=1707539&group_id=10749&atid=360749


More information about the mono-bugs mailing list