Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Double free in BufferSegment #1690

Closed
davidfowl opened this issue Apr 14, 2017 · 3 comments
Closed

Double free in BufferSegment #1690

davidfowl opened this issue Apr 14, 2017 · 3 comments
Assignees

Comments

@davidfowl
Copy link
Member

davidfowl commented Apr 14, 2017

Unhandled Exception: System.InvalidOperationException: outstanding references detected.
   at Microsoft.AspNetCore.Server.Kestrel.Internal.System.Buffers.OwnedBuffer`1.Dispose()
   at Microsoft.AspNetCore.Server.Kestrel.Internal.System.IO.Pipelines.Pipe.Dispose()
   at Microsoft.AspNetCore.Server.Kestrel.Internal.System.IO.Pipelines.Pipe.Microsoft.AspNetCore.Server.Kestrel.Internal.System.IO.Pipelines.IPipeWriter.Complete(Exception exception)
   at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.LibuvConnection.<OnRead>d__34.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
@dougbu
Copy link
Member

dougbu commented Apr 15, 2017

Have now seen this in two aspnet/Performance tests using large (D15v2) Azure machines with accelerated networking. Most recent time, was running dotnet .\bin\Release\netcoreapp2.0\LargeStaticView.dll in the testapp\LargeStaticView folder on Windows server. Client (Ubuntu 16.04 LTS) command was wrk -H "Host: localhost" -H "Accept: text/plain,text/html;q=0.9,application/json;q=0.9,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7" -H "Connection: keep-alive" --latency -d 30 -c 512 --timeout 20 -t 32 http://10.1.9.5:5000/TagHelpers.

A few server details:

> dotnet --info
.NET Command Line Tools (2.0.0-preview1-005783)

Product Information:
 Version:            2.0.0-preview1-005783
 Commit SHA-1 hash:  8bd15c7ec0

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Users\dougbu\AppData\Local\Microsoft\dotnet\sdk\2.0.0-preview1-005783\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.0-preview1-001967-00
  Build    : fa25acec41a87ce36b3ea61273d4798eb0a2486f

@davidfowl davidfowl changed the title Double free in FunctionalTests Double free in BufferSegment Apr 15, 2017
@muratg muratg added this to the 2.0.0-preview1 milestone Apr 18, 2017
@muratg
Copy link
Contributor

muratg commented Apr 18, 2017

@pakrym I was told that you already fixed this. :)

@pakrym
Copy link
Contributor

pakrym commented Apr 19, 2017

Fixed by dotnet/corefxlab@4b96e38

@pakrym pakrym closed this as completed Apr 19, 2017
@pakrym pakrym added 3 - Done and removed 1 - Ready labels Apr 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants