delve: proctl_test.go:23: Launch(): could not fork/exec

Running make test on a mac, I get the above error. Subsequently, when I try make install, it installs without complaint, but when dlv run, it doesn’t allow any subcommands (Command failed: debugger isn't running)

See output from make test, below (note that I sprintf’d the return value of C.fork_exec incase it helps. It returns ‘-1’).

Please let me know if you need any more info. Ta.

➜ delve git:(master) ✗ sw_vers -productVersion 10.10.2 ➜ delve git:(master) ✗ CERT=dlv-cert make test go test github.com/derekparker/delve/terminal github.com/derekparker/delve/dwarf/frame github.com/derekparker/delve/dwarf/op github.com/derekparker/delve/dwarf/util github.com/derekparker/delve/source github.com/derekparker/delve/dwarf/line ok github.com/derekparker/delve/terminal 0.028s ok github.com/derekparker/delve/dwarf/frame 0.006s ok github.com/derekparker/delve/dwarf/op 0.005s ok github.com/derekparker/delve/dwarf/util 0.006s ok github.com/derekparker/delve/source 0.007s ok github.com/derekparker/delve/dwarf/line 0.173s cd proctl && go test -c github.com/derekparker/delve/proctl && codesign -s dlv-cert ./proctl.test && ./proctl.test && rm ./proctl.test — FAIL: TestExit (0.15s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestHalt (0.16s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestStep (0.00s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestBreakPoint (0.00s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestBreakPointInSeperateGoRoutine (0.16s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestBreakPointWithNonExistantFunction (0.00s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestClearBreakPoint (0.00s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestNextGeneral (0.16s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestNextGoroutine (0.00s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestNextFunctionReturn (0.00s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestNextFunctionReturnDefer (0.16s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestRuntimeBreakpoint (0.16s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestFindReturnAddress (0.00s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestSwitchThread (0.00s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestFunctionCall (0.00s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestVariableEvaluation (0.17s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestVariableFunctionScoping (0.00s) proctl_test.go:23: Launch(): could not fork/exec -1 — FAIL: TestLocalVariables (0.00s) proctl_test.go:23: Launch(): could not fork/exec -1 FAIL make: *** [test] Error 1

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 31 (16 by maintainers)

Commits related to this issue

Most upvoted comments

Take a look at proc.Launch in proc/proc_darwin.go and also fork_exec in proc/exec_darwin.c, that’s where the message comes from. You should also check out the branch at #525 since some of this code is about to change.

You could also look at this