Repository navigation
Open
Milestone
Description
Description
Publish a console app using linux-bionic-arm64 and running on the phone causes Segmentation Fault.
I am not able to observe this issue on NET 8.0 SDK but on NET 9.0 SDK.
Reproduction Steps
dotnet new console -o hellocd hellodotnet publish -r linux-bionic-arm64 --self-contained -f net9.0- Copy all the contents in
binfolder to phone - Run
bin/Release/net9.0/linux-bionic-arm64/helloon the phone using adb or Termux app - Observe crash
Expected behavior
Should not crash. Prints Hello, World!
Actual behavior
Prints Segmentation Fault and crash. Attach logcat.txt for inspection.
Regression?
Works on NET 8.0 (8.0.11).
Known Workarounds
No response
Configuration
.NET SDK:
Version: 9.0.101
Commit: eedb237549
Workload version: 9.0.100-manifests.3068a692
MSBuild version: 17.12.12+1cce77968
Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: linux-x64
Base Path: /home/jylo/.dotnet/sdk/9.0.101/
.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.
Host:
Version: 9.0.0
Architecture: x64
Commit: 9d5a6a9aa4
.NET SDKs installed:
8.0.404 [/home/jylo/.dotnet/sdk]
9.0.101 [/home/jylo/.dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.11 [/home/jylo/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0 [/home/jylo/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.11 [/home/jylo/.dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0 [/home/jylo/.dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Other information
No response
Reacted by aicynide and GlitchedCode922
Activity
dotnet-policy-service commentedon Jan 3, 2025
Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.
steveisok commentedon Jan 3, 2025
From your logcat, it looks like the libraries aren't readable:
truboxl commentedon Jan 5, 2025
I believe that is expected from an unrooted Android phone. I will try to find an emulator set-up and reproduce the issue to recapture logs if possible.
truboxl commentedon Jan 16, 2025
I have yet to find a proper aarch64 emulator that can run on x86_64 host.
I assume dotnet downloads the binaries from https://www.nuget.org/packages/Microsoft.NETCore.App.Runtime.linux-bionic-arm64
Since the binaries are stripped I doubt I can find any usable backtrace.
I will try to build from source instead.
truboxl commentedon Jul 5, 2025
I ended up revert da5bd2b and fixed SIGSEGV
BrzVlad commentedon Jul 10, 2025
@truboxl If you are building from source do you have a stacktrace of the crash you were getting ? cc @elinor-fung
truboxl commentedon Jul 13, 2025
lldb.txt
logcat.txt
linux-bionic-arm64andandroid-arm64(.NET 9+) #117547 as a duplicate of this issueCLI: run the Termux build on Termux's own .NET runtime, the bionic ru…
Release v3.2.0 (beta → master) (#958)