You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
System.Text.Json.SourceGeneration.Roslyn3.11.Tests crashes due to an assertion on linux/arm64/debug #65817
=================================================================
Native stacktrace:
=================================================================
0x7f9518ccbc - Unknown
Unhandled Exception:
System.Diagnostics.DebugProvider+DebugAssertException: at System.Diagnostics.DebugProvider.Fail(String message, String detailMessage) in /_/src/libraries/System.Private.CoreLib/src/System/Diagnostics/DebugProvider.cs:line 22
at System.Diagnostics.Debug.Fail(String message, String detailMessage) in /_/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Debug.cs:line 131
at System.Diagnostics.Debug.Assert(Boolean condition, String message, String detailMessage) in /_/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Debug.cs:line 95
at System.Diagnostics.Debug.Assert(Boolean condition) in /_/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Debug.cs:line 80
at System.Text.Json.Serialization.Metadata.JsonTypeInfo.InitializePropCache() in /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfo.Cache.cs:line 574
...
Activity
ghost added
untriagedNew issue has not been triaged by the area owner
Note this is about Debug.Assert(PropertyCache == null); in InitializePropCache
I think this assert is just bogus and should be removed. I assume scenario of re-using same options on multiple threads is a valid one and that could create such problem. The worst case scenario we will double initialize PropertyCache. I'm not sure it makes sense to lock it - at least cannot immediately see anything which could break. Same goes for the similar assert in the InitializeParameterCache
Activity
radical commentedon Mar 5, 2022
Hit this again for System.Text.Json.SourceGeneration.Roslyn4.0.Tests.
krwq commentedon Mar 7, 2022
Note this is about
Debug.Assert(PropertyCache == null);inInitializePropCacheI think this assert is just bogus and should be removed. I assume scenario of re-using same options on multiple threads is a valid one and that could create such problem. The worst case scenario we will double initialize PropertyCache. I'm not sure it makes sense to lock it - at least cannot immediately see anything which could break. Same goes for the similar assert in the
InitializeParameterCache@eiriktsarpalis @layomia?
eiriktsarpalis commentedon Mar 7, 2022
I think we should make sure that the instance is initialized before it can be shared across multiple threads.
radical commentedon Mar 25, 2022
Hit again - https://dev.azure.com/dnceng/public/_build/results?buildId=1682418&view=logs&jobId=3f95ca23-483b-5dc9-4b05-6bd24fb925c2&j=3f95ca23-483b-5dc9-4b05-6bd24fb925c2&t=0c1dd9d1-4ef7-54d5-2d62-e4ab330605ca
eiriktsarpalis commentedon Mar 28, 2022
Duplicate of #60962