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

dotnet crash when debugging unit tests on Visual Studio for Mac (Rosetta) #46192

Closed
iamNoah1 opened this issue Dec 17, 2020 · 7 comments
Closed
Assignees
Labels
arch-arm64 arch-x64 area-Diagnostics-coreclr os-mac-os-x macOS aka OSX tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly
Milestone

Comments

@iamNoah1
Copy link

Describe the bug

I am trying to debug unit tests on Visual Studio for Mac. After starting the debugging, for a while nothing happens. Then the dotnet process crashes. I will attach the output of the crash in a file.
crash-log.txt

Additional Info:

  • I am using a new M1 ARM Macbook Air
  • Running the tests in non debug mode works fine

To Reproduce

Unfortunately, I cannot share the project I am using. But I recognized the behavior on different projects. I am using XUnit as unit testing framework and the application uses the targetframework: netcoreapp3.1

Exceptions (if any)

attached in the file crash-log.txt

Further technical details

  • ASP.NET Core version: 3.1
  • Include the output of dotnet --info
    .NET SDK (gemäß "global.json"):
    Version: 5.0.101
    Commit: d05174dc5a

Laufzeitumgebung:
OS Name: Mac OS X
OS Version: 11.0
OS Platform: Darwin
RID: osx.11.0-x64
Base Path: /usr/local/share/dotnet/sdk/5.0.101/

Host (useful for support):
Version: 5.0.1
Commit: b02e13a

.NET SDKs installed:
2.1.811 [/usr/local/share/dotnet/sdk]
3.1.403 [/usr/local/share/dotnet/sdk]
3.1.404 [/usr/local/share/dotnet/sdk]
5.0.100 [/usr/local/share/dotnet/sdk]
5.0.101 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.23 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.23 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.23 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download

  • The IDE (VS / VS Code/ VS4Mac) you're running on, and its version
    VS4Mac 8.8.4 (build 30)
@Pilchie Pilchie transferred this issue from dotnet/aspnetcore Dec 17, 2020
@Dotnet-GitSync-Bot
Copy link
Collaborator

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Dec 17, 2020
@Pilchie
Copy link
Member

Pilchie commented Dec 17, 2020

Doesn't appear to be aspnetcore specific. Will likely need more diagnostic artifacts to see the managed stack. @jeffschwMSFT - can you help route for that?

@ghost
Copy link

ghost commented Dec 17, 2020

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

Issue Details

Describe the bug

I am trying to debug unit tests on Visual Studio for Mac. After starting the debugging, for a while nothing happens. Then the dotnet process crashes. I will attach the output of the crash in a file.
crash-log.txt

Additional Info:

  • I am using a new M1 ARM Macbook Air
  • Running the tests in non debug mode works fine

To Reproduce

Unfortunately, I cannot share the project I am using. But I recognized the behavior on different projects. I am using XUnit as unit testing framework and the application uses the targetframework: netcoreapp3.1

Exceptions (if any)

attached in the file crash-log.txt

Further technical details

  • ASP.NET Core version: 3.1
  • Include the output of dotnet --info
    .NET SDK (gemäß "global.json"):
    Version: 5.0.101
    Commit: d05174dc5a

Laufzeitumgebung:
OS Name: Mac OS X
OS Version: 11.0
OS Platform: Darwin
RID: osx.11.0-x64
Base Path: /usr/local/share/dotnet/sdk/5.0.101/

Host (useful for support):
Version: 5.0.1
Commit: b02e13a

.NET SDKs installed:
2.1.811 [/usr/local/share/dotnet/sdk]
3.1.403 [/usr/local/share/dotnet/sdk]
3.1.404 [/usr/local/share/dotnet/sdk]
5.0.100 [/usr/local/share/dotnet/sdk]
5.0.101 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.23 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.23 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.23 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download

  • The IDE (VS / VS Code/ VS4Mac) you're running on, and its version
    VS4Mac 8.8.4 (build 30)
Author: iamNoah1
Assignees: -
Labels:

area-Diagnostics-coreclr, untriaged

Milestone: -

@tommcdon
Copy link
Member

@sdmaclea @janvorli

@tommcdon tommcdon added os-mac-os-x macOS aka OSX arch-arm64 arch-x64 and removed untriaged New issue has not been triaged by the area owner labels Dec 18, 2020
@sdmaclea
Copy link
Contributor

Is this the same as #42311

@peterprice
Copy link

I think it's actually related to #44958

@sdmaclea sdmaclea added the tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly label Jan 12, 2021
@sdmaclea sdmaclea changed the title dotnet crash when debugging unit tests on Visual Studio for Mac dotnet crash when debugging unit tests on Visual Studio for Mac (Rosetta) Jan 12, 2021
@sdmaclea sdmaclea added this to the 6.0.0 milestone Jan 12, 2021
@sdmaclea sdmaclea assigned janvorli and unassigned sdmaclea Jan 12, 2021
@sdmaclea
Copy link
Contributor

I am closing this as a duplicate of #44958

@ghost ghost locked as resolved and limited conversation to collaborators Feb 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-arm64 arch-x64 area-Diagnostics-coreclr os-mac-os-x macOS aka OSX tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly
Projects
None yet
Development

No branches or pull requests

8 participants