← Back to team overview

nunit-core team mailing list archive

[Bug 1083821] Re: NUnit runner crashes when test gives StackOverflowException

 

I've tried to reproduce it with both the GUI and the console and I
actually get a different outcome than what you described. None of them
crashes but the agent process' death is causing some confusion indeed,
and I don't even get a stackoverflow if the test assembly is compiled
with optimizations. I didn't inspect the IL but I guess the compiler is
transforming the recursive call into a loop.

Regardless, I'm not sure it's really worth handling this case though, it
sounds like a quite uncommon scenario.

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/1083821

Title:
  NUnit runner crashes when test gives StackOverflowException

Status in NUnit V2 Test Framework:
  Invalid

Bug description:
  Made a brand new test project, and in the default TestMethod1 method:

      [Test]
      public void TestMethod1()
      {
        TestMethod1();
      }

  The runner application gives "NUnit-Agent has stopped working", and
  then the main GUI crashes out when anything else is done with it. The
  runner reports 2.6.2.12296 as it's version.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1083821/+subscriptions


References