-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Description
We've an application server based on .NET8 which gets terminated by a DivideByZeroException from System.Threading.PortableThreadPool.HillClimbing.Update.
Reproduction Steps
We're not able to identifiy the specific function as the application is terminated.
Expected behavior
The exception can be handled by application code to minimize corrupted state of data and application. A possibility to identify the producer of the error.
Actual behavior
From the windows event logs, we receive the following information:
CoreCLR Version: 8.0.1725.26602 .NET Version: 8.0.17 Description: The process was terminated due to an unhandled exception. Exception Info: System.DivideByZeroException: Attempted to divide by zero. at System.Threading.PortableThreadPool.HillClimbing.Update(Int32 currentThreadCount, Double sampleDurationSeconds, Int32 numCompletions) at System.Threading.PortableThreadPool.AdjustMaxWorkersActive() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
Reference found: https://source.dot.net/#System.Private.CoreLib/src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.WorkerThread.cs
Regression?
We're using the framework since .NET-core 3.1 without facing this issue. The first occurence was in July this year.
Known Workarounds
No response
Configuration
CoreCLR Version: 8.0.1725.26602
.NET Version: 8.0.17
x64
Windows Server 2022
Other information
No response