-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
coreclr is crashing with a segfault. #6375
Comments
CoreCLR doesn't work in bash on Windows yet. @jkotas do we know some details on the Windows teams work on the issue? |
This crash looks like duplicate of https://github.com/dotnet/coreclr/issues/5837. I do not think it has anything to do bash on Windows. |
cc @gkhanna79 |
@janvorli Thanks for the fast answer. Note that I'm not using the "ubuntu bash for windows", but the git bash distributed with Visual Studio 2015. Running the binaries in @jkotas Yes the stack looks the same |
Thanks will try to use the suggested workaround |
Thank you all again, the workaround is working fine! |
Sorry I couldn't reproduce this on a smaller sample. It seems to have to do with this specific kind of assembly loading, Repro:
Open git bash on windows 10 - 64 bit
git clone [email protected]:matthid/FAKE.git
cd FAKE
git checkout 5e4d92144e8de9a65c9ed4a4c5640b3685ad7724
./build.sh
-- wait and get a cup of coffee, if it fails with "The supplied buffer is not valid", try again untilNow the error can be reproduced with
cd integrationtests/scenarios/dotnetcore-reference-fake-core-targets/temp
../../../../nuget/dotnetcore/Fake.netcore/current/Fake.netcore.exe run reference_fake-targets.fsx
I'm trying to use the AssemblyResolve event to resolve assemblies at runtime and it seems like coreclr doesn't like that, see fsprojects/FAKE#1281 (comment) for a screenshot.
I tried to debug this and got a native stacktrace, see fsprojects/FAKE#1281 (comment) . However it is not clear to me if this is a real
coreclr
bug or a bug in my code. Is there a way to diagnose this further? AddingCOREHOST_TRACE=1
doesn't add any additional infos.When adding
--verbose
(like../../../../nuget/dotnetcore/Fake.netcore/current/Fake.netcore.exe --verbose run reference_fake-targets.fsx
), you can see that we try to loadFake.Core.Environment.dll
immediately before it crashes.Fake.Core.Environment
is a dependency ofFake.Core.Targets.dll
which loads with the same logic without problems.Any help is appreciated.
The text was updated successfully, but these errors were encountered: