-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/tools/go/pointer: crash in solver #25090
Comments
Not sure if this is the same issue, but comparing just stack traces it seems that the panic occurs somewhere else in the code. I'll put this here since it seems related either way. Running
Origin of the issue: ondrajz/go-callvis#24 |
@alandonovan I poked a little in callgraph analysis logs of the grpc package.. and I found narrowed down the cause of the panic: I don't know much about how the analysis internally works in pointer package, but I tried to add some extra debugs here and there, until I saw something relevant..
This probably has something to do with this call in func (ccc *lbCacheClientConn) close() {
ccc.mu.Lock()
// Only cancel all existing timers. There's no need to remove SubConns.
for _, entry := range ccc.subConnCache {
entry.cancel() // <-- this call
}
ccc.mu.Unlock()
} which is defined as a field (variable, not defined as func): type subConnCacheEntry struct {
sc balancer.SubConn
cancel func() // <-- func as variable
abortDeleting bool
} I suspect that might cause the check to fail for some reason. Or perhaps it catches some rare case when the graph data is not calculated properly? Here's more of the log output just before panic (not sure if it's gonna be helpful):
I'd be really glad if someone had time and looked at this. I want to prevent this from happening in go-callvis. And since grpc is pretty common dependency, it happens a lot: ondrajz/go-callvis#24 |
@alandonovan Is there any chance you or someone else willl have time to look into this? It still seems to occur.. |
I encountered this very bug; since this issue was opened on April 2018, I have the impression that is not a priority. @alandonovan is there any estimate as to when or if this problem will be fixed at all? |
Alan's example no longer reproduces for me with grpc @ c8482678 and callgraph @ bf6c7f2. The one major change to the instructions I did was to run: Not reproducing @ofabry's example on v0.13.0-beta of github.com/lightningnetwork/lnd. @ofabry can you confirm? |
x/tools/go/pointer was deleted; see #59676. |
TODO: look through the 1.7GB log file and identify what's up with node n31786.
The text was updated successfully, but these errors were encountered: