-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
runtime: segmentation violation while adjusting stack pointer #61728
Comments
@golang/tools-team Pinging @qmuntal in case this rings any Windows bells. |
I'll need more information to reproduce this issue. Are you using Delve? If so, which version? Can you share a reproducer and some instructions to get to the fatal error? Thanks. |
❯ dlv version
Delve Debugger
Version: 1.21.0
Build: $Id: fec0d226b2c2cce1567d5f59169660cf61dc1efe $ I just debug program in vscode use |
Thanks @WAY29. I manage to reproduce the It looks like an issue in the Go runtime, I don't see how it can be related to running on WSL, and definitely not a Delve remote debugging issue, as running the test by hand also throws. More info:
@golang/runtime |
There's a lot of what I'd call gratuitous unsafe code in there. If it were me, I would take all the little unsafe-using functions, write less-efficient safe versions of the same, and put them under a build tag to allow testing with all the unsafe code avoided. Otherwise, my default assumption is you accidentally broke a runtime rule (they can be subtle) in unsafe code. The sort of short functions I'd expect to see from this would all inline trivially, and thus cost nothing. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
When I attempt to debug my project in VS Code by connecting to WSL2 using remote-wsl, I encounter a fatal error. The error occurs with a high probability, but it is not guaranteed to happen every time.
What did you expect to see?
Debug normally
What did you see instead?
The text was updated successfully, but these errors were encountered: