Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MT][browser] MutexTests.AbandonExisting timeout #91547

Closed
ilonatommy opened this issue Sep 4, 2023 · 5 comments · Fixed by #102212
Closed

[MT][browser] MutexTests.AbandonExisting timeout #91547

ilonatommy opened this issue Sep 4, 2023 · 5 comments · Fixed by #102212
Assignees
Labels
arch-wasm WebAssembly architecture area-VM-threading-mono disabled-test The test is disabled in source code against the issue
Milestone

Comments

@ilonatommy
Copy link
Member

ilonatommy commented Sep 4, 2023

After enabling all MT library tests (#91536) fail with:

[FAIL] System.Threading.Tests.MutexTests.AbandonExisting(name: null, waitType: WaitOne, waitCount: 1, notAbandonedWaitIndex: 0, isNotAbandonedWaitObjectSignaled: False, abandonDuringWait: False)
 System.AggregateException : One or more errors occurred. (Result: False (Assert.Throws() Failure
 Expected: typeof(System.Threading.AbandonedMutexException)
 Actual:   (No exception was thrown)))
 ---- System.AggregateException : Result: False (Assert.Throws() Failure
 Expected: typeof(System.Threading.AbandonedMutexException)
 Actual:   (No exception was thrown))
 -------- Assert.Throws() Failure
 Expected: typeof(System.Threading.AbandonedMutexException)
 Actual:   (No exception was thrown)
    at System.Threading.Tests.ThreadTestHelpers.<>c__DisplayClass4_0.<CreateGuardedThread>b__1()
    at System.Threading.Tests.ThreadTestHelpers.<>c__DisplayClass4_0.<CreateGuardedThread>b__2()
    at System.Threading.Tests.ThreadTestHelpers.RunTestInBackgroundThread(Action test)
    at System.Threading.Tests.MutexTests.AbandonExisting(String name, WaitHandleWaitType waitType, Int32 waitCount, Int32 notAbandonedWaitIndex, Boolean isNotAbandonedWaitObjectSignaled, Boolean abandonDuringWait)
    at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
    at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 ----- Inner Stack Trace -----
    at System.AssertExtensions.Throws[AbandonedMutexException,Boolean](Func`1 func)
    at System.Threading.Tests.MutexTests.<>c__DisplayClass9_0.<AbandonExisting>b__0()
    at System.Threading.Tests.ThreadTestHelpers.<>c__DisplayClass4_0.<CreateGuardedThread>b__0()
 ----- Inner Stack Trace -----
    at System.AssertExtensions.Throws[AbandonedMutexException,Boolean](Func`1 func)
[FAIL] System.IO.Pipelines.Tests.PipeWriterTests.CompleteWithLargeWriteThrows
info: Assert.Throws() Failure
info: Expected: typeof(System.InvalidOperationException)
info: Actual:   (No exception was thrown)
info:    at System.IO.Pipelines.Tests.PipeWriterTests.CompleteWithLargeWriteThrows()
info: --- End of stack trace from previous location ---

Tests got blocked.

@ilonatommy ilonatommy added arch-wasm WebAssembly architecture disabled-test The test is disabled in source code against the issue area-Build-mono area-VM-threading-mono labels Sep 4, 2023
@ghost
Copy link

ghost commented Sep 4, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

After enabling all MT library tests (#91536) fail with:

[FAIL] System.Threading.Tests.MutexTests.AbandonExisting(name: null, waitType: WaitOne, waitCount: 1, notAbandonedWaitIndex: 0, isNotAbandonedWaitObjectSignaled: False, abandonDuringWait: False)
 System.AggregateException : One or more errors occurred. (Result: False (Assert.Throws() Failure
 Expected: typeof(System.Threading.AbandonedMutexException)
 Actual:   (No exception was thrown)))
 ---- System.AggregateException : Result: False (Assert.Throws() Failure
 Expected: typeof(System.Threading.AbandonedMutexException)
 Actual:   (No exception was thrown))
 -------- Assert.Throws() Failure
 Expected: typeof(System.Threading.AbandonedMutexException)
 Actual:   (No exception was thrown)
    at System.Threading.Tests.ThreadTestHelpers.<>c__DisplayClass4_0.<CreateGuardedThread>b__1()
    at System.Threading.Tests.ThreadTestHelpers.<>c__DisplayClass4_0.<CreateGuardedThread>b__2()
    at System.Threading.Tests.ThreadTestHelpers.RunTestInBackgroundThread(Action test)
    at System.Threading.Tests.MutexTests.AbandonExisting(String name, WaitHandleWaitType waitType, Int32 waitCount, Int32 notAbandonedWaitIndex, Boolean isNotAbandonedWaitObjectSignaled, Boolean abandonDuringWait)
    at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
    at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 ----- Inner Stack Trace -----
    at System.AssertExtensions.Throws[AbandonedMutexException,Boolean](Func`1 func)
    at System.Threading.Tests.MutexTests.<>c__DisplayClass9_0.<AbandonExisting>b__0()
    at System.Threading.Tests.ThreadTestHelpers.<>c__DisplayClass4_0.<CreateGuardedThread>b__0()
 ----- Inner Stack Trace -----
    at System.AssertExtensions.Throws[AbandonedMutexException,Boolean](Func`1 func)

Tests got blocked.

Author: ilonatommy
Assignees: -
Labels:

arch-wasm, disabled-test, area-Build-mono, area-VM-threading-mono

Milestone: -

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Sep 4, 2023
@radical radical added this to the 9.0.0 milestone Sep 5, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Sep 5, 2023
@ilonatommy ilonatommy changed the title [MT][browser] Sytem.Threading no exception throws [MT][browser] Sytem.Threading System.IO.Pipelines no exception throws Sep 6, 2023
@pavelsavara
Copy link
Member

@lambdageek @kg any ideas ?

@pavelsavara pavelsavara changed the title [MT][browser] Sytem.Threading System.IO.Pipelines no exception throws [MT][browser] MutexTests.AbandonExisting timeout Jan 25, 2024
@ilonatommy ilonatommy self-assigned this Jan 26, 2024
@pavelsavara
Copy link
Member

@ilonatommy should this be closed ? Or should we setup filter to see if this shows up again ?

@ilonatommy
Copy link
Member Author

Should be closed.

@pavelsavara
Copy link
Member

Opened again as #98830

@github-actions github-actions bot locked and limited conversation to collaborators Mar 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-VM-threading-mono disabled-test The test is disabled in source code against the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants