panic: send on closed channel
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with jrpc2/client.go, especially processResponse at line 145 and readQueue around line 120, using the provided stack trace as the entry point. Trace the channel lifecycle during concurrent responses and shutdown; done means the rare send-on-closed-channel panic is reproducibly understood and no longer occurs.
Written by the indexing model from the issue text.
Description
Encountered a really rare panic today (never before):
Go is complaining to send on a closed channel.
As this seems to be really really rare it is not urgent to fix this but I just wanted to document it here.
panic: send on closed channel
github.com/elementsproject/glightning/jrpc2.processResponse(0xc00074e140, 0xc0003b41b0)
/home/****[redacted]/go/pkg/mod/github.com/elementsproject/glightning@v0.0.0-20220713160855-49a9a8ec3e4d/jrpc2/client.go:145 +0xfe
created by github.com/elementsproject/glightning/jrpc2.(*Client).readQueue
/home/****[redacted]/go/pkg/mod/github.com/elementsproject/glightning@v0.0.0-20220713160855-49a9a8ec3e4d/jrpc2/client.go:120 +0x71
- Dominant language
- Go
- Stars
- 11
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ElementsProject/glightning
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
ElementsProject/glightning#15 · 1 comment · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in ElementsProject/glightning
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 60/100
github/gh-aw-mcpg#13748 ·
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
googleapis/librarian#7670 · 2 comments ·