Jenkins nunit-console.exe Process is terminated due to StackOverflowException Unhandled Exception System.Net.Sockets.SocketException

724 views
Skip to first unread message

Charles Ritchea

unread,
Jan 30, 2014, 11:25:32 AM1/30/14
to nunit-...@googlegroups.com
 While running simple NUnit tests in Jenkins came upon this:
[exec] ProcessModel: Default DomainUsage: Multiple [exec] Execution Runtime: v4.0 [exec] Excluded categories: not Exclude [exec] Process is terminated due to StackOverflowException. [exec] Unhandled Exception: [exec] System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:60606 [exec] Server stack trace: [exec] at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) [exec] at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) [exec] at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint) [exec] at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket() [exec] at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew) [exec] at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream) [exec] at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream) [exec] at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg) [exec] Exception rethrown at [0]: [exec] at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) [exec] at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) [exec] at System.IDisposable.Dispose() [exec] at NUnit.Core.ProxyTestRunner.Dispose() [exec] at NUnit.Util.ProcessRunner.Dispose() [exec] at NUnit.ConsoleRunner.ConsoleUi.Execute(ConsoleOptions options) [exec] at NUnit.ConsoleRunner.Runner.Main(String[] args)

I've never seen this before. The only thing different from this test and all my others is I'm using Moq. No network activity of any kind.

Charles Ritchea

unread,
Jan 30, 2014, 12:17:25 PM1/30/14
to nunit-...@googlegroups.com
Something else that is different:
I'm running nunit-console.exe against a solution file, not a dll. In that solution file, I've included two projects that are located in a completely different location in the workspace than the other projects. There is no issue building the solution, but I've noticed that P4VS seems to always think they are not in perforce until I checkout the solution file. Anyway, this got me to thinking that it could also be what's causing the below non-deterministic error.  So I guess to reproduce, create a solution with normal test projects that depend on projects located somewhere other than under the solution folder. It might also need to be running under jenkins.

Charles Ritchea

unread,
Jan 30, 2014, 12:55:05 PM1/30/14
to nunit-...@googlegroups.com
Ok, I figured it out, I accidentally had an infinite loop in one of my static constructors.


On Thursday, January 30, 2014 11:25:32 AM UTC-5, Charles Ritchea wrote:

Charlie Poole

unread,
Jan 30, 2014, 1:57:07 PM1/30/14
to nunit-...@googlegroups.com
Glad we could help. :-)

FYI, the particular stack trace merely shows why nunit terminated:
i.e. because the test process terminated. Currently, you would have
needed to look at the internal log to see why that process terminated.
We'll be working on bringing that info to you more readily.

Charlie
> --
> You received this message because you are subscribed to the Google Groups
> "NUnit-Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nunit-discus...@googlegroups.com.
> To post to this group, send email to nunit-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/nunit-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages