Skip to content
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

could not launch process: EOF #2794

Closed
winterbesos opened this issue Nov 16, 2021 · 6 comments
Closed

could not launch process: EOF #2794

winterbesos opened this issue Nov 16, 2021 · 6 comments

Comments

@winterbesos
Copy link

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.7.2
    Build: $Id: 5b6f24e7fbcad3fe3bc574d3763b2f20afa1d6a1 $

  2. What version of Go are you using? (go version)?
    go version go1.17.2 darwin/arm64

  3. What operating system and processor architecture are you using?
    Apple M1 macOS Monterey

  4. What did you do?
    arch -arch arm64 dlv debug --log --headless .

  5. What did you expect to see?
    It works.

  6. What did you see instead?
    2021-11-16T20:19:09+08:00 info layer=debugger launching process with args: [/Users/salo/Downloads/hello/__debug_bin]
    debugserver-@(#)PROGRAM:LLDB PROJECT:lldb-1205.0.28
    for arm64.
    Got a connection, launched process /Users/salo/Downloads/hello/__debug_bin (pid = 18627).
    could not launch process: EOF

@aarzilli
Copy link
Member

Can you post the output with the option --log-output=gdbwire added?

@winterbesos
Copy link
Author

winterbesos commented Nov 16, 2021

arch -arch arm64 dlv debug --log-output=gdbwire --log --headless .

API server listening at: 127.0.0.1:58556
2021-11-16T21:07:54+08:00 debug layer=gdbconn executing /Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework/Versions/A/Resources/debugserver [--stdin-path /dev/stdin --stdout-path /dev/stdout --stderr-path /dev/stderr -F -R 127.0.0.1:58557 -- /Users/salo/Downloads/hello/__debug_bin]
debugserver-@(#)PROGRAM:LLDB PROJECT:lldb-1205.0.28
for arm64.
Got a connection, launched process /Users/salo/Downloads/hello/__debug_bin (pid = 620).
2021-11-16T21:07:54+08:00 debug layer=gdbconn <- +
2021-11-16T21:07:54+08:00 debug layer=gdbconn <- $QStartNoAckMode#b0
2021-11-16T21:07:54+08:00 debug layer=gdbconn -> +
2021-11-16T21:07:54+08:00 debug layer=gdbconn -> $OK#9a
2021-11-16T21:07:54+08:00 debug layer=gdbconn <- +
2021-11-16T21:07:54+08:00 debug layer=gdbconn <- $QThreadSuffixSupported#e4
2021-11-16T21:07:54+08:00 debug layer=gdbconn -> $OK#00
2021-11-16T21:07:54+08:00 debug layer=gdbconn <- $qSupported:swbreak+;hwbreak+;no-resumed+;xmlRegisters=i386#c5
2021-11-16T21:07:54+08:00 debug layer=gdbconn -> $qXfer:features:read+;PacketSize=20000;qEcho+#00
2021-11-16T21:07:54+08:00 debug layer=gdbconn <- $qRegisterInfo0#72
could not launch process: EOF

@aarzilli
Copy link
Member

Doesn't look like anything we can fix in delve. This should be reported to apple, debugserver is just crashing.

@artzor
Copy link

artzor commented Nov 22, 2021

@winterbesos
had the same issue, was able to resolve it via removal and installation of xcode command line tools:

sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install

@aarzilli
Copy link
Member

aarzilli commented Dec 8, 2021

Closing, problem with xcode not delve.

@aarzilli aarzilli closed this as completed Dec 8, 2021
@cornejodev
Copy link

@winterbesos had the same issue, was able to resolve it via removal and installation of xcode command line tools:

sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install

I had the same issue. After running these commands I was able to use the Delve Debugger and fix my problem! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants