-
Notifications
You must be signed in to change notification settings - Fork 677
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
Ubuntu 19.04: No usable version of the libssl was found; Error: Input connection was closed. Aborting the debug session. #3010
Comments
@zeroskyx this really looks to be an incompatibility between .NET and Ubuntu 19, though I am having trouble finding an issue for it. How did you install the .NET SDK (ex: apt-get?) |
Here is the code that seems to be probing for various openssl versions. Do you have any of these installed? Do you know if you can install them? |
@gregg-miskelly: libssl1.1 is installed: When running a pre-compiled application that I had compiled before the update to 19.04 that used websockets, the same error occurs and the application is terminated. After re-compiling the application in 19.04 it works. I have installed the dotnet-sdk manually. But it is the latest 2.2.203 version. I can't seem to install libssl1.0 alongside 1.1. Edit: I just noticed in the referenced code that is failing that |
For the app that worked once you recompiled -- it looks like you just have the 2.2.4 runtime installed. Did you previously have a different runtime installed? What libssl so's do you have? Example:
I can't think of any good theory as to how recompiling would fix a problem like this. The only ideas that I have --
|
@gregg-miskelly: it is possible that the previous version was compiled with an older SDK, you are right. The runtime was the same but the application was a platform-dependent contained compilation. On the other hand, here are my libssos in /usr as you requested:
Thanks a lot for you effort! |
Update: interestingly when I force version 1.1 via an environment variable, another error occurs: |
@bartonjs is the .NET team aware of issues with a new version of libssl in Ubuntu 19 that is missing |
Nevermind - I see, there was a big change to this in 2.2.3. |
@zeroskyx I will try to send you a private vsdbg-ui running on top of 2.2.4, and we can see if that fixes this. |
I setup my own Ubuntu 19.04 machine, and I was able to reproduce the problem using the current in-market version of the debugger, and the problem didn't happen with my new debugging. I am currently publishing the new debugger to the web and I expect to put out a beta release of the C# extension with the fix before the end of day today. |
This repo's CI build is broken, so I am having trouble getting an official build out. So here is a private one: csharp-1.19.1-beta1.zip To use:
|
@gregg-miskelly Your quick fix helps, I have just applied your changes and debugger works fine on ubuntu 19.04 |
This solved an issue I was having on the Fedora 30 beta. The debugger would silently crash from a SIGABRT but is working again using 1.19.1-beta1. |
I published a beta with a fix for this issue, so I am now closing this. |
Issue Description
After upgrading to Ubuntu 19.04 debugging is no longer possible with VSCode.
Upon starting a debug session, the following output is visible with a clean console application:
Running without any breakpoints still works.
Steps to Reproduce
dotnet new console
code .
"console": "integratedTerminal"
Expected Behavior
When starting a debug session, the application executes and the debugger stops at the set breakpoint.
Actual Behavior
The application launches and aborts with the following error in the terminal:
Note: when omitting to change the console to integratedTerminal, no error message is displayed and the behavior is the same.
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.33.1
C# Extension: 1.19.0
Mono Information
OmniSharp using built-in monoDotnet Information
.NET Core SDK (reflecting any global.json): Version: 2.2.203 Commit: e5bab63ecaRuntime Environment:
OS Name: ubuntu
OS Version: 19.04
OS Platform: Linux
RID: linux-x64
Base Path: /opt/dotnet/sdk/2.2.203/
Host (useful for support):
Version: 2.2.4
Commit: f95848e524
.NET Core SDKs installed:
2.2.203 [/opt/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.4 [/opt/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.4 [/opt/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.4 [/opt/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
Update: when using the following main method and not settings a breakpoint beforehand, another error is produced:
Produced output in the terminal:
The text was updated successfully, but these errors were encountered: