cloudwego / cloudwego/goref

grf cannot analyze the large core dump generated by gcore.

Open
#73 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1k
Forks
48
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Using gcore to generate kube-apiserver coredump, grf failed to analyze.

**To Reproduce**

Steps to reproduce the behavior:
1. Run kube-apiserver
2. gcore ${pid}, the core.599019 is nearly 107G
3. ./grf core kube-apiserver core.599019 -v 5
4. See error
```
2026-05-20T11:45:42+08:00 info layer=debugger opening core file core.599019 (executable kube-apiserver)
2026-05-20T11:45:43+08:00 debug layer=debugger Adding target 599019 ""
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of s: parametric type without a dictionary
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:50+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:51+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of waitingEntryByData: could not resolve interface type
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:52+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of q: parametric type without a dictionary
2026-05-20T11:45:53+08:00 error layer=debugger could not resolve parametric type of item: parametric type without a dictionary
2026/05/20 11:46:02 reference.go:614: successfully output to `grf.out`
2026-05-20T11:46:02+08:00 debug layer=debugger detaching
```
5. `go tool pprof` show nothing

**Expected behavior**

`go tool pprof` will show the memory reference distribution of heap objects

**Screenshots**

If applicable, add screenshots to help explain your problem.

**Goref version:**

Please provide the version of goref you are using.

**Environment:**

The output of `go env`.

**Additional context**

Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with the reported gcore-generated kube-apiserver dump and the `./grf core kube-apiserver core.599019 -v 5` command. Investigate the repeated parametric-type and interface-resolution errors; done means grf can analyze this large core dump without those failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
devtools
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.