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

Panic crash when network changes (turning WARP on/off) #2509

Open
4 of 5 tasks
douniwan5788 opened this issue Jan 28, 2025 · 0 comments
Open
4 of 5 tasks

Panic crash when network changes (turning WARP on/off) #2509

douniwan5788 opened this issue Jan 28, 2025 · 0 comments

Comments

@douniwan5788
Copy link

Operating system

macOS

System version

macos

Installation type

Original sing-box Command Line

If you are using a graphical client, please provide the version of the client.

No response

Version

Description

panic: invalid return from write: got 33554436 from a write of 28

goroutine 10594 [running]:
internal/poll.(*FD).Write(0xc00028f580, {0xc0009cad00, 0x1c, 0x1c})
	internal/poll/fd_unix.go:389 +0x51a
net.(*netFD).Write(0xc00028f580, {0xc0009cad00?, 0xc000101008?, 0x11b79108?})
	net/fd_posix.go:96 +0x25
net.(*conn).Write(0xc0007ee040, {0xc0009cad00?, 0xc000151801?, 0xc0001518e8?})
	net/net.go:201 +0x45
crypto/tls.(*Conn).write(0xc000478388, {0xc0009cad00?, 0x5?, 0x5?})
	crypto/tls/conn.go:948 +0x109
crypto/tls.(*Conn).writeRecordLocked(0xc000478388, 0x17, {0xc000365132, 0x6, 0xe})
	crypto/tls/conn.go:1029 +0x67f
crypto/tls.(*Conn).Write(0xfc42a09?, {0xc000365132, 0x6, 0xe})
	crypto/tls/conn.go:1248 +0x37e
github.com/sagernet/ws.WriteHeader({0x5865d6a8, 0xc0006d1ce0}, {0x1, 0x0, 0x8, 0x1, {0x76, 0x5a, 0x1c, 0x25}, ...})
	github.com/sagernet/[email protected]/write.go:84 +0x135
github.com/sagernet/ws.WriteFrame({0x5865d6a8, 0xc0006d1ce0}, {{0x1, 0x0, 0x8, 0x1, {0x76, 0x5a, 0x1c, 0x25}, ...}, ...})
	github.com/sagernet/[email protected]/write.go:91 +0x26
github.com/sagernet/sing-box/transport/v2raywebsocket.(*WebsocketConn).Close(0xc0009899c0)
	github.com/sagernet/sing-box/transport/v2raywebsocket/conn.go:56 +0x18d
github.com/sagernet/sing/common.Close({0xc000151cd8?, 0x5866f928?, 0xc00020fae0?})
	github.com/sagernet/[email protected]/common/cond.go:371 +0x15b
github.com/sagernet/sing-vmess.(*rawClientConn).Close(...)
	github.com/sagernet/[email protected]/client.go:403
github.com/sagernet/sing-box/common/interrupt.(*Conn).Close(0x5866f928?)
	github.com/sagernet/sing-box/common/interrupt/conn.go:33 +0x10c
github.com/sagernet/sing/common.Close({0xc000151f30?, 0x10f25d00?, 0x0?})
	github.com/sagernet/[email protected]/common/cond.go:371 +0x15b
github.com/sagernet/sing-box/route.(*ConnectionManager).connectionCopy(0xc0003a2410, {0x10f88438, 0xc000d0a210}, {0x58ca1bb8, 0xc000332a88}, {0x58ca1bd8, 0xc0008fa980}, 0x0, 0xc0002e6a54, 0xc000caf2f0)
	github.com/sagernet/sing-box/route/conn.go:230 +0xb7d
created by github.com/sagernet/sing-box/route.(*ConnectionManager).NewConnection in goroutine 10096

Reproduction

  1. Running sing-box CLI
  2. Turning on/off Cloudflare WARP

Logs

Supporter

Integrity requirements

  • I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
  • I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
  • I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
  • I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
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

No branches or pull requests

1 participant