AccessViolation running NUnit tests

I'm running the NHibernate 2.1.2GA test suite in TeamCity (NHibernate.Test), and for six tests specifically, I get the same failure consistently (see below for the traces). When I run the tests in NUnit directly or via Resharper in Visual Studio (using either the NUnit runner or Gallio), these tests do not fail.

Any ideas where to start diagnostics? Can anyone reproduce this?

Test(s) failed. System.AccessViolationException : Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Reflection.Assembly._GetResource(String resourceName, UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetResource(String resourceName, UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetManifestResourceStream(String name, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetManifestResourceStream(String name)
   at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly) in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate\Cfg\Configuration.cs:line 631
   at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly) in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate\Cfg\Configuration.cs:line 730
   at NHibernate.Test.CfgTest.DefaultNsAssmFixture.BottomUpJoined() in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate.Test\CfgTest\DefaultNsAssmFixture.cs:line 182
Test(s) failed. System.AccessViolationException : Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Reflection.Assembly._GetResource(String resourceName, UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetResource(String resourceName, UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetManifestResourceStream(String name, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetManifestResourceStream(String name)
   at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly) in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate\Cfg\Configuration.cs:line 631
   at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly) in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate\Cfg\Configuration.cs:line 730
   at NHibernate.Test.CfgTest.DefaultNsAssmFixture.MixedJoined() in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate.Test\CfgTest\DefaultNsAssmFixture.cs:line 200

Test(s) failed. System.AccessViolationException : Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Reflection.Assembly._GetResource(String resourceName, UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetResource(String resourceName, UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetManifestResourceStream(String name, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetManifestResourceStream(String name)
   at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly) in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate\Cfg\Configuration.cs:line 631
   at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly) in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate\Cfg\Configuration.cs:line 730
   at NHibernate.Test.CfgTest.DefaultNsAssmFixture.MixedSubclass() in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate.Test\CfgTest\DefaultNsAssmFixture.cs:line 218

Test(s) failed. System.AccessViolationException : Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Reflection.Assembly._GetResource(String resourceName, UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetResource(String resourceName, UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetManifestResourceStream(String name, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetManifestResourceStream(String name)
   at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly) in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate\Cfg\Configuration.cs:line 631
   at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly) in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate\Cfg\Configuration.cs:line 730
   at NHibernate.Test.CfgTest.HbmOrderingFixture.BottomUpJoined() in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate.Test\CfgTest\HbmOrderingFixture.cs:line 220

Test(s) failed. System.AccessViolationException : Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Reflection.Assembly._GetResource(String resourceName, UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetResource(String resourceName, UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetManifestResourceStream(String name, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetManifestResourceStream(String name)
   at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly) in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate\Cfg\Configuration.cs:line 631
   at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly) in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate\Cfg\Configuration.cs:line 730
   at NHibernate.Test.CfgTest.HbmOrderingFixture.MixedJoined() in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate.Test\CfgTest\HbmOrderingFixture.cs:line 238

Test(s) failed. System.AccessViolationException : Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Reflection.Assembly._GetResource(String resourceName, UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetResource(String resourceName, UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetManifestResourceStream(String name, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
   at System.Reflection.Assembly.GetManifestResourceStream(String name)
   at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly) in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate\Cfg\Configuration.cs:line 631
   at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly) in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate\Cfg\Configuration.cs:line 730
   at NHibernate.Test.CfgTest.HbmOrderingFixture.MixedSubclass() in c:\dev\NHibernate2_CI\Risk\External\NHibernate2\src\NHibernate.Test\CfgTest\HbmOrderingFixture.cs:line 256
1 comment

Please check .NET Framework version and bitness settings in NUnit test runner.

0

Please sign in to leave a comment.