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

event: add missing unlock before panic #20653

Merged
merged 1 commit into from
Feb 12, 2020
Merged

event: add missing unlock before panic #20653

merged 1 commit into from
Feb 12, 2020

Conversation

BurtonQin
Copy link
Contributor

In event/feed.go,
func Send(), f.mu.Lock() is on L135,
and f.mu.Unlock() is on L143.
However, there is a panic on L141.
If the panic is executed, f.mu will still be locked even after recovery.
The fix is to add f.mu.Unlock() before panic.

@fjl fjl merged commit 1821328 into ethereum:master Feb 12, 2020
enriquefynn pushed a commit to enriquefynn/go-ethereum that referenced this pull request Mar 10, 2021
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Aug 26, 2024
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Aug 26, 2024
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Aug 29, 2024
gzliudan added a commit to XinFinOrg/XDPoSChain that referenced this pull request Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants