Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

panic: send on closed channel

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
go
Domain
backend

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ElementsProject/glightning

All issues in ElementsProject/glightning

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.