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

x64 macOS debugging under emulation broken by .NET 9 #112137

Closed
gregg-miskelly opened this issue Feb 4, 2025 · 2 comments
Closed

x64 macOS debugging under emulation broken by .NET 9 #112137

gregg-miskelly opened this issue Feb 4, 2025 · 2 comments

Comments

@gregg-miskelly
Copy link
Contributor

Description

On .NET 9, it is no longer possible to debug the x64 runtime when it is running under emulation (Rosetta) on an arm64 macOS. The same scenario works with .NET 8.

Reproduction Steps

On an ARM64 macOS machine:

  1. Install the ARM64 and x64 .NET SDK
  2. Create a new console project targeting .NET 9
  3. Configure the debugger to run the project in the x64 runtime instead of ARM64. Instructions for VS Code
  4. Set a breakpoint on the first line of main
  5. Launch the project

Expected behavior

The user's module should load and run in the target process

Actual behavior

The .NET Runtime fails to initialize when being debugged. The last callback sent is a thread create.

Regression?

This is a regression from .NET 8

Known Workarounds

None known

Configuration

OS: macOS ARM64 Sonoma
Runtime: macOS x64

Other information

No response

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Feb 4, 2025
Copy link
Contributor

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

@hoyosjs
Copy link
Member

hoyosjs commented Feb 5, 2025

Dupe of #112156

@hoyosjs hoyosjs closed this as completed Feb 5, 2025
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants