SagerNet / SagerNet/sing-box

crash on 1.11.4

Open
#2,695 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
38.2k
Forks
4.6k
Avg merge
19d 15h
Merged PRs (30d)
1

Description

Operating system

Linux

System version

debian 12

Installation type

Others

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

https://github.com/z4x7k/sing-box-all/releases/tag/v1.11.4-1

Version
i need this version because of v2share api

i use singbox on marznode and marzneshin panel 

also i tried the main official release of singbox core the same issue is present there too

https://github.com/z4x7k/sing-box-all/releases/tag/v1.11.4-1

https://github.com/marzneshin/marzneshin

https://github.com/marzneshin/marznode
Description

after a few minutes singbox core crashed

Reproduction

{
"log": {
"level": "info"
},
"dns": {
"servers": [
{
"tag": "dns-remote",
"address": "127.0.0.1"
}
],
"rules": []
},
"inbounds": [
{
"type": "vless",
"tag": "Vless HttpUpgrade Tls",
"listen": "::",
"listen_port": 2053,
"users": [],
"tcp_fast_open": true,
"tcp_multi_path": true,
"sniff": true,
"tls": {
"enabled": true,
"server_name": "domain.xxx",
"min_version": "1.3",
"max_version": "1.3",
"certificate_path": "/var/lib/marznode/domain/fullchain.cer",
"key_path": "/var/lib/marznode/domain/privkey.key"
},
"transport": {
"type": "httpupgrade",
"path": "/dl",
"headers": {
"Host": [
"domain.xxx"
]
}
}
},
{
"tag": "Vmess HttpUpgrade",
"type": "vmess",
"listen": "::",
"listen_port": 80,
"users": [],
"tcp_fast_open": true,
"tcp_multi_path": true,
"sniff": true,
"sniff_override_destination": false,
"transport": {
"type": "httpupgrade",
"path": "/quran",
"headers": {
"Host": [
"domian.xxx"
]
}
}
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct"
},
{
"type": "dns",
"tag": "dns-out"
},
{
"type": "block",
"tag": "block"
}
],
"route": {
"rules": [
{
"protocol": "dns",
"outbound": "dns-out"
}
],
"rule_set": []
}
}

Logs
INFO[6803] [2820088903 0ms] inbound/vmess[Vmess HttpUpgrade]: inbound connection from 178.131.26.201:10618

INFO[6803] [1345434588 325ms] inbound/vmess[Vmess HttpUpgrade]: [119.bardia_new] inbound connection to 17.248.209.64:443

INFO[6803] [1345434588 325ms] outbound/direct[direct]: outbound connection to 17.248.209.64:443

INFO[6803] [1122077934 343ms] inbound/vmess[Vmess HttpUpgrade]: [119.bardia_new] inbound connection to 17.248.209.64:443

INFO[6803] [1122077934 343ms] outbound/direct[direct]: outbound connection to 17.248.209.64:443

INFO[6803] [2820088903 121ms] inbound/vmess[Vmess HttpUpgrade]: [77.lnazkm_] inbound connection to 17.57.146.57:5223

INFO[6803] [2820088903 121ms] outbound/direct[direct]: outbound connection to 17.57.146.57:5223

INFO[6804] [2002440210 0ms] inbound/vmess[Vmess HttpUpgrade]: inbound connection from 178.131.26.201:21768

INFO[6804] [274474338 0ms] inbound/vmess[Vmess HttpUpgrade]: inbound connection from 178.131.26.201:12186

INFO[6804] [2002440210 122ms] inbound/vmess[Vmess HttpUpgrade]: [77.lnazkm_] inbound connection to 17.248.209.69:443

INFO[6804] [2002440210 122ms] outbound/direct[direct]: outbound connection to 17.248.209.69:443

INFO[6804] [274474338 128ms] inbound/vmess[Vmess HttpUpgrade]: [77.lnazkm_] inbound connection to 17.248.209.69:443

INFO[6804] [274474338 128ms] outbound/direct[direct]: outbound connection to 17.248.209.69:443

INFO[6805] [2324939863 43ms] inbound/vless[Vless HttpUpgrade Tls]: inbound connection from 2.183.88.203:46566

INFO[6805] [2324939863 192ms] inbound/vless[Vless HttpUpgrade Tls]: [1.w0l4i] inbound connection to www.google.com:443

INFO[6805] [2324939863 192ms] outbound/direct[IPv4]: outbound connection to www.google.com:443

INFO[6805] [4084541751 0ms] inbound/vmess[Vmess HttpUpgrade]: inbound connection from 2.183.88.203:47634

INFO[6805] [4084541751 101ms] inbound/vmess[Vmess HttpUpgrade]: [1.w0l4i] inbound connection to www.google.com:443

INFO[6805] [4084541751 101ms] outbound/direct[IPv4]: outbound connection to www.google.com:443

INFO[6806] [4203797692 4.21s] inbound/vless[Vless HttpUpgrade Tls]: [7.yaser] inbound connection to mtalk.google.com:5228

INFO[6806] [4203797692 4.21s] outbound/direct[IPv4]: outbound connection to mtalk.google.com:5228

INFO[6814] [4273976275 2ms] inbound/vless[Vless HttpUpgrade Tls]: inbound connection from 89.196.52.151:28086

INFO[6814] [4273976275 132ms] inbound/vless[Vless HttpUpgrade Tls]: [103.khale] inbound connection to 1.1.1.1:853

INFO[6814] [4273976275 132ms] outbound/direct[direct]: outbound connection to 1.1.1.1:853

INFO[6815] [3284063712 42ms] inbound/vless[Vless HttpUpgrade Tls]: inbound connection from 89.196.52.151:15024

INFO[6815] [3284063712 219ms] inbound/vless[Vless HttpUpgrade Tls]: [103.khale] inbound connection to mtalk.google.com:5228

INFO[6815] [3284063712 219ms] outbound/direct[IPv4]: outbound connection to mtalk.google.com:5228

INFO[6818] [1611043806 2ms] inbound/vless[Vless HttpUpgrade Tls]: inbound connection from 2.183.88.203:59640

INFO[6818] [3788411834 2ms] inbound/vless[Vless HttpUpgrade Tls]: inbound connection from 2.183.88.203:13406

INFO[6818] [1611043806 106ms] inbound/vless[Vless HttpUpgrade Tls]: [1.w0l4i] inbound connection to 149.154.165.111:443

INFO[6818] [1611043806 106ms] outbound/direct[direct]: outbound connection to 149.154.165.111:443

INFO[6818] [3788411834 106ms] inbound/vless[Vless HttpUpgrade Tls]: [1.w0l4i] inbound connection to 149.154.165.111:80

INFO[6818] [3788411834 106ms] outbound/direct[direct]: outbound connection to 149.154.165.111:80

2025/03/12 01:53:52 http: panic serving 204.76.203.18:33136: runtime error: invalid memory address or nil pointer dereference

goroutine 52871 [running]:

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()

net/http/server.go:1947 +0xbe

panic({0x15e76c0?, 0x264f100?})

runtime/panic.go:787 +0x132

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:120 +0x1c1

github.com/sagernet/sing-box@v1.11.4/transport/v2rayhttpupgrade/server.go:75 +0x7cb

net/http/server.go:3301 +0x8e

net/http/server.go:2102 +0x625

created by net/http.(*Server).Serve in goroutine 209

net/http/server.go:3454 +0x485

net/http.(*conn).serve.func1()
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.

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.

Research direction

Start with transport/v2rayhttpupgrade/server.go, especially lines 75 and 120 named in the panic trace, and reproduce the crash using the supplied VLESS/VMess HTTPUpgrade configuration on Debian 12. Trace the nil pointer path for incoming HTTPUpgrade requests; done means the reported traffic no longer causes the sing-box core to panic.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.