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 on m1 #2538

Closed
jay-wlj opened this issue Jun 16, 2021 · 5 comments
Closed

could not launch process on m1 #2538

jay-wlj opened this issue Jun 16, 2021 · 5 comments

Comments

@jay-wlj
Copy link

jay-wlj commented Jun 16, 2021

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.6.1
    Build: $Id: 114218c22f3791287c4bc2f4ff35a846a1416ee9 $

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

  3. What operating system and processor architecture are you using?
    MacBook Air (M1, 2020) Big Sur 11.3.1

  4. What did you do?
    Try to run go application

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "GoLaunch",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "${fileDirname}",
            "env": {
            },
            "backend": "native",
            "args":["start"],
            "dlvLoadConfig": {
                // "followPointers": true,
                "maxVariableRecurse": 1,
                "maxStringLen": 512,
                "maxArrayValues": 64,
                "maxStructFields": -1
            }
        }
    ]
}
  1. What did you expect to see?
API server listening at: 127.0.0.1:28991
could not launch process: stub exited while waiting for connection: exit status 0

and i run

jayden@MacBook-Jayden hty % CGO_ENABLED=0 arch -arch arm64 dlv debug --log --headless .
API server listening at: 127.0.0.1:54482
2021-06-16T11:56:32+08:00 info layer=debugger launching process with args: [/opt/go/src/hty/__debug_bin]
debugserver-@(#)PROGRAM:LLDB  PROJECT:lldb-1205.0.27
 for arm64.
Got a connection, launched process /opt/go/src/hty/__debug_bin (pid = 2185).
2021-06-16T11:56:32+08:00 warning layer=debugger debug_frame workaround not applied: function internal/cpu.Initialize (at 0x104459070) covered by 0x104459070-0x1044590c0

How I can launch dlv with arm64 mod ?

@aarzilli
Copy link
Member

What is the problem exactly? You posted two transcripts but the second one is normal and the first one can't be happening if the second one does.

@aloooha
Copy link

aloooha commented Jun 19, 2021

same version and same error

@derekparker
Copy link
Member

Can someone who is experiencing this error please post a full session transcript so we can more clearly see what the error is?

@polinasok
Copy link
Collaborator

This reminds me of golang/vscode-go#1637

@aarzilli
Copy link
Member

aarzilli commented Aug 4, 2021

Closing, no user feedback. The problem is probably that when running delve from vscode the wrong architecture gets specified, i.e. golang/vscode-go#1637

@aarzilli aarzilli closed this as completed Aug 4, 2021
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

5 participants