'VS Code Terminal opens, then crashes and disappears after pressing kill button

I get this error after I clicked "Kill terminal" in VS Code:

"Unable to resolve your shell environment: Unexpected exit code from spawned shell (code null, signal SIGSEGV)"

enter image description here

Now my VSCode does this when I click on Terminal, New Terminal: It opens the window for about one second and then crashes and disappears.

I already deleted the settings.json file because I found a post on a similar problem. Unfortunately this did not help.



Solution 1:[1]

I reinstalled MacOS. This was the only solution that actually worked.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Finn