Comments (10)
Hmmm... What kind of app is it? What happens when you run it by itself,
does it panic?
You say the process isn't running, what does ps
have to say about your
process while Delve is running?
I'm wondering if your program is crashing and a signal is occurring that
delve is ignoring, causing your app to die and delve to block in a wait
call while waiting for a breakpoint trap.
If it's not too much trouble could you try strace
ing delve and see if
it's hanging out at a wait
call? Or if your code is open source maybe I
can try delve against it and see what's going on.
On Friday, February 13, 2015, Tzvetan Mikov [email protected]
wrote:
I downloaded Go 1.4.1 and built my test app - it worked. Then I did
go get github.com/derekparker/delve/cmd/dlv
dlv path/to/my/app
continueIt prints "new thread spawned 11399" and hangs. ^C doesn't work. The app
isn't running.I tried setting breakpoints, etc, but it always hangs after the first
"continue".—
Reply to this email directly or view it on GitHub
https://github.com/derekparker/delve/issues/67.
from delve.
@tmikov any update on this?
from delve.
Yes, sorry. The app is "hello world", but it hardly matters because it never even reaches "main". It locks up as soon as I do "continue" in the very beginning then and I need to kill "dlv" from a different terminal. I will run "strace" and post as soon as I have something.
from delve.
Some more information after testing. The main() routine contains just "fmt.Printf(hello world)" and it never executes. However there is some static variable initialization of logging, etc, If I compile a truly trivial app printing "Hello world", "dlv" does work. So, I suspect that the logging is causing the problem here. I am using "https://github.com/op/go-logging" .
I should note that the app itself does work and I can debug it with "gdb".
Unfortunately it is not open source, but I might be able to narrow it down to an example illustrating the problem.
I ran an "strace" and it is inclear. There are 5 threads. One is blocked in "select(0, NULL, NULL, NULL, {0, 10000}", three are blocked in "futex(..., FUTEX_WAIT, 0, NULL"
from delve.
@tmikov thanks for looking into it more. If you could post a gist of a small program that reproduces the failure I'll look into this issue further - could be related to #41. I was just able to reproduce a bug that's causing Delve to hang.
from delve.
Alright, I know where we're hanging just not sure why. I'll start looking into a fix for this.
from delve.
@tmikov figured out what's wrong - now to fix it. Thank you very much for your help and for reporting this.
from delve.
Closing in favor of #70.
from delve.
This doesn't seem like an easy fix :-(
Do you still need me to prepare a sample reproducing the problem?
from delve.
Yeah it's tough, I have some ideas for how to get around this for the time being though.
No need for a small sample, thank you though.
from delve.
Related Issues (20)
- Projects needing CGO_ENABLED=1 cause "could not find rodata struct member" on M1 MacOS HOT 15
- `rr` parsing broken by recent rr changes
- Feature request: dump byte slice memory contents into file
- add note about DOCKER_DEFAULT_PLATFORM while debugging on mac HOT 1
- In debug mode, the process does not stop at a breakpoint HOT 8
- macOS Linking error running with `dlv debug` HOT 1
- Proposal: support outputting Flame Graph for heap object references to troubleshoot memory leaks HOT 2
- Issue running debugger on a MAC M2 using vscode/devcontainer against an linux amd64 docker/rosseeta container. HOT 1
- Various RR backend failures with RR 5.7.0 and Delve 1.22.1 HOT 2
- [BUG] `rev` command not available HOT 2
- Can't connect VSCode to dlv server properly HOT 23
- panic when delve process is stopped HOT 1
- support for Termux debugger with the Android
- How build arm version HOT 1
- Support `dlv types` from DAP (the same way `types` is supported in the command line `dlv` REPL)
- polish go1.23 range-over-func UX HOT 1
- Does delve ignore // line instructions during debug HOT 1
- Breakpoints do not work in packages with a TestMain(*testing.M) function HOT 1
- Unable to print a package string const value during a breakpoint HOT 1
- Error clearing stack watchpoint HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delve.