[GH-ISSUE #2361] panic error: send on closed channel #1878

Closed
opened 2026-05-05 13:12:52 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @Lua12138 on GitHub (Apr 21, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2361

[REQUIRED] hat version of frp are you using

Version: 0.35.1

[REQUIRED] What operating system and processor architecture are you using
OS: Debian 4.19.181-1 (2021-03-19)
CPU architecture: x86_64

[REQUIRED] description of errors

confile

log file

2021/04/21 12:48:42 [E] [control.go:324] [0e9f2f4b2c7d39e2] panic error: send on closed channel
2021/04/21 12:48:42 [E] [control.go:325] [0e9f2f4b2c7d39e2] goroutine 1294227 [running]:
runtime/debug.Stack(0xc0000b8070, 0x3, 0xc0090bc8c0)
        runtime/debug/stack.go:24 +0x9f
github.com/fatedier/frp/server.(*Control).reader.func1(0xc008bdfe30)
        github.com/fatedier/frp/server/control.go:325 +0xe5
panic(0xa36ac0, 0xd04260)
        runtime/panic.go:969 +0x1b9
github.com/fatedier/frp/server.(*Control).reader(0xc001df4c00)
        github.com/fatedier/frp/server/control.go:345 +0x279
created by github.com/fatedier/frp/server.(*Control).Start
        github.com/fatedier/frp/server/control.go:204 +0x1be

2021/04/21 13:00:28 [E] [control.go:324] [cca6c8262e2a4777] panic error: send on closed channel
2021/04/21 13:00:28 [E] [control.go:325] [cca6c8262e2a4777] goroutine 1458212 [running]:
runtime/debug.Stack(0xc0000b8070, 0x3, 0xc0090731c0)
        runtime/debug/stack.go:24 +0x9f
github.com/fatedier/frp/server.(*Control).reader.func1(0xc0094fa330)
        github.com/fatedier/frp/server/control.go:325 +0xe5
panic(0xa36ac0, 0xd04260)
        runtime/panic.go:969 +0x1b9
github.com/fatedier/frp/server.(*Control).reader(0xc0049a9b00)
        github.com/fatedier/frp/server/control.go:345 +0x279
created by github.com/fatedier/frp/server.(*Control).Start
        github.com/fatedier/frp/server/control.go:204 +0x1be

Steps to reproduce the issue

  1. When there are about 2,000 devices connected, maintaining it for a period of time will lead to application Crash

Supplementary information

Can you guess what caused this issue

Checklist:

  • [] I included all information required in the sections above
  • [] I made sure there are no duplicates of this report (Use Search)
Originally created by @Lua12138 on GitHub (Apr 21, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2361 <!-- From Chinese to English by machine translation, welcome to revise and polish. --> <!-- ⚠️⚠️ Incomplete reports will be marked as invalid, and closed, with few exceptions ⚠️⚠️ --> <!-- in addition, please use search well so that the same solution can be found in the feedback, we will close it directly --> <!-- for convenience of differentiation, use FRPS or FRPC to refer to the FRP server or client --> **[REQUIRED] hat version of frp are you using** <!-- Use ./frpc -v or ./frps -v --> Version: 0.35.1 **[REQUIRED] What operating system and processor architecture are you using** OS: Debian 4.19.181-1 (2021-03-19) CPU architecture: x86_64 **[REQUIRED] description of errors** **confile** <!-- Please pay attention to hiding the token, server_addr and other privacy information --> **log file** <!-- If the file is too large, use Pastebin, for example https://pastebin.ubuntu.com/ --> ``` 2021/04/21 12:48:42 [E] [control.go:324] [0e9f2f4b2c7d39e2] panic error: send on closed channel 2021/04/21 12:48:42 [E] [control.go:325] [0e9f2f4b2c7d39e2] goroutine 1294227 [running]: runtime/debug.Stack(0xc0000b8070, 0x3, 0xc0090bc8c0) runtime/debug/stack.go:24 +0x9f github.com/fatedier/frp/server.(*Control).reader.func1(0xc008bdfe30) github.com/fatedier/frp/server/control.go:325 +0xe5 panic(0xa36ac0, 0xd04260) runtime/panic.go:969 +0x1b9 github.com/fatedier/frp/server.(*Control).reader(0xc001df4c00) github.com/fatedier/frp/server/control.go:345 +0x279 created by github.com/fatedier/frp/server.(*Control).Start github.com/fatedier/frp/server/control.go:204 +0x1be 2021/04/21 13:00:28 [E] [control.go:324] [cca6c8262e2a4777] panic error: send on closed channel 2021/04/21 13:00:28 [E] [control.go:325] [cca6c8262e2a4777] goroutine 1458212 [running]: runtime/debug.Stack(0xc0000b8070, 0x3, 0xc0090731c0) runtime/debug/stack.go:24 +0x9f github.com/fatedier/frp/server.(*Control).reader.func1(0xc0094fa330) github.com/fatedier/frp/server/control.go:325 +0xe5 panic(0xa36ac0, 0xd04260) runtime/panic.go:969 +0x1b9 github.com/fatedier/frp/server.(*Control).reader(0xc0049a9b00) github.com/fatedier/frp/server/control.go:345 +0x279 created by github.com/fatedier/frp/server.(*Control).Start github.com/fatedier/frp/server/control.go:204 +0x1be ``` **Steps to reproduce the issue** 1. When there are about 2,000 devices connected, maintaining it for a period of time will lead to application Crash 2. 3. **Supplementary information** **Can you guess what caused this issue** **Checklist**: <!--- Make sure you've completed the following steps (put an "X" between of brackets): --> - [] I included all information required in the sections above - [] I made sure there are no duplicates of this report [(Use Search)](https://github.com/fatedier/frp/issues?q=is%3Aissue)
gitea-mirror 2026-05-05 13:12:52 -06:00
Author
Owner

@fatedier commented on GitHub (Apr 22, 2021):

Can you paste more log before these error messages?

The error logs doesn't means application crash. It's normal after client disconnected. Maybe we can change this log level to trace for debuging.

<!-- gh-comment-id:824730928 --> @fatedier commented on GitHub (Apr 22, 2021): Can you paste more log before these error messages? The error logs doesn't means application crash. It's normal after client disconnected. Maybe we can change this log level to trace for debuging.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 7, 2021):

Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.

<!-- gh-comment-id:855495259 --> @github-actions[bot] commented on GitHub (Jun 7, 2021): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1878
No description provided.