-
Notifications
You must be signed in to change notification settings - Fork 233
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
bug/regression: goroutine leak #849
Comments
p-shahi
added
kind/bug
A bug in existing code (including security flaws)
P0
Critical: Tackled by core team ASAP
labels
Jun 13, 2023
Closed
p-shahi
changed the title
bug/regression: goroutine leak post 0.27.3 release
bug/regression: goroutine leak
Jun 13, 2023
Code review with issue described in d373974 |
To be reviewed: libp2p/go-libp2p-kbucket#120 |
addressed in #851 |
This was referenced Jun 15, 2023
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Jorropo reports:
Hey we have a goroutine leak somewhere in libp2p, is most likely a deadlock does not happear with kubo v0.20 (libp2p v0.27.3) but do with kubo v0.21-rc1 (libp2p v0.27.5), I was trying to bisect it but it sometime does not appear so it made my bisect wrong.
Tested with v0.28.0 and v0.27.6 both still have the issue.
Here is the profile and screenshot https://ipfs.io/ipfs/QmZpLiWizT6HmnbSjWrwzcp7oAdSYo9e9fsZGQh3Zdd7wM
Getting stuck here:
https://github.com/libp2p/go-libp2p/blob/b4c9fed04afd7874c7390162481b67caa783d169/p2p/protocol/identify/id.go#L406
https://github.com/libp2p/go-libp2p/blob/b4c9fed04afd7874c7390162481b67caa783d169/p2p/host/eventbus/basic.go#LL40C8-L40C8
https://github.com/libp2p/go-libp2p/blob/b4c9fed04afd7874c7390162481b67caa783d169/p2p/host/eventbus/basic.go#L397
You can start a new v0.21.0-rc1 Kubo node with accelerated DHT client (to generate a bunch of connection, you can also use the default client but will grow more slowly) and do ipfs diag profile then checkout goroutine.pprof most often has the issue.
Issue being discussed here https://filecoinproject.slack.com/archives/C03FFEVK30F/p1686692108230159
The text was updated successfully, but these errors were encountered: