Skip to content

Debugger crashes on Linux when debugging stops #2439

Description

@jchand99

Environment data

dotnet --info output:
NET Core SDK (reflecting any global.json):
Version: 2.1.302
Commit: 9048955601

Runtime Environment:
OS Name: arch
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /opt/dotnet/sdk/2.1.302/

Host (useful for support):
Version: 2.1.2
Commit: 811c3ce6c0

.NET Core SDKs installed:
2.1.302 [/opt/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.2 [/opt/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.2 [/opt/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.2 [/opt/dotnet/shared/Microsoft.NETCore.App]

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

VS Code version: 1.25.1
C# Extension version: 1.15.2

Steps to reproduce

In launch.json, set "console": to either "integratedTerminal" or "externalTerminal" and run a program like hello world.

Expected behavior

Close the program successfully.

Actual behavior

When the program finishes, it prints out this message in the terminal:

free(): invalid pointer
/usr/bin/bash: line 1: 28260 Aborted (core dumped) ''/home/kas/.vscode/extensions/ms-vscode.csharp-1.15.2/.debugger/vsdbg --interpreter=vscode --connection=/tmp/CoreFxPipe_vsdbg-ui-08464cdc40724bc882a7322eac8fca87

and the program does not stop running, you have to click the red square to get the program to exit.

Metadata

Metadata

Assignees

Labels

DebuggerfixedFixed and available in the stable version of C# Extension.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions