delve: Stub exited while attempting to connect: Segmentation Fault Error

Please answer the following before submitting your issue:

Note: Please include any substantial examples (debug session output, stacktraces, etc) as linked gists.

  1. What version of Delve are you using (dlv version)?
Delve Debugger
Version: 1.0.0-rc.1
Build: 
  1. What version of Go are you using? (go version)? go version go1.8.3 darwin/amd64
  2. What operating system and processor architecture are you using? macOS Sierra 10.12.5, Intel Core i7
  3. What did you do? Installed dev with brew and also manually. Ran vscode with debugging.
  4. What did you expect to see? Expected the debugging to work.
  5. What did you see instead?
2017/06/09 13:01:42 debugger.go:97: launching process with args: [/Users/alan.chua/Projects/GoWorkspace/src/github.com/alan-chua/strservice/main/debug]
could not launch process: stub exited while attempting to connect: signal: segmentation fault
Process exiting with code: 1

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 22 (8 by maintainers)

Most upvoted comments

Okay so I pulled the command line tools from developer.apple.com. Once I installed it from there it finally works thank you!

If xcode-select --install is not working for you, try the method given at https://stackoverflow.com/a/44234214 Which works for me.