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)
- 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 2
- Add defer functions to follow-calls tracing option
- Breakpoint line numbers not matching HOT 1
- Hitting compile error when launching delve in devbox HOT 4
- `undefined behavior - version of Delve is too old for Go version 1.22.3 (maximum supported version 1.20)` HOT 2
- trace: allow tracing from (or skip tracing on) G-less threads
- panic when data length is greater than memCache size
- Unable to find escape variables when using Delve HOT 7
- Fail to set watchpoint after clearing one of four HOT 3
- Dwarf parsing infinite loop causes OOM HOT 1
- Feature request: restart the current function HOT 6
- Seeing a warning that delve is too old for the latest Go version 1.22.5 HOT 1
- align the output of vars with 'expresson' spec
- Delve Fails to Locate Source Files Across All Projects on Apple M1 Pro (macOS) with "no source available" Error HOT 1
- Improper string representation of Google uuid.UUID type HOT 1
- Inconsistent go and delve expression results
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.