netcoredbg icon indicating copy to clipboard operation
netcoredbg copied to clipboard

'terminated by signal SIGSEGV (Address boundary error)' while running on mac

Open Rahmerh opened this issue 2 years ago • 5 comments

When I create a clean console application and download the latest macos binaries and then run the following:

./netcoredbg --run --interpreter=vscode -- dotnet ~/path/to/project/project.dll

I get the following result:

{"body":{},"event":"initialized","seq":"1","type":"event"}fish: Job 1, './netcoredbg --run --interprete…' terminated by signal SIGSEGV (Address boundary error)

See neofetch below:

                    'c.          
                 ,xNMM.          -------------------------- 
               .OMMMMo           OS: macOS 12.5.1 21G83 arm64 
               OMMM0,            Host: MacBookPro18,2 
     .;loddo:' loolloddol;.      Kernel: 21.6.0 
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 50 mins 
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 1 (port), 154 (brew) 
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: fish 3.5.1 
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 1920x1080, 1728x1117 
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua 
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: yabai 
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    Terminal: kitty 
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   CPU: Apple M1 Max 
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   GPU: Apple M1 Max 
    kMMMMMMMMMMMMMMMMMMMMMMd     Memory: 3565MiB / 32768MiB 
     ;KMMMMMMMWXXWMMMMMMMk.
       .cooc,.    .,

The result of dotnet --info: (Installed via homebrew with: brew install dotnet-sdk)

.NET SDK (reflecting any global.json):
 Version:   6.0.401
 Commit:    0906eae6f8

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  12.5
 OS Platform: Darwin
 RID:         osx.12-arm64
 Base Path:   /usr/local/share/dotnet/sdk/6.0.401/

global.json file:
  Not found

Host:
  Version:      6.0.9
  Architecture: arm64
  Commit:       163a63591c

.NET SDKs installed:
  6.0.401 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

Let me know if more information is needed

Rahmerh avatar Sep 20 '22 05:09 Rahmerh

Host: Architecture: arm64

Please note, at this moment we don't support Mac M1 (arm64). You can't use amd64 binary, that we provide, with arm64 .Net SDK. See related issues: https://github.com/Samsung/netcoredbg/issues/98 https://github.com/Samsung/netcoredbg/issues/102

viewizard avatar Sep 20 '22 07:09 viewizard

Fair enough, are there any plans to support amd64 in the future?

Rahmerh avatar Sep 20 '22 07:09 Rahmerh

@Rahmerh there is no official plans for supporting of M1 architecture, but @codeprefect from community is working on it #103, we are open for PRs. In common there is shouldn't be big issues since we support linux aarch64, but might be some tricks.

alpencolt avatar Sep 30 '22 10:09 alpencolt

@Rahmerh, please test out this binary built from #103 for your use case. https://github.com/codeprefect/netcoredbg/releases/tag/2.2.0-950

codeprefect avatar Nov 05 '22 09:11 codeprefect

Yep! That one worked for me

Rahmerh avatar Nov 06 '22 09:11 Rahmerh