nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02611
[Bug 881958] Re: nunit-console-x86 crashes with socketexception
** Branch linked: lp:nunitv2
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/881958
Title:
nunit-console-x86 crashes with socketexception
Status in NUnit V2 Test Framework:
Fix Committed
Bug description:
We run our unit tests under a Jenkins build server, via nant.
To run the tests we use the nunit-console as our code is compiled as
.NET 4.
<exec program="${nunit-console.exe}"
workingdir="${CCNetArtifactDirectory}"
commandline="${shortFileName} /xml:${resultFileName} /nologo /nodots /nothread /domain=Single /framework:net-4.0"/>
We are using NUnit 2.5.10.
However, intermittently we see this exception, which stops our builds:
Unhandled Exception:
[exec] System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
[exec]
[exec] Server stack trace:
[exec] at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
[exec] at System.Runtime.Remoting.Channels.SocketStream.Read(Byte[] buffer, Int32 offset, Int32 size)
[exec] at System.Runtime.Remoting.Channels.SocketHandler.ReadFromSocket(Byte[] buffer, Int32 offset, Int32 count)
[exec] at System.Runtime.Remoting.Channels.SocketHandler.Read(Byte[] buffer, Int32 offset, Int32 count)
[exec] at System.Runtime.Remoting.Channels.Tcp.TcpFixedLengthReadingStream.Read(Byte[] buffer, Int32 offset, Int32 count)
[exec] at System.IO.BinaryReader.ReadBytes(Int32 count)
[exec] at System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Read(__BinaryParser input)
[exec] at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadSerializationHeaderRecord()
[exec] at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
[exec] at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
[exec] at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
[exec] at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryResponseMessage(Stream inputStream, IMethodCallMessage reqMsg, Boolean bStrictBinding)
[exec] at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.DeserializeMessage(IMethodCallMessage mcm, ITransportHeaders headers, Stream stream)
[exec] at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
[exec]
[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 NUnit.Core.TestAgent.Stop()
[exec] at NUnit.Util.ProcessRunner.Dispose()
[exec] at NUnit.ConsoleRunner.ConsoleUi.Execute(ConsoleOptions options)
[exec] at NUnit.ConsoleRunner.Runner.Main(String[] args)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/881958/+subscriptions
References