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

Ubuntu Bash Windows 10 dlv debug session hanging #810

bamsy opened this issue Apr 29, 2017 · 2 comments

Ubuntu Bash Windows 10 dlv debug session hanging #810

bamsy opened this issue Apr 29, 2017 · 2 comments


Copy link

@bamsy bamsy commented Apr 29, 2017

I am currently setting up my go enviroment on Ubuntu bash on Windows 10. And when I run dlv debug the session hangs and I never see the (dlv) prompt.

  1. What version of Delve are you using (dlv version)?
    Version: 0.12.2

  2. What version of Go are you using? (go version)?
    go version go1.8.1 linux/amd64

  3. What operating system and processor architecture are you using?
    I am using Ubuntu Bash on Windows 10.
    Ubuntu Version:
    Ubuntu 16.04.2 LTS

  4. What did you do?
    I ran the following:
    dlv debug log=true

And I get the following output
2017/04/29 09:04:17 server.go:73: Using API v1
2017/04/29 09:04:17 debugger.go:90: launching process with args: [/home/bamsy/dev/go/src/]

  1. What did you expect to see?
    I expected to see the (dlv) prompt

  2. What did you see instead?

After the above lines were printed the terminal just appears to be hung and I need to CTRL-C to get out of it.

I did a little debugging and found that the program never exits a for loop in the following function

func (dbp *Process) wait(pid, options int) (int, *sys.WaitStatus, error)

which is in the following file:

It seems the wpid is always returning 0 with no error and the process is never in a zombie state so the for loop goes forever.

@bamsy bamsy changed the title Ubuntu Bash Windows 10 debug session hanging Ubuntu Bash Windows 10 dlv debug session hanging Apr 30, 2017
Copy link

@aarzilli aarzilli commented May 1, 2017

Delve is supported on linux and windows not on the linux-windows chimera. I'm not even sure ptrace works in that environment. AFAIK even go isn't officially supported there yet (or possibly ever): golang/go#16628, golang/go#17365

Copy link

@derekparker derekparker commented May 1, 2017

Closed due to lack of support for Go with this setup, and the fact that (as mentioned in those threads) it's up to Microsoft to make Linux things work properly using their setup.

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

No branches or pull requests

3 participants