KestrelHttpServer icon indicating copy to clipboard operation
KestrelHttpServer copied to clipboard

Reliability: NullReferenceException - Linux-HelloWorldMVC crash after few hours of test run.

Open sivagms opened this issue 10 years ago • 12 comments

HelloWorldMVC App
Azure A2 VM 80% CPU Usage 300 concurrent connections

5 hours of into the reliability test run The app crashes.

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.AspNetCore.Server.Kestrel.Http.SocketOutput.ReturnAllBlocks()
   at Microsoft.AspNetCore.Server.Kestrel.Http.SocketOutput.WriteContext.DoDisconnectIfNeeded()
   at Microsoft.AspNetCore.Server.Kestrel.Networking.UvShutdownReq.UvShutdownCb(IntPtr ptr, Int32 status)
   at Microsoft.AspNetCore.Server.Kestrel.Networking.Libuv.NativeMethods.uv_run(UvLoopHandle handle, Int32 mode)
   at Microsoft.AspNetCore.Server.Kestrel.Networking.Libuv.run(UvLoopHandle handle, Int32 mode)
   at Microsoft.AspNetCore.Server.Kestrel.KestrelThread.ThreadStart(Object parameter)

sivagms avatar Mar 21 '16 17:03 sivagms

How could I run the test myself? I don't think this would happen exclusively on Linux. If we can repro on Windows it will be much easier to debug.

cesarblum avatar Mar 21 '16 23:03 cesarblum

Not sure why, but this doesn't repro on Windows.
On Linux, Run HelloWorldMVC for more that 8 hours and you'll see the crash..

sivagms avatar Mar 30 '16 18:03 sivagms

This seems to be showing up when running on WorkStation GC

sivagms avatar Apr 01 '16 23:04 sivagms

@sivagms Let us know if it repros with server GC.

muratg avatar Apr 05 '16 15:04 muratg

@muratg @sivagms @cesarbs It's conceivable that this is the same issue as #723, for which @llitchev has a fix. If you guys have a consistent repro and can take a private coreclr binary to try, we can provide one. This would be to done to mitigate the high latency in getting fixes through the pipeline. However, if it's too hard to test with a private, nevermind.

RussKeldorph avatar Apr 06 '16 22:04 RussKeldorph

@RussKeldorph Please send me the private binary and instructions to use. I can try it if I see this issue again in tonight's test run

sivagms avatar Apr 06 '16 23:04 sivagms

/cc @SajayAntony

sivagms avatar Apr 06 '16 23:04 sivagms

@llitchev Could you share out the binaries and work with @sivagms, etc. to see if your fix suppresses the repro?

RussKeldorph avatar Apr 06 '16 23:04 RussKeldorph

@RussKeldorph Sure. Taking it offline.

LLITCHEV avatar Apr 06 '16 23:04 LLITCHEV

@sivagms Have we seen this since #723 was closed? If so, can we get a memory dump? Thanks.

halter73 avatar May 18 '16 21:05 halter73

Putting this to 1.0.1.

muratg avatar Jun 07 '16 21:06 muratg

Closing this one. If we still get a repro, please re-open.

muratg avatar Jun 28 '16 21:06 muratg