Skip to content
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

Segmentation fault #2893

Open
Fak3adm1n opened this issue Jan 9, 2023 · 9 comments
Open

Segmentation fault #2893

Fak3adm1n opened this issue Jan 9, 2023 · 9 comments

Comments

@Fak3adm1n
Copy link

我下载了arm64 5.1.3的Releases后,解压打开后给了TShock.Server权限运行后提示需要.NET 6.0.0 于是安装.NET 6.0.0后,我再次运行./TShock.Server就报错了

A fatal error was encountered. The library 'libhostpolicy.so' required to execut e the application was not found in '/udisk/tshock/.dotnet/shared/Microsoft.NETCo re.App/6.0.12'.

@Fak3adm1n
Copy link
Author

我删掉了整个目录重新下载了一边,再次运行,得到

root@openstick:/udisk/tr# ./TShock.Server
Segmentation fault
root@openstick:/udisk/tr#

@sgkoishi
Copy link
Contributor

sgkoishi commented Jan 9, 2023

Can you try uname -a?

@Fak3adm1n
Copy link
Author

Can you try uname -a?

root@openstick:~# uname -a
Linux openstick 5.15.0-handsomekernel+ #17 SMP PREEMPT Sun Feb 6 22:10:37 CST 2022 aarch64 GNU/Linux
root@openstick:~#

我的架构是aarch64,我安装的tshock的架构是arm64

@Fak3adm1n Fak3adm1n changed the title HOW TO USE THE LINUX VERSION??A fatal error was encountered. The library 'libhostpolicy.so' required to execut e the application was not found in '/udisk/tshock/.dotnet/shared/Microsoft.NETCo re.App/6.0.12'. Segmentation fault Jan 10, 2023
@sgkoishi
Copy link
Contributor

Where did you install dotnet from? (Is it via Snap?)

@Fak3adm1n
Copy link
Author

Where did you install dotnet from? (Is it via Snap?)

https://dotnet.microsoft.com/download/dotnet/6.0

@sgkoishi
Copy link
Contributor

Hmmm.... Somehow sounds like the problem comes from the native part rather than TShock.
Can you run dotnet --list-runtimes or try the dev version which contains a TShock.Installer?

@Fak3adm1n
Copy link
Author

Hmmm.... Somehow sounds like the problem comes from the native part rather than TShock. Can you run dotnet --list-runtimes or try the dev version which contains a TShock.Installer?

root@openstick:/udisk/tr/.dotnet# ./dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.12 [/udisk/tr/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.12 [/udisk/tr/.dotnet/shared/Microsoft.NETCore.App]
root@openstick:/udisk/tr/.dotnet#

@fireflyoo
Copy link

硬盘坏了吧?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants