dotnet / dotnet/core

Arg _ NullReferenceException in System. Private.CoreLib Exception

Open
#10,452 0 comments 0 reactions 0 assignees View on GitHub
area-release-notes
Dominant language
PowerShell
Stars
22k
Forks
4.9k
Avg merge
5d 17m
Merged PRs (30d)
31

Description

### URL(s)

Arg _ NullReferenceException

### Description

when net8.0.42 program is running on linux, sometimes the following message will be shown. But the env seems good, is there any suggestion about this?

Process terminated. Encountered infinite recursion while looking up resource 'Arg _ NullReferenceException' in
System. Private.CoreLib. Verify the installation of .NET is complete and does not need repairing, and that the
state of the process has not become corrupted.
at System.Environment.FailFast(System.String)
at System.SR.InternalGetResourceString(System.String)
at System.SR.GetResourceString(System.String)
at System.NullReferenceException..ctor()
at System.Globalization.CultureInfo.get_CurrentUICulture()
at System. Resources. ResourceManager. GetString(System. String, System. Globalization. CultureInfo)
at System.SR.InternalGetResourceString(System.String)
at System.SR.GetResourcestring(System.String)
at System.NullReferenceException..ctor()
at System.Threading.ThreadPoolworkQueue.Dispatch()
at System. Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()
Aborted (core dumped)

Contributor guide

Open the contributing guide

Research direction

Start by examining the System.Private.CoreLib resource lookup and NullReferenceException constructor shown in the stack trace, then compare the ThreadPool worker path under net8.0.42 on Linux. Reproduce the intermittent failure or isolate a reliable trigger; done means identifying a concrete runtime cause and a verified fix or actionable diagnosis.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.