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

[browser][MT] lock_thread: g_assert (thread->longlived->synch_cs) #98604

Closed
pavelsavara opened this issue Feb 17, 2024 · 3 comments
Closed

[browser][MT] lock_thread: g_assert (thread->longlived->synch_cs) #98604

pavelsavara opened this issue Feb 17, 2024 · 3 comments
Labels
arch-wasm WebAssembly architecture area-VM-threading-mono Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm
Milestone

Comments

@pavelsavara
Copy link
Member

pavelsavara commented Feb 17, 2024

Error Blob

{
  "ErrorMessage": "",
  "BuildRetry": false,
  "ErrorPattern": "Assertion.*threads.c:517",
  "ExcludeConsoleLog": false
}

Reproduction Steps

Log
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=569381

[14:59:35] info: [STRT] System.Text.Json.Tests.JsonDocumentTests.ParseJson_UnseekableStream_Async_WithBOM(compactData: False, type: DeepTree, jsonString: "[\n  {\n    \"_id\": \"5af4bfbe93ba383385d9047a\","···)
[14:59:35] fail: [0x2e440000-long 14:59:35.778] [MONO] * Assertion at /__w/1/s/src/mono/mono/metadata/threads.c:517, condition `<disabled>' not met

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=569381
Error message validated: [Assertion.*threads.c:517]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 2/17/2024 12:34:27 PM UTC

Report

Build Definition Test Pull Request
595316 dotnet/runtime WasmTestOnBrowser-System.Net.WebSockets.Tests.WorkItemExecution #98986

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' area-VM-threading-mono Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm labels Feb 17, 2024
@pavelsavara pavelsavara added this to the 9.0.0 milestone Feb 17, 2024
@ghost
Copy link

ghost commented Feb 17, 2024

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

Issue Details

Error Blob

{
  "ErrorMessage": "",
  "BuildRetry": false,
  "ErrorPattern": "Assertion.*threads.c:517",
  "ExcludeConsoleLog": false
}

Reproduction Steps

Log
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=569381

[14:59:35] info: [STRT] System.Text.Json.Tests.JsonDocumentTests.ParseJson_UnseekableStream_Async_WithBOM(compactData: False, type: DeepTree, jsonString: "[\n  {\n    \"_id\": \"5af4bfbe93ba383385d9047a\","···)
[14:59:35] fail: [0x2e440000-long 14:59:35.778] [MONO] * Assertion at /__w/1/s/src/mono/mono/metadata/threads.c:517, condition `<disabled>' not met
Author: pavelsavara
Assignees: -
Labels:

arch-wasm, blocking-clean-ci, area-VM-threading-mono, Known Build Error, os-browser

Milestone: 9.0.0

@lambdageek
Copy link
Member

One idea might be to change init_thread_object from this:

	thread->longlived = g_new0 (MonoLongLivedThreadData, 1);
	init_longlived_thread_data (thread->longlived);

to this

	MonoLongLivedThreadData *lltd = g_new0 (MonoLongLivedThreadData, 1)
	init_longlived_thread_data (lltd);
	thread->longlived = lltd;

because otherwise some thread might see thread->longlived != NULL && thread->longlived->synch_cs == NULL.

With the fixed order, the membarrier inside init_longlived_thread_data will ensure that if thread->longlived != NULL then thread->longlived->synch_cs != NULL.

@pavelsavara pavelsavara removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Mar 4, 2024
@pavelsavara
Copy link
Member Author

no more occurrences, please reopen if you see it again

@github-actions github-actions bot locked and limited conversation to collaborators Apr 21, 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 Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm
Projects
None yet
Development

No branches or pull requests

2 participants