delve: dlv exec throws "could not launch process: EOF"
Please answer the following before submitting your issue:
Note: Please include any substantial examples (debug session output, stacktraces, etc) as linked gists.
- What version of Delve are you using (
dlv version
)?
Delve Debugger
Version: 1.0.0-rc.2
Build: $Id: 5c7676404d10d52e16be57fea744a7312b831f0c $
- What version of Go are you using? (
go version
)?
go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/pablo.molnar"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.9.2/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.9.2/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/v9/yp3rfr6n41lgnfl0g6c4wxqw385cfp/T/go-build535672296=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
- What operating system and processor architecture are you using?
sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.1
BuildVersion: 17B48
uname -a
Darwin MACC02TX14FHTDD 17.2.0 Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64
- What did you do?
go get -u github.com/derekparker/delve/cmd/dlv
go build -gcflags "-N -l" -a github.com/golang/example/hello
$GOPATH/bin/dlv exec hello
could not launch process: EOF
-
What did you expect to see?
To dlv start a debug session
-
What did you see instead?
could not launch process: EOF
This is a new MacBook Pro (MacBookPro14,3) with all the updates. Old MacBook Pro (MacBookPro11,5) with all updates works fine… Not working through the terminal nor IntelliJ IDEA Go plugin
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 64 (11 by maintainers)
Commits related to this issue
- [debugserver] Fix handling of the 'g' packet LLDB doesn't use this packet so we never hit this, but it looks like some other projects talk to debugserver and are hitting an assert (https://github.com... — committed to fredriss/swift-lldb by fredriss 6 years ago
- [debugserver] Fix handling of the 'g' packet LLDB doesn't use this packet so we never hit this, but it looks like some other projects talk to debugserver and are hitting an assert (https://github.com... — committed to jyknight/llvm-monorepo by fredriss 6 years ago
Temporarily solved the problem by removing new Command Line Tools
$ sudo rm -rf /Library/Developer/CommandLineTools
then go to page https://developer.apple.com/download/more/ download and install previous version
Enjoy!
Command Line Tools (macOS 10.13) for Xcode 9.2 - Dec 4, 2017 @pihao
Ran into this problem today. @otRock is on the right track, but I imagine a more correct download would be the
Command Line Tools (macOS 10.13) for Xcode 9.2
Looks like, at least on my system, that
/Library/Developer/CommandLineTools
was updated on April 1st (how appropriate). I’m about to reboot to install 10.13.4 so I’m hoping that this old version of command line tools will not magically disappear again.Good news, today I’ve received an update for Command Line Tools (macOS High Sierra version 10.13) beta 1 for Xcode, version 10.0 and
dlv
works fine after the update 🎉@MwumLi , Thanks Reinstall the dlv package works for me. I run the following commands and the golang works well after go get -u github.com/derekparker/delve/cmd/dlv My MAC has macOS version 10.13.3 (17D102). After it upgrade to Command Line Tools 9.3, I got the error: could not launch process: EOF