The Wayback Machine - https://web.archive.org/web/20220204172614/https://github.com/dotnet/aspnetcore/issues/39986
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quarantine GracefulTurnsAbortiveIfRequestsDoNotFinish #39986

Open
Tratcher opened this issue Feb 4, 2022 · 0 comments
Open

Quarantine GracefulTurnsAbortiveIfRequestsDoNotFinish #39986

Tratcher opened this issue Feb 4, 2022 · 0 comments

Comments

@Tratcher
Copy link
Member

@Tratcher Tratcher commented Feb 4, 2022

Failing Test(s)

  • Microsoft.AspNetCore.Server.Kestrel.Sockets.FunctionalTests.Http2.ShutdownTests.GracefulTurnsAbortiveIfRequestsDoNotFinish

Error Message

System.AggregateException : Exceptions occurred while accessing blocks (Block is backed by disposed slab)
---- System.InvalidOperationException : Block is backed by disposed slab

Stacktrace

   at System.Buffers.DiagnosticMemoryPool.WhenAllBlocksReturnedAsync(TimeSpan timeout) in /_/src/Shared/Buffers.MemoryPool/DiagnosticMemoryPool.cs:line 163
   at Microsoft.AspNetCore.Server.Kestrel.Sockets.FunctionalTests.Http2.ShutdownTests.GracefulTurnsAbortiveIfRequestsDoNotFinish() in /_/src/Servers/Kestrel/test/FunctionalTests/Http2/ShutdownTests.cs:line 166
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at System.Buffers.MemoryPoolThrowHelper.ThrowInvalidOperationException_BlockIsBackedByDisposedSlab(DiagnosticPoolBlock block) in /_/src/Shared/Buffers.MemoryPool/MemoryPoolThrowHelper.cs:line 57
   at System.Buffers.DiagnosticPoolBlock.GetSpan() in /_/src/Shared/Buffers.MemoryPool/DiagnosticPoolBlock.cs:line 122
   at System.Buffers.ReadOnlySequence`1.get_FirstSpan()
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameReader.TryReadFrame(ReadOnlySequence`1& buffer, Http2Frame frame, UInt32 maxFrameSize, ReadOnlySequence`1& framePayload) in /_/src/Shared/ServerInfrastructure/Http2/Http2FrameReader.cs:line 43
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2Connection.ProcessRequestsAsync[TContext](IHttpApplication`1 application) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2Connection.cs:line 242

Logs

[0.003s] [TestLifetime] [Information] Starting test GracefulTurnsAbortiveIfRequestsDoNotFinish at 2022-02-03T23:42:00
[0.010s] [Microsoft.Extensions.Hosting.Internal.Host] [Debug] Hosting starting
[0.039s] [Microsoft.Hosting.Lifetime] [Information] Now listening on: https://127.0.0.1:50142
[0.040s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Debug] Loaded hosting startup assembly Sockets.FunctionalTests
[0.040s] [Microsoft.Hosting.Lifetime] [Information] Application started. Press Ctrl+C to shut down.
[0.040s] [Microsoft.Hosting.Lifetime] [Information] Hosting environment: Production
[0.040s] [Microsoft.Hosting.Lifetime] [Information] Content root path: C:\h\w\A9AE0926\w\9984086C\e\
[0.040s] [Microsoft.Extensions.Hosting.Internal.Host] [Debug] Hosting started
[0.041s] [Microsoft.AspNetCore.Server.Kestrel] [Debug] TestServer is listening on port 50142
[2.150s] [Microsoft.AspNetCore.Server.Kestrel.Connections] [Debug] Connection id "0HMF7DR31HMHL" accepted.
[2.168s] [Microsoft.AspNetCore.Server.Kestrel.Connections] [Debug] Connection id "0HMF7DR31HMHL" started.
[2.381s] [Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware] [Debug] Connection 0HMF7DR31HMHL established using the following protocol: Tls13
[2.382s] [Microsoft.AspNetCore.Server.Kestrel.Http2] [Verbose] Connection id "0HMF7DR31HMHL" sending SETTINGS frame for stream ID 0 with length 18 and flags NONE.
[2.383s] [Microsoft.AspNetCore.Server.Kestrel.Http2] [Verbose] Connection id "0HMF7DR31HMHL" sending WINDOW_UPDATE frame for stream ID 0 with length 4 and flags 0x0.
[2.383s] [Microsoft.AspNetCore.Server.Kestrel.Http2] [Verbose] Connection id "0HMF7DR31HMHL" received SETTINGS frame for stream ID 0 with length 12 and flags NONE.
[2.383s] [Microsoft.AspNetCore.Server.Kestrel.Http2] [Verbose] Connection id "0HMF7DR31HMHL" sending SETTINGS frame for stream ID 0 with length 0 and flags ACK.
[2.383s] [Microsoft.AspNetCore.Server.Kestrel.Http2] [Verbose] Connection id "0HMF7DR31HMHL" received WINDOW_UPDATE frame for stream ID 0 with length 4 and flags 0x0.
[2.386s] [Microsoft.AspNetCore.Server.Kestrel.Http2] [Verbose] Connection id "0HMF7DR31HMHL" received HEADERS frame for stream ID 1 with length 20 and flags END_STREAM, END_HEADERS.
[2.418s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Information] Request starting HTTP/2 GET https://localhost:50142/ - -
[2.421s] [Microsoft.Extensions.Hosting.Internal.Host] [Debug] Hosting stopping
[2.421s] [Microsoft.Hosting.Lifetime] [Information] Application is shutting down...
[2.440s] [Microsoft.AspNetCore.Server.Kestrel.Http2] [Debug] Connection id "0HMF7DR31HMHL" is closing.
[2.441s] [Microsoft.AspNetCore.Server.Kestrel.Http2] [Verbose] Connection id "0HMF7DR31HMHL" sending GOAWAY frame for stream ID 0 with length 8 and flags 0x0.
[2.450s] [Microsoft.AspNetCore.Server.Kestrel.Connections] [Debug] Some connections failed to close gracefully during server shutdown.
[2.454s] [Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets] [Debug] Connection id "0HMF7DR31HMHL" sending FIN because: "The connection was aborted because the server is shutting down and request processing didn't complete within the time specified by HostOptions.ShutdownTimeout."
[4.273s] [Microsoft.AspNetCore.Server.Kestrel.Connections] [Debug] Some connections failed to abort during server shutdown.
[4.274s] [Microsoft.Extensions.Hosting.Internal.Host] [Debug] Hosting stopped
[4.365s] [Microsoft.AspNetCore.Server.Kestrel] [Warning] Connection processing ended abnormally.
System.InvalidOperationException: Block is backed by disposed slab
   at System.Buffers.MemoryPoolThrowHelper.ThrowInvalidOperationException_BlockIsBackedByDisposedSlab(DiagnosticPoolBlock block) in /_/src/Shared/Buffers.MemoryPool/MemoryPoolThrowHelper.cs:line 57
   at System.Buffers.DiagnosticPoolBlock.GetSpan() in /_/src/Shared/Buffers.MemoryPool/DiagnosticPoolBlock.cs:line 122
   at System.Buffers.ReadOnlySequence`1.get_FirstSpan()
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameReader.TryReadFrame(ReadOnlySequence`1& buffer, Http2Frame frame, UInt32 maxFrameSize, ReadOnlySequence`1& framePayload) in /_/src/Shared/ServerInfrastructure/Http2/Http2FrameReader.cs:line 43
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2Connection.ProcessRequestsAsync[TContext](IHttpApplication`1 application) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2Connection.cs:line 242
[4.379s] [Microsoft.AspNetCore.Server.Kestrel.Http2] [Debug] Connection id "0HMF7DR31HMHL" is closed. The last processed stream ID was 1.
[4.380s] [Microsoft.AspNetCore.Server.Kestrel.Http2] [Verbose] Connection id "0HMF7DR31HMHL" sending GOAWAY frame for stream ID 0 with length 8 and flags 0x0.
[4.383s] [Microsoft.AspNetCore.Server.Kestrel] [Fatal] Unexpected exception in HttpConnection.ProcessRequestsAsync.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'MemoryPool'.
   at System.Buffers.MemoryPoolThrowHelper.ThrowObjectDisposedException(ExceptionArgument argument) in /_/src/Shared/Buffers.MemoryPool/MemoryPoolThrowHelper.cs:line 94
   at System.Buffers.DiagnosticMemoryPool.Rent(Int32 size) in /_/src/Shared/Buffers.MemoryPool/DiagnosticMemoryPool.cs:line 67
   at System.IO.Pipelines.StreamPipeWriter.AllocateSegment(Int32 sizeHint)
   at System.IO.Pipelines.StreamPipeWriter.AllocateMemory(Int32 sizeHint)
   at System.IO.Pipelines.StreamPipeWriter.GetSpan(Int32 sizeHint)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.PipeWriterHelpers.ConcurrentPipeWriter.GetSpan(Int32 sizeHint) in /_/src/Servers/Kestrel/Core/src/Internal/Infrastructure/PipeWriterHelpers/ConcurrentPipeWriter.cs:line 87
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameWriter.WriteHeader(Http2Frame frame, PipeWriter output) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs:line 696
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameWriter.WriteHeaderUnsynchronized() in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs:line 677
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameWriter.WriteGoAwayAsync(Int32 lastStreamId, Http2ErrorCode errorCode) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs:line 662
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2Connection.ProcessRequestsAsync[TContext](IHttpApplication`1 application) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2Connection.cs:line 345
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2Connection.ProcessRequestsAsync[TContext](IHttpApplication`1 application) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2Connection.cs:line 385
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection.ProcessRequestsAsync[TContext](IHttpApplication`1 httpApplication) in /_/src/Servers/Kestrel/Core/src/Internal/HttpConnection.cs:line 106
[4.432s] [Microsoft.AspNetCore.Server.Kestrel] [Error] Unhandled exception while processing 0HMF7DR31HMHL.
System.AggregateException: An error occurred while writing to logger(s). (Unexpected critical error. Log Critical[0]: Unexpected exception in HttpConnection.ProcessRequestsAsync. System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'MemoryPool'.
   at System.Buffers.MemoryPoolThrowHelper.ThrowObjectDisposedException(ExceptionArgument argument) in /_/src/Shared/Buffers.MemoryPool/MemoryPoolThrowHelper.cs:line 94
   at System.Buffers.DiagnosticMemoryPool.Rent(Int32 size) in /_/src/Shared/Buffers.MemoryPool/DiagnosticMemoryPool.cs:line 67
   at System.IO.Pipelines.StreamPipeWriter.AllocateSegment(Int32 sizeHint)
   at System.IO.Pipelines.StreamPipeWriter.AllocateMemory(Int32 sizeHint)
   at System.IO.Pipelines.StreamPipeWriter.GetSpan(Int32 sizeHint)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.PipeWriterHelpers.ConcurrentPipeWriter.GetSpan(Int32 sizeHint) in /_/src/Servers/Kestrel/Core/src/Internal/Infrastructure/PipeWriterHelpers/ConcurrentPipeWriter.cs:line 87
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameWriter.WriteHeader(Http2Frame frame, PipeWriter output) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs:line 696
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameWriter.WriteHeaderUnsynchronized() in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs:line 677
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameWriter.WriteGoAwayAsync(Int32 lastStreamId, Http2ErrorCode errorCode) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs:line 662
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2Connection.ProcessRequestsAsync[TContext](IHttpApplication`1 application) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2Connection.cs:line 345
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2Connection.ProcessRequestsAsync[TContext](IHttpApplication`1 application) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2Connection.cs:line 385
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection.ProcessRequestsAsync[TContext](IHttpApplication`1 httpApplication) in /_/src/Servers/Kestrel/Core/src/Internal/HttpConnection.cs:line 106)
 ---> System.Exception: Unexpected critical error. Log Critical[0]: Unexpected exception in HttpConnection.ProcessRequestsAsync. System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'MemoryPool'.
   at System.Buffers.MemoryPoolThrowHelper.ThrowObjectDisposedException(ExceptionArgument argument) in /_/src/Shared/Buffers.MemoryPool/MemoryPoolThrowHelper.cs:line 94
   at System.Buffers.DiagnosticMemoryPool.Rent(Int32 size) in /_/src/Shared/Buffers.MemoryPool/DiagnosticMemoryPool.cs:line 67
   at System.IO.Pipelines.StreamPipeWriter.AllocateSegment(Int32 sizeHint)
   at System.IO.Pipelines.StreamPipeWriter.AllocateMemory(Int32 sizeHint)
   at System.IO.Pipelines.StreamPipeWriter.GetSpan(Int32 sizeHint)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.PipeWriterHelpers.ConcurrentPipeWriter.GetSpan(Int32 sizeHint) in /_/src/Servers/Kestrel/Core/src/Internal/Infrastructure/PipeWriterHelpers/ConcurrentPipeWriter.cs:line 87
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameWriter.WriteHeader(Http2Frame frame, PipeWriter output) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs:line 696
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameWriter.WriteHeaderUnsynchronized() in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs:line 677
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameWriter.WriteGoAwayAsync(Int32 lastStreamId, Http2ErrorCode errorCode) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs:line 662
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2Connection.ProcessRequestsAsync[TContext](IHttpApplication`1 application) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2Connection.cs:line 345
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2Connection.ProcessRequestsAsync[TContext](IHttpApplication`1 application) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2Connection.cs:line 385
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection.ProcessRequestsAsync[TContext](IHttpApplication`1 httpApplication) in /_/src/Servers/Kestrel/Core/src/Internal/HttpConnection.cs:line 106
 ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'MemoryPool'.
   at System.Buffers.MemoryPoolThrowHelper.ThrowObjectDisposedException(ExceptionArgument argument) in /_/src/Shared/Buffers.MemoryPool/MemoryPoolThrowHelper.cs:line 94
   at System.Buffers.DiagnosticMemoryPool.Rent(Int32 size) in /_/src/Shared/Buffers.MemoryPool/DiagnosticMemoryPool.cs:line 67
   at System.IO.Pipelines.StreamPipeWriter.AllocateSegment(Int32 sizeHint)
   at System.IO.Pipelines.StreamPipeWriter.AllocateMemory(Int32 sizeHint)
   at System.IO.Pipelines.StreamPipeWriter.GetSpan(Int32 sizeHint)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.PipeWriterHelpers.ConcurrentPipeWriter.GetSpan(Int32 sizeHint) in /_/src/Servers/Kestrel/Core/src/Internal/Infrastructure/PipeWriterHelpers/ConcurrentPipeWriter.cs:line 87
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameWriter.WriteHeader(Http2Frame frame, PipeWriter output) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs:line 696
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameWriter.WriteHeaderUnsynchronized() in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs:line 677
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameWriter.WriteGoAwayAsync(Int32 lastStreamId, Http2ErrorCode errorCode) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs:line 662
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2Connection.ProcessRequestsAsync[TContext](IHttpApplication`1 application) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2Connection.cs:line 345
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2Connection.ProcessRequestsAsync[TContext](IHttpApplication`1 application) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2Connection.cs:line 385
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection.ProcessRequestsAsync[TContext](IHttpApplication`1 httpApplication) in /_/src/Servers/Kestrel/Core/src/Internal/HttpConnection.cs:line 106
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.Testing.TestApplicationErrorLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) in /_/src/Servers/Kestrel/shared/test/TestApplicationErrorLogger.cs:line 76
   at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state)
   --- End of inner exception stack trace ---
   at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions)
   at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelTrace.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) in /_/src/Servers/Kestrel/Core/src/Internal/Infrastructure/KestrelTrace.cs:line 410
   at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args)
   at Microsoft.Extensions.Logging.LoggerExtensions.LogCritical(ILogger logger, EventId eventId, Exception exception, String message, Object[] args)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection.ProcessRequestsAsync[TContext](IHttpApplication`1 httpApplication) in /_/src/Servers/Kestrel/Core/src/Internal/HttpConnection.cs:line 111
   at Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware.OnConnectionAsync(ConnectionContext context) in /_/src/Servers/Kestrel/Core/src/Middleware/HttpsConnectionMiddleware.cs:line 209
   at Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware.OnConnectionAsync(ConnectionContext context) in /_/src/Servers/Kestrel/Core/src/Middleware/HttpsConnectionMiddleware.cs:line 209
   at Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware.OnConnectionAsync(ConnectionContext context) in /_/src/Servers/Kestrel/Core/src/Middleware/HttpsConnectionMiddleware.cs:line 209
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection`1.ExecuteAsync() in /_/src/Servers/Kestrel/Core/src/Internal/Infrastructure/KestrelConnectionOfT.cs:line 52
[4.433s] [Microsoft.AspNetCore.Server.Kestrel.Connections] [Debug] Connection id "0HMF7DR31HMHL" stopped.
[4.433s] [Microsoft.Extensions.Hosting.Internal.Host] [Debug] Hosting stopping
[4.433s] [Microsoft.Extensions.Hosting.Internal.Host] [Debug] Hosting stopped
[4.456s] [Microsoft.AspNetCore.Server.Kestrel] [Error] Connection id "0HMF7DR31HMHL", Request id "0HMF7DR31HMHL:00000001": An unhandled exception was thrown by the application.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'MemoryPool'.
   at System.Buffers.MemoryPoolThrowHelper.ThrowObjectDisposedException(ExceptionArgument argument) in /_/src/Shared/Buffers.MemoryPool/MemoryPoolThrowHelper.cs:line 94
   at System.Buffers.DiagnosticMemoryPool.Rent(Int32 size) in /_/src/Shared/Buffers.MemoryPool/DiagnosticMemoryPool.cs:line 67
   at System.IO.Pipelines.Pipe.AllocateSegment(Int32 sizeHint)
   at System.IO.Pipelines.Pipe.AllocateWriteHeadSynchronized(Int32 sizeHint)
   at System.IO.Pipelines.Pipe.DefaultPipeWriter.GetSpan(Int32 sizeHint)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.PipeWriterHelpers.ConcurrentPipeWriter.GetSpan(Int32 sizeHint) in /_/src/Servers/Kestrel/Core/src/Internal/Infrastructure/PipeWriterHelpers/ConcurrentPipeWriter.cs:line 87
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2OutputProducer.GetSpan(Int32 sizeHint) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2OutputProducer.cs:line 304
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.GetSpan(Int32 sizeHint) in /_/src/Servers/Kestrel/Core/src/Internal/Http/HttpProtocol.cs:line 1415
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponsePipeWriter.GetSpan(Int32 sizeHint) in /_/src/Servers/Kestrel/Core/src/Internal/Http/HttpResponsePipeWriter.cs:line 61
   at Microsoft.AspNetCore.Http.HttpResponseWritingExtensions.Write(HttpResponse response, String text, Encoding encoding) in /_/src/Http/Http.Abstractions/src/Extensions/HttpResponseWritingExtensions.cs:line 94
   at Microsoft.AspNetCore.Http.HttpResponseWritingExtensions.WriteAsync(HttpResponse response, String text, Encoding encoding, CancellationToken cancellationToken) in /_/src/Http/Http.Abstractions/src/Extensions/HttpResponseWritingExtensions.cs:line 77
   at Microsoft.AspNetCore.Http.HttpResponseWritingExtensions.WriteAsync(HttpResponse response, String text, CancellationToken cancellationToken) in /_/src/Http/Http.Abstractions/src/Extensions/HttpResponseWritingExtensions.cs:line 38
   at Microsoft.AspNetCore.Server.Kestrel.Sockets.FunctionalTests.Http2.ShutdownTests.<>c__DisplayClass10_0.<<GracefulTurnsAbortiveIfRequestsDoNotFinish>b__4>d.MoveNext() in /_/src/Servers/Kestrel/test/FunctionalTests/Http2/ShutdownTests.cs:line 125
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application) in /_/src/Servers/Kestrel/Core/src/Internal/Http/HttpProtocol.cs:line 664
[4.504s] [Microsoft.AspNetCore.Server.Kestrel.Http2] [Debug] Trace id "0HMF7DR31HMHL:00000001": HTTP/2 stream error "INTERNAL_ERROR". A Reset is being sent to the stream.
Microsoft.AspNetCore.Connections.ConnectionAbortedException: An error occurred after the response headers were sent, a reset is being sent.
[4.507s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Information] Request finished HTTP/2 GET https://localhost:50142/ - - - 200 - - 2088.7257ms
[4.730s] [Microsoft.AspNetCore.Server.Kestrel.Sockets.FunctionalTests.Http2.ShutdownTests] [Error] Test threw an exception.
System.AggregateException: Exceptions occurred while accessing blocks (Block is backed by disposed slab)
 ---> System.InvalidOperationException: Block is backed by disposed slab
   at System.Buffers.MemoryPoolThrowHelper.ThrowInvalidOperationException_BlockIsBackedByDisposedSlab(DiagnosticPoolBlock block) in /_/src/Shared/Buffers.MemoryPool/MemoryPoolThrowHelper.cs:line 57
   at System.Buffers.DiagnosticPoolBlock.GetSpan() in /_/src/Shared/Buffers.MemoryPool/DiagnosticPoolBlock.cs:line 122
   at System.Buffers.ReadOnlySequence`1.get_FirstSpan()
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameReader.TryReadFrame(ReadOnlySequence`1& buffer, Http2Frame frame, UInt32 maxFrameSize, ReadOnlySequence`1& framePayload) in /_/src/Shared/ServerInfrastructure/Http2/Http2FrameReader.cs:line 43
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2Connection.ProcessRequestsAsync[TContext](IHttpApplication`1 application) in /_/src/Servers/Kestrel/Core/src/Internal/Http2/Http2Connection.cs:line 242
   --- End of inner exception stack trace ---
   at System.Buffers.DiagnosticMemoryPool.WhenAllBlocksReturnedAsync(TimeSpan timeout) in /_/src/Shared/Buffers.MemoryPool/DiagnosticMemoryPool.cs:line 163
   at Microsoft.AspNetCore.Server.Kestrel.Sockets.FunctionalTests.Http2.ShutdownTests.GracefulTurnsAbortiveIfRequestsDoNotFinish() in /_/src/Servers/Kestrel/test/FunctionalTests/Http2/ShutdownTests.cs:line 166
   at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass48_1.<<InvokeTestMethodAsync>b__1>d.MoveNext() in C:\Dev\xunit\xunit\src\xunit.execution\Sdk\Frameworks\Runners\TestInvoker.cs:line 264
--- End of stack trace from previous location ---
   at Xunit.Sdk.ExecutionTimer.AggregateAsync(Func`1 asyncAction) in C:\Dev\xunit\xunit\src\xunit.execution\Sdk\Frameworks\ExecutionTimer.cs:line 48
   at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) in C:\Dev\xunit\xunit\src\xunit.core\Sdk\ExceptionAggregator.cs:line 96
[4.731s] [TestLifetime] [Information] Finished test GracefulTurnsAbortiveIfRequestsDoNotFinish in 4.7278797s

Build

https://dev.azure.com/dnceng/public/_build/results?buildId=1590943&view=ms.vss-test-web.build-test-results-tab&runId=44529876&resultId=117335&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant