-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[mono] Assertion at sgen-stw.c:77, condition not met #76805
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @BrzVlad Issue DetailsDescriptionWhen building Fsharp (commit 430d645d778ec0db10ad7ad0b02de9fab3ce5647) with mono-flavored runtime (commit 06aceb7 - .net 7-rc1), I've run into this error:
Reproduction StepsBuild fsharp with mono flavored runtime in Expected behaviorBuild should pass Actual behaviorBuild fails with error Regression?Not a regression, confirmed existing on dotnet 6.0.9 Known WorkaroundsNone found Configuration
Other informationSeems to the same error as reported here Full log: fsharp.log
|
Note that this seems to be the only thing blocking |
@BrzVlad I see that you were the one to reply to that bug report in 2016. For your convenience, I've setup an aport that reproduces the bug on
It should fail with error code 134, or error code 1. |
I think I remember now this issue. When we register a thread to the runtime ( A simple diff like the following fixed the fsharp build:
I think the proper fix, if possible, would be to have the stack limit detected somehow for the main thread and update |
I had started exploring the stack issues via #76805, and found that coreclr had implemented an runtime/src/coreclr/pal/src/init/pal.cpp Lines 246 to 269 in 2201016
Granted, I'm a neophyte at C and C#, so I'm learning as I bugfix, but I feel like the comments for that function is right smack what we're encountering here. |
Testing your patch, it fails on
Edit: With dotnet7, error appears as a StackOverflowException, thus indeed the issue still persists on s390x given its inhenrently larger stack needs. x64 seems to not be an issue on dotnet7, but it'd likely come out of the woodworks pretty easily. |
@ayakael CoreCLR has a very simple approach. Does this fix all stack related issues you are encountering ? BrzVlad@08735ad |
The fix works on |
Setting
Although this is likely to do with testing methodology having to be different with .NET 6 SDK. I'm going to test both cases in a full |
Indeed, it was testing methodology. With your fix, provided |
Co-authored-by: Alexander Köplinger <[email protected]> Fixes #76805
Description
When building Fsharp (commit 430d645d778ec0db10ad7ad0b02de9fab3ce5647) with mono-flavored runtime (commit 06aceb7 - .net 7-rc1), I've run into this error:
Reproduction Steps
Build fsharp with mono flavored runtime in
linux-musl
environmentExpected behavior
Build should pass
Actual behavior
Build fails with error
Regression?
Not a regression, confirmed existing on dotnet 6.0.9
Known Workarounds
None found
Configuration
Other information
Seems to the same error as reported here
Full log: fsharp.log
The text was updated successfully, but these errors were encountered: