Open
Description
Description
.NET 8.0.401 + macOS crashes, while .NET 8.0.303 doesn't.
Reproduction Steps
Alas, not minimal:
# Repro is from building the dotnet/java-interop repo
git clone https://github.com/dotnet/java-interop.git
cd java-interop
git checkout fcad3368815dffd0f38f64384aa21b0b65367d68
git submodule update --init --recursive
# ensure .NET 8.0.401 is used
export PATH=$HOME/Downloads/dotnet-sdk-8.0.401-osx-x64:$PATH
# prepare
dotnet build -t:Prepare Java.Interop.sln
# build
dotnet build Java.Interop.sln
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:
tmp7adcfcd1012f44439ffd2772eea8f2e1.exec.cmd: line 2: 89333 Segmentation fault: 11 "…/dotnet-sdk-8.0.401-osx-x64/dotnet" "…/java-interop/bin/Debug-net8.0//jnimarshalmethod-gen.dll" "…/java-interop/samples/Hello-NativeAOTFromJNI/bin/Debug/Hello-NativeAOTFromJNI.dll" -v -v --keeptemp -L "…/java-interop/samples/Hello-NativeAOTFromJNI/bin/Debug/"
…/java-interop/samples/Hello-NativeAOTFromJNI/Hello-NativeAOTFromJNI.targets(44,5): error MSB3073: The command ""…/dotnet-sdk-8.0.401-osx-x64/dotnet" "…/java-interop/bin/Debug-net8.0//jnimarshalmethod-gen.dll" "…/java-interop/samples/Hello-NativeAOTFromJNI/bin/Debug/Hello-NativeAOTFromJNI.dll" -v -v --keeptemp -L "…/java-interop/samples/Hello-NativeAOTFromJNI/bin/Debug/" " exited with code 139. […/java-interop/samples/Hello-NativeAOTFromJNI/Hello-NativeAOTFromJNI.csproj]
Re-run with diagnostic logging enabled:
dotnet build -v:diag Java.Interop.sln > b.txt
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
- .NET 8.0.401
- macOS Sonoma 16.4.1
- x64
- No idea if it's specific to this configuration
- Not using Blazor
Other information
This doesn't appear to fail on Linux-x64.
Metadata
Metadata
Assignees
Type
Projects
Status
No status