-
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
.NET 8.0.401 + macOS crashes, while .NET 8.0.303 doesn't. #106661
Comments
Note: you may need to run
I'm not (currently) reporting this MSB4018 from |
Context: dotnet/runtime#106661 Beginning with .NET 8 8.0.400, we hit the following error on CI: /var/folders/cy/09t6wxdj6qn64c5q9_kr6czr0000gn/T/MSBuildTemprunner/tmp58b6b197481a4eb7b080ec79e70515ad.exec. cmd: line 2: 7199 Bus error: 10 "/Users/runner/hostedtoolcache/dotnet/dotnet" "/Users/runner/work/1/s/bin/Release-net8.0//jnimarshalmethod-gen.dll" "/Users/runner/work/1/s/samples/Hello- NativeAOTFromJNI/bin/Release/Hello-NativeAOTFromJNI.dll" -v -v --keeptemp -L "/Users/runner/work/1/s/samples/Hello- NativeAOTFromJNI/bin/Release/" ##[error]samples/Hello-NativeAOTFromJNI/Hello-NativeAOTFromJNI.targets(44,5): Error MSB3073: The command ""/Users/runner/hostedtoolcache/dotnet/dotnet" "/Users/runner/work/1/s/bin/Release-net8.0//jnimarshalmethod-gen.dll" "/Users/runner/work/1/s/samples/Hello-NativeAOTFromJNI/bin/Release/Hello-NativeAOTFromJNI.dll" -v -v --keeptemp -L "/Users/runner/work/1/s/samples/Hello-NativeAOTFromJNI/bin/Release/" " exited with code 138. Pin to .NET '8.0.303' for now while this regression is investigated and fixed in .NET.
@AaronRobinsonMSFT Did we make any servicing fixes that could have caused this? |
If the crash occurs only under Rosetta and not on a real x64 macOS and there is some hardware exception handling going on, this could be what @jkotas said. |
Description
.NET 8.0.401 + macOS crashes, while .NET 8.0.303 doesn't.
Reproduction Steps
Alas, not minimal:
Expected behavior
Build completes without error.
Note: requires that dotnet/java-interop dependencies already exist, which includes a C++ toolchain, Java SDK, etc.…
Actual behavior
Fails to build:
Re-run with diagnostic logging enabled:
and there isn't much additional output regarding the crash.
Regression?
Yes. This same repo builds with .NET 8.0.303. See also: dotnet/java-interop#1245
Known Workarounds
Use .NET 8.0.303.
Configuration
Other information
This doesn't appear to fail on Linux-x64.
The text was updated successfully, but these errors were encountered: