microsoft / microsoft/ProcDump-for-Linux
Exception monitoring failed
Open
@MarioHewardt is already working on this.
Since Jul 8, 2024.
investigate
- Dominant language
- C
- Stars
- 3.1k
- Forks
- 327
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 7
Description
Expected behavior
A memory dump is captured on a first chance .NET exceptions.
Actual behavior
ERROR]: Exception monitoring failed.
Steps to reproduce the behavior
Run any ASP.NET application that serves static files (dotnet new razor).
That will get this error when serving static content:
System.ArgumentOutOfRangeException: (Parameter 'offset')
Actual value was 0.
at Microsoft.AspNetCore.Http.SendFileResponseExtensions.SendFileAsyncCore(HttpResponse response, IFileInfo file, Int64 offset, Nullable`1 count, CancellationToken cancellationToken)
at Microsoft.AspNetCore.StaticAssets.StaticAssetsInvoker.SendAsync(StaticAssetInvocationContext context)
at Microsoft.AspNetCore.StaticAssets.StaticAssetsInvoker.Invoke(HttpContext context)
at Microsoft.AspNetCore.Builder.StaticAssetDevelopmentRuntimeHandler.<>c__DisplayClass3_0.<<AttachRuntimePatching>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
Try to capture the error:
# procdump -n 100 -e 1 -f ArgumentOutOfRangeException PauloMorgadoNet
ProcDump v3.3.0 - Sysinternals process dump utility
Copyright (C) 2024 Microsoft Corporation. All rights reserved. Licensed under the MIT license.
Mark Russinovich, Mario Hewardt, John Salem, Javid Habibi
Sysinternals - www.sysinternals.com
Monitors one or more processes and writes a core dump file when the processes exceeds the
specified criteria.
[18:11:53 - INFO]: Press Ctrl-C to end monitoring without terminating the process(es).
Process: PauloMorgadoNet (1)
CPU Threshold: n/a
Commit Threshold: n/a
GC Generation: n/a
Resource tracking: n/a
Resource tracking sample rate: n/a
Thread Threshold: n/a
File Descriptor Threshold: n/a
Signal: n/a
Exception monitor: On
Exception filter: ArgumentOutOfRangeException
Polling Interval (ms): 1000
Threshold (s): 10
Number of Dumps: 100
Output directory: PauloMorgadoNet
[18:11:53 - INFO]: Starting monitor for process PauloMorgadoNet (1)
[18:11:57 - ERROR]: Exception monitoring failed.
[18:11:57 - INFO]: Stopping monitor for process PauloMorgadoNet (1)
System information (e.g., distro, kernel version, etc.)
.NET SDK container image: mcr.microsoft.com/dotnet/nightly/sdk:9.0-preview
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.