You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
From your logcat, it looks like the libraries aren't readable:
NOTE: Function names and BuildId information is missing for some frames due
01-04 02:10:40.015 12460 12460 F DEBUG : NOTE: to unreadable libraries. For unwinds of apps, only shared libraries
01-04 02:10:40.015 12460 12460 F DEBUG : NOTE: found under the lib/ directory are readable.
01-04 02:10:40.015 12460 12460 F DEBUG : NOTE: On this device, run setenforce 0 to make the libraries readable.
01-04 02:10:40.015 12460 12460 F DEBUG : NOTE: Unreadable libraries:
01-04 02:10:40.015 12460 12460 F DEBUG : NOTE: /data/data/com.termux/files/home/downloads/bin/Release/net9.0/linux-bionic-arm64/hello
01-04 02:10:40.015 12460 12460 F DEBUG : NOTE: /data/data/com.termux/files/home/downloads/bin/Release/net9.0/linux-bionic-arm64/libcoreclr.so
01-04 02:10:40.015 12460 12460 F DEBUG : NOTE: /data/data/com.termux/files/home/downloads/bin/Release/net9.0/linux-bionic-arm64/libhostfxr.so
01-04 02:10:40.015 12460 12460 F DEBUG : NOTE: /data/data/com.termux/files/home/downloads/bin/Release/net9.0/linux-bionic-arm64/libhostpolicy.so
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.
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 hello
cd hello
dotnet publish -r linux-bionic-arm64 --self-contained -f net9.0
bin
folder to phonebin/Release/net9.0/linux-bionic-arm64/hello
on the phone using adb or Termux appExpected 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
Other information
No response
The text was updated successfully, but these errors were encountered: