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

Cannot debug on CentOS Stream 9 from Visual Studio 2022 (Kernel 5.14) #67818

Closed
MrM40 opened this issue Mar 27, 2022 · 13 comments
Closed

Cannot debug on CentOS Stream 9 from Visual Studio 2022 (Kernel 5.14) #67818

MrM40 opened this issue Mar 27, 2022 · 13 comments
Assignees
Milestone

Comments

@MrM40
Copy link

MrM40 commented Mar 27, 2022

Describe the bug

When I try to debug an assembly running on CentOS Stream 9 from VS 2022 using SSH I get this error in VS:

error

It works fine with others Linux installations e.g. Debian 11 bullseye. Although I haven't tried other with kernel 5.14 as CentOS Stream 9 use...don't know if the new kernel is the issue?

Normally I install SDK manually but to be sure I also tried to install SDK using the package from the official repo:
dnf install dotnet-sdk-6.0.x86_6

To Reproduce

I'll try to make small test-project...I'll update with a link

Further technical details

DOTNET INFO:

[root@CentOS-01 ~]# dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.102 (also tried 6.0.201, same problem)
 Commit:    49861cb924

Runtime Environment:
 OS Name:     centos
 OS Version:  9
 OS Platform: Linux
 RID:         centos.9-x64
 Base Path:   /usr/lib64/dotnet/sdk/6.0.102/

Host (useful for support):
  Version: 6.0.2
  Commit:  839cdfb0ec

.NET SDKs installed:
  6.0.102 [/usr/lib64/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.2 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.2 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]

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

- Include the output of `dotnet --info`
- The IDE (VS / VS Code/ VS4Mac) you're running on, and its version

DISTRO INFO:

Distro info:
NAME="CentOS Stream"
VERSION="9"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="9"
PLATFORM_ID="platform:el9"
PRETTY_NAME="CentOS Stream 9"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:centos:centos:9"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"

Kernel-release: 5.14.0-71.el9.x86_64
Kernel-version:    dotnet/sdk#1 SMP PREEMPT Tue Mar 8 20:35:50 UTC 2022
@dotnet-issue-labeler
Copy link

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-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Mar 27, 2022
@MrM40 MrM40 changed the title Cannot debug on CentOS Stream 9 from Visual Studio 2022 Cannot debug on CentOS Stream 9 from Visual Studio 2022 (Kernel 5.14) Mar 27, 2022
@MrM40
Copy link
Author

MrM40 commented Mar 27, 2022

NET6 test project: HelloWorld
Works fine in Debian Buster but fail in CentOS

@MrM40
Copy link
Author

MrM40 commented Mar 27, 2022

Let me know if you need a copy of CentOS Stream 9 KVM/QEMU VM ;-)

@MrM40
Copy link
Author

MrM40 commented Apr 9, 2022

As one might expect it doesn't work on RHEL beta 9 (Plow) neither, kernel 5.14.0-70.5.1.el9_0.x86_64

@danmoseley
Copy link
Member

This might belong in the VS feedback system, so it goes to the debugger team.

@omajid
Copy link
Member

omajid commented Apr 9, 2022

Out of curiosity, does Ubuntu 22.04 work?

@MrM40
Copy link
Author

MrM40 commented Apr 10, 2022

Haven't tried Ubuntu

@danmoseley danmoseley transferred this issue from dotnet/sdk Apr 10, 2022
@dotnet-issue-labeler
Copy link

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.

@danmoseley
Copy link
Member

This seems like it's for the diagnostics team.

@msftbot
Copy link
Contributor

msftbot bot commented Apr 10, 2022

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

Issue Details

Describe the bug

When I try to debug an assembly running on CentOS Stream 9 from VS 2022 using SSH I get this error in VS:

error

It works fine with others Linux installations e.g. Debian 11 bullseye. Although I haven't tried other with kernel 5.14 as CentOS Stream 9 use...don't know if the new kernel is the issue?

Normally I install SDK manually but to be sure I also tried to install SDK using the package from the official repo:
dnf install dotnet-sdk-6.0.x86_6

To Reproduce

I'll try to make small test-project...I'll update with a link

Further technical details

DOTNET INFO:

[root@CentOS-01 ~]# dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.102 (also tried 6.0.201, same problem)
 Commit:    49861cb924

Runtime Environment:
 OS Name:     centos
 OS Version:  9
 OS Platform: Linux
 RID:         centos.9-x64
 Base Path:   /usr/lib64/dotnet/sdk/6.0.102/

Host (useful for support):
  Version: 6.0.2
  Commit:  839cdfb0ec

.NET SDKs installed:
  6.0.102 [/usr/lib64/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.2 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.2 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]

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

- Include the output of `dotnet --info`
- The IDE (VS / VS Code/ VS4Mac) you're running on, and its version

DISTRO INFO:

Distro info:
NAME="CentOS Stream"
VERSION="9"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="9"
PLATFORM_ID="platform:el9"
PRETTY_NAME="CentOS Stream 9"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:centos:centos:9"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"

Kernel-release: 5.14.0-71.el9.x86_64
Kernel-version:    dotnet/sdk#1 SMP PREEMPT Tue Mar 8 20:35:50 UTC 2022
Author: MrM40
Assignees: baronfel
Labels:

area-Diagnostics-coreclr, untriaged

Milestone: -

@tommcdon tommcdon added this to the 7.0.0 milestone Apr 11, 2022
@tommcdon tommcdon removed the untriaged New issue has not been triaged by the area owner label Apr 11, 2022
@tommcdon
Copy link
Member

@hoyosjs

@MrM40
Copy link
Author

MrM40 commented Apr 26, 2022

Just gave OpenSUSE 15.4 a try (also kernal 5.14) and debugging works fine, so it seems to be RHEL'ish 9.x related :-/

@hoyosjs
Copy link
Member

hoyosjs commented Jul 14, 2022

image

I can debug this fine with centos on an older kernel, and centos stream 9 in both 6.0 and 7.0:

NAME="CentOS Stream"
VERSION="9"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="9"
PLATFORM_ID="platform:el9"
PRETTY_NAME="CentOS Stream 9"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:centos:centos:9"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
Linux e08a68cbc637 5.15.0-1014-azure

Closing this as no repro since centos + kernel version wasn't enough to repro even with the same project.

@hoyosjs hoyosjs closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2022
@msftbot msftbot bot locked as resolved and limited conversation to collaborators Aug 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants