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

trace: allow tracing from (or skip tracing on) G-less threads #3758

Closed
aktau opened this issue Jun 25, 2024 · 0 comments · Fixed by #3759
Closed

trace: allow tracing from (or skip tracing on) G-less threads #3758

aktau opened this issue Jun 25, 2024 · 0 comments · Fixed by #3759

Comments

@aktau
Copy link

aktau commented Jun 25, 2024

Delve version:

  1. What version of Delve are you using (dlv version)? Version: 1.22.1
  2. What version of Go are you using? (go version)? go version 1.23 pre-release +7f76c00fc5
  3. What operating system and processor architecture are you using? Linux AMD64
  4. What did you do? dlv trace '.*mallocgc.*' )
  5. What did you expect to see? No crashing
  6. What did you see instead? A crash

Program:

package main

func main() {
        x := make([]byte, 2147483632)
        y := make([]byte, 2147483632)
        _, _ = x, y
        for {
        }
}

Crash:

$ dlv trace '.*mallocgc.*' 
> goroutine(0): runtime.mallocgc()
no G executing on thread 2379080
aarzilli added a commit to aarzilli/delve that referenced this issue Jun 26, 2024
Use a thread scope to evaluate breakpoint variables if the current
thread does not have an associated goroutine.

Fixes go-delve#3758
aarzilli added a commit to aarzilli/delve that referenced this issue Jun 26, 2024
Use a thread scope to evaluate breakpoint variables if the current
thread does not have an associated goroutine.

Fixes go-delve#3758
derekparker pushed a commit that referenced this issue Jul 1, 2024
Use a thread scope to evaluate breakpoint variables if the current
thread does not have an associated goroutine.

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

Successfully merging a pull request may close this issue.

2 participants