-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls: gopls instantly segfaults after installation #61676
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
Comments
CC @golang/compiler Possibly related: #61229 Are you able to install gopls@v0.12.4, or does that also segfault after rebuilding with your current toolchain? |
Same results when installing v0.12.4 - install "succeeds" with linker warning, and then segfaults on any invocation |
@matthewdavidrodgers can you confirm if you are using Xcode 15? |
yes, i can confirm:
|
@matthewdavidrodgers there are some workarounds described here to help get you moving again: |
perfect - using |
@matthewdavidrodgers Hey how did you fix it? i have the same problem, thanks |
Here is what I did locally to build
|
For a one-line work-around this is what I'm using: |
Oh nice solution! It works for me. Thanks! |
gopls version
Installed at latest (v0.13.0) - but unable to verify as the version command also segfaults
go env
What did you do?
To begin my week I opened VS Code to a go project, which noted that the gopls server failed to initialize. I was not greeted with helpful logs:

I went to the terminal to see if I could initialize the server myself, but any commands to
gopls
instantly segfaulted with no other message.From here, I wiped go (via homebrew), removed
$HOME/go
(and thus gopls), and applied a software update to Mac OSX 13.5After reboot, I installed go (via homebrew) again. I then installed gopls via
go install golang.org/x/tools/gopls@latest
, which succeeded, albeit with a linker warning. Other issues in the project have indicated that the linker warning may be expected, or at least not an issue for usage.After installation, any invocation of
gopls
continues to instantly fails with a segmentation fault.Additionally, I will note that, following my go reinstallation, installing some packages fails with a linker assertion failure.
What did you expect to see?
A valid response from gopls
What did you see instead?
A segmentation fault
Editor and settings
N/A
Logs
Possibly relevant
go install
linker errorsThe text was updated successfully, but these errors were encountered: