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
Fails in various ways, but the upshot seems to be that a LowLevelLifoSemaphore (probably s_semaphore in PortableThreadPool.WorkerThread is not initialized when methods are called on it.
Sometimes instead the TimedWait throws a NRE, or sometimes there's an access violation.
It seems like PortableThreadPool.WorkerThread.WorkerThreadStart sees a null s_semaphore sometimes. Not clear how that can happen - or why it only happens on catalyst.
The problem is that GetIsRunningOnMonoInterpreter is wrong on mobile (including catalyst) - we don't set the MONO_ENV_OPTIONS variable to turn on the interpreter, we use the embedding API.
Activity
steveisok commentedon May 7, 2021
/cc @lambdageek
lambdageek commentedon Aug 16, 2021
Fails in various ways, but the upshot seems to be that a LowLevelLifoSemaphore (probably
s_semaphorein PortableThreadPool.WorkerThread is not initialized when methods are called on it.Sometimes we get a null
sem_ptrinSometimes instead the TimedWait throws a NRE, or sometimes there's an access violation.
It seems like
PortableThreadPool.WorkerThread.WorkerThreadStartsees a nulls_semaphoresometimes. Not clear how that can happen - or why it only happens on catalyst.lambdageek commentedon Sep 24, 2021
This is failing because there are two tests disabled with
[ActiveIssue("...", typeof(PlatformDetection), nameof(PlatformDetection.IsMonoInterpreter))]runtime/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/DataflowBlockExtensionTests.cs
Line 1125 in 2e08554
and
runtime/src/libraries/System.Threading.Tasks.Dataflow/tests/Dataflow/DataflowBlockExtensionTests.cs
Line 1927 in 2e08554
The problem is that
GetIsRunningOnMonoInterpreteris wrong on mobile (including catalyst) - we don't set theMONO_ENV_OPTIONSvariable to turn on the interpreter, we use the embedding API.runtime/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs
Lines 467 to 477 in 2e08554
So the fix is to do correct interpreter detection.
danmoseley commentedon Dec 16, 2021
@lambdageek I happened to notice that this issue is closed but we are still excluding tests against it
runtime/src/libraries/tests.proj
Line 263 in 8a498cc