XTLS / Xray-core

Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration.
https://t.me/projectXray
Mozilla Public License 2.0
25.9k stars 3.98k forks source link

xray core v24.9.30 bug #3927

Closed realartin closed 1 month ago

realartin commented 1 month ago

Integrity requirements

Description

idk

Reproduction Method

idk

Client config


idk

Server config



github.com/xtls/xray-core/common/task/task.go:12 +0x22

github.com/xtls/xray-core/common/task.Run.func1(0xc0066067e0?)

github.com/xtls/xray-core/common/task/task.go:28 +0x28

created by github.com/xtls/xray-core/common/task.Run in goroutine 23562

github.com/xtls/xray-core/common/task/task.go:27 +0xdb

goroutine 24996 [select]:

github.com/xtls/xray-core/transport/internet/splithttp.(*requestHandler).ServeHTTP(0xc00118eb40, {0x153af30, 0xc005fa3d88}, 0xc005736140)

github.com/xtls/xray-core/transport/internet/splithttp/hub.go:217 +0xdea

golang.org/x/net/http2/h2c.h2cHandler.ServeHTTP({{0x152d320?, 0xc00118eb40?}, 0xc001caf140?}, {0x153af30, 0xc005fa3d88}, 0xc005736140)

golang.org/x/net@v0.29.0/http2/h2c/h2c.go:125 +0x673

net/http.serverHandler.ServeHTTP({0x1ff?}, {0x153af30?, 0xc005fa3d88?}, 0xc000492000?)

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

net/http.initALPNRequest.ServeHTTP({{0x153d300?, 0xc0032aeb40?}, 0xc000122e08?, {0xc000134288?}}, {0x153af30, 0xc005fa3d88}, 0xc005736140)

net/http/server.go:3819 +0x231

net/http.(*http2serverConn).runHandler(0x445edb?, 0x0?, 0x0?, 0x0?)

net/http/h2_bundle.go:6249 +0xf5

created by net/http.(*http2serverConn).scheduleHandler in goroutine 23156

net/http/h2_bundle.go:6183 +0x21d

goroutine 21880 [select, 2 minutes]:

github.com/xtls/xray-core/common/task.Run({0x153d300, 0xc006155d70}, {0xc005a9bec8, 0x2, 0xc006e79bb0?})

github.com/xtls/xray-core/common/task/task.go:48 +0x265

github.com/xtls/xray-core/proxy/vmess/inbound.(*Handler).Process(0xc00032fa40, {0x153d300, 0xc0062bd3b0}, 0x151dbd0?, {0x1544698, 0xc00015d8a0}, {0x153f720, 0xc000045490})

github.com/xtls/xray-core/proxy/vmess/inbound/inbound.go:298 +0xdef

github.com/xtls/xray-core/app/proxyman/inbound.(*tcpWorker).callback(0xc000e8b540, {0x1544698, 0xc00015d8a0})

github.com/xtls/xray-core/app/proxyman/inbound/worker.go:109 +0x5e7

created by github.com/xtls/xray-core/app/proxyman/inbound.(*tcpWorker).Start.func1 in goroutine 11

github.com/xtls/xray-core/app/proxyman/inbound/worker.go:123 +0x7a

goroutine 25381 [select]:

github.com/xtls/xray-core/transport/pipe.(*pipe).ReadMultiBuffer(0xc004b71b30)

github.com/xtls/xray-core/transport/pipe/impl.go:100 +0xeb

github.com/xtls/xray-core/transport/pipe.(*Reader).ReadMultiBuffer(0xc004b2a540?)

github.com/xtls/xray-core/transport/pipe/reader.go:16 +0x16

github.com/xtls/xray-core/common/buf.copyInternal({0x152b600, 0xc0071af2d8}, {0x152d9c0, 0xc004b2a540}, 0xc00711d848)

github.com/xtls/xray-core/common/buf/copy.go:93 +0x5b

github.com/xtls/xray-core/common/buf.Copy({0x152b600, 0xc0071af2d8}, {0x152d9c0, 0xc004b2a540}, {0xc00423df58, 0x1, 0xc004b2a4e0?})

github.com/xtls/xray-core/common/buf/copy.go:116 +0x98

github.com/xtls/xray-core/proxy/vless/inbound.(*Handler).Process.func5()

github.com/xtls/xray-core/proxy/vless/inbound/inbound.go:567 +0x3ff

github.com/xtls/xray-core/common/task.Run.func1(0xc006553f50?)

github.com/xtls/xray-core/common/task/task.go:28 +0x28

created by github.com/xtls/xray-core/common/task.Run in goroutine 25332

github.com/xtls/xray-core/common/task/task.go:27 +0xdb

goroutine 17308 [IO wait, 2 minutes]:

internal/poll.runtime_pollWait(0x7c72e93d27d8, 0x72)

runtime/netpoll.go:351 +0x85

internal/poll.(*pollDesc).wait(0xc004d1a900?, 0xc001efe000?, 0x0)

internal/poll/fd_poll_runtime.go:84 +0x27

internal/poll.(*pollDesc).waitRead(...)

internal/poll/fd_poll_runtime.go:89

internal/poll.(*FD).Read(0xc004d1a900, {0xc001efe000, 0x2000, 0x2000})

internal/poll/fd_unix.go:165 +0x27a

net.(*netFD).Read(0xc004d1a900, {0xc001efe000?, 0x410845?, 0x30?})

net/fd_posix.go:55 +0x25

net.(*conn).Read(0xc002625928, {0xc001efe000?, 0x2000?, 0xc001efe000?})

net/net.go:189 +0x45

github.com/xtls/xray-core/common/buf.(*Buffer).ReadFrom(...)

github.com/xtls/xray-core/common/buf/buffer.go:295

github.com/xtls/xray-core/common/buf.ReadBuffer({0x152d820, 0xc002625928})

github.com/xtls/xray-core/common/buf/reader.go:30 +0x66

github.com/xtls/xray-core/common/buf.(*ReadVReader).ReadMultiBuffer(0xc0066b3bd0)

github.com/xtls/xray-core/common/buf/readv_reader.go:125 +0x65

github.com/xtls/xray-core/common/buf.copyInternal({0x152da40, 0xc0066b3bd0}, {0x152b660, 0xc001473dc0}, 0xc006d61f20)

github.com/xtls/xray-core/common/buf/copy.go:93 +0x5b

github.com/xtls/xray-core/common/buf.Copy({0x152da40, 0xc0066b3bd0}, {0x152b660, 0xc001473dc0}, {0xc004cb2f30, 0x1, 0x10c3d80?})

github.com/xtls/xray-core/common/buf/copy.go:116 +0x98

github.com/xtls/xray-core/proxy/wireguard.(*Handler).Process.func3()

github.com/xtls/xray-core/proxy/wireguard/client.go:206 +0xf9

github.com/xtls/xray-core/proxy/wireguard.(*Handler).Process.OnSuccess.func7()

github.com/xtls/xray-core/common/task/task.go:12 +0x22

github.com/xtls/xray-core/common/task.Run.func1(0x24?)

github.com/xtls/xray-core/common/task/task.go:28 +0x28

created by github.com/xtls/xray-core/common/task.Run in goroutine 17301

github.com/xtls/xray-core/common/task/task.go:27 +0xdb

goroutine 17295 [select, 4 minutes]:

github.com/xtls/xray-core/transport/internet/splithttp.(*requestHandler).ServeHTTP(0xc00118eb40, {0x153af30, 0xc0026257c8}, 0xc0065b9900)

github.com/xtls/xray-core/transport/internet/splithttp/hub.go:217 +0xdea

golang.org/x/net/http2/h2c.h2cHandler.ServeHTTP({{0x152d320?, 0xc00118eb40?}, 0xc001caf140?}, {0x153af30, 0xc0026257c8}, 0xc0065b9900)

golang.org/x/net@v0.29.0/http2/h2c/h2c.go:125 +0x673

net/http.serverHandler.ServeHTTP({0x0?}, {0x153af30?, 0xc0026257c8?}, 0xc0011fa300?)

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

net/http.initALPNRequest.ServeHTTP({{0x153d300?, 0xc004ce9380?}, 0xc000004708?, {0xc000134288?}}, {0x153af30, 0xc0026257c8}, 0xc0065b9900)

net/http/server.go:3819 +0x231

net/http.(*http2serverConn).runHandler(0xaad7e8?, 0xc000e8b540?, 0x1544698?, 0xc000284b00?)

net/http/h2_bundle.go:6249 +0xf5

created by net/http.(*http2serverConn).scheduleHandler in goroutine 12548

net/http/h2_bundle.go:6183 +0x21d

goroutine 19879 [select, 2 minutes]:

github.com/xtls/xray-core/common/task.Run({0x153d338, 0xc006655900}, {0xc003e87cd0, 0x2, 0xc000199480?})

github.com/xtls/xray-core/common/task/task.go:48 +0x265

github.com/xtls/xray-core/proxy/wireguard.(*Handler).Process(0xc0001dcee0, {0x153d300, 0xc003fe48a0}, 0xc00695edc0, {0x153a640, 0xc000199480})

github.com/xtls/xray-core/proxy/wireguard/client.go:230 +0xc85

github.com/xtls/xray-core/app/proxyman/outbound.(*Handler).Dispatch(0xc000199480, {0x153d300, 0xc003fe48a0}, 0xc00695edc0)

github.com/xtls/xray-core/app/proxyman/outbound/handler.go:211 +0x388

github.com/xtls/xray-core/app/dispatcher.(*DefaultDispatcher).routedDispatch(0xc0010e6c00, {0x153d300, 0xc003fe48a0}, 0xc00695edc0, {{0x153d450, 0xc00321458c}, 0x35, 0x3})

Client log


idk

Server log


github.com/xtls/xray-core/common/task/task.go:12 +0x22

github.com/xtls/xray-core/common/task.Run.func1(0xc0066067e0?)

github.com/xtls/xray-core/common/task/task.go:28 +0x28

created by github.com/xtls/xray-core/common/task.Run in goroutine 23562

github.com/xtls/xray-core/common/task/task.go:27 +0xdb

goroutine 24996 [select]:

github.com/xtls/xray-core/transport/internet/splithttp.(*requestHandler).ServeHTTP(0xc00118eb40, {0x153af30, 0xc005fa3d88}, 0xc005736140)

github.com/xtls/xray-core/transport/internet/splithttp/hub.go:217 +0xdea

golang.org/x/net/http2/h2c.h2cHandler.ServeHTTP({{0x152d320?, 0xc00118eb40?}, 0xc001caf140?}, {0x153af30, 0xc005fa3d88}, 0xc005736140)

golang.org/x/net@v0.29.0/http2/h2c/h2c.go:125 +0x673

net/http.serverHandler.ServeHTTP({0x1ff?}, {0x153af30?, 0xc005fa3d88?}, 0xc000492000?)

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

net/http.initALPNRequest.ServeHTTP({{0x153d300?, 0xc0032aeb40?}, 0xc000122e08?, {0xc000134288?}}, {0x153af30, 0xc005fa3d88}, 0xc005736140)

net/http/server.go:3819 +0x231

net/http.(*http2serverConn).runHandler(0x445edb?, 0x0?, 0x0?, 0x0?)

net/http/h2_bundle.go:6249 +0xf5

created by net/http.(*http2serverConn).scheduleHandler in goroutine 23156

net/http/h2_bundle.go:6183 +0x21d

goroutine 21880 [select, 2 minutes]:

github.com/xtls/xray-core/common/task.Run({0x153d300, 0xc006155d70}, {0xc005a9bec8, 0x2, 0xc006e79bb0?})

github.com/xtls/xray-core/common/task/task.go:48 +0x265

github.com/xtls/xray-core/proxy/vmess/inbound.(*Handler).Process(0xc00032fa40, {0x153d300, 0xc0062bd3b0}, 0x151dbd0?, {0x1544698, 0xc00015d8a0}, {0x153f720, 0xc000045490})

github.com/xtls/xray-core/proxy/vmess/inbound/inbound.go:298 +0xdef

github.com/xtls/xray-core/app/proxyman/inbound.(*tcpWorker).callback(0xc000e8b540, {0x1544698, 0xc00015d8a0})

github.com/xtls/xray-core/app/proxyman/inbound/worker.go:109 +0x5e7

created by github.com/xtls/xray-core/app/proxyman/inbound.(*tcpWorker).Start.func1 in goroutine 11

github.com/xtls/xray-core/app/proxyman/inbound/worker.go:123 +0x7a

goroutine 25381 [select]:

github.com/xtls/xray-core/transport/pipe.(*pipe).ReadMultiBuffer(0xc004b71b30)

github.com/xtls/xray-core/transport/pipe/impl.go:100 +0xeb

github.com/xtls/xray-core/transport/pipe.(*Reader).ReadMultiBuffer(0xc004b2a540?)

github.com/xtls/xray-core/transport/pipe/reader.go:16 +0x16

github.com/xtls/xray-core/common/buf.copyInternal({0x152b600, 0xc0071af2d8}, {0x152d9c0, 0xc004b2a540}, 0xc00711d848)

github.com/xtls/xray-core/common/buf/copy.go:93 +0x5b

github.com/xtls/xray-core/common/buf.Copy({0x152b600, 0xc0071af2d8}, {0x152d9c0, 0xc004b2a540}, {0xc00423df58, 0x1, 0xc004b2a4e0?})

github.com/xtls/xray-core/common/buf/copy.go:116 +0x98

github.com/xtls/xray-core/proxy/vless/inbound.(*Handler).Process.func5()

github.com/xtls/xray-core/proxy/vless/inbound/inbound.go:567 +0x3ff

github.com/xtls/xray-core/common/task.Run.func1(0xc006553f50?)

github.com/xtls/xray-core/common/task/task.go:28 +0x28

created by github.com/xtls/xray-core/common/task.Run in goroutine 25332

github.com/xtls/xray-core/common/task/task.go:27 +0xdb

goroutine 17308 [IO wait, 2 minutes]:

internal/poll.runtime_pollWait(0x7c72e93d27d8, 0x72)

runtime/netpoll.go:351 +0x85

internal/poll.(*pollDesc).wait(0xc004d1a900?, 0xc001efe000?, 0x0)

internal/poll/fd_poll_runtime.go:84 +0x27

internal/poll.(*pollDesc).waitRead(...)

internal/poll/fd_poll_runtime.go:89

internal/poll.(*FD).Read(0xc004d1a900, {0xc001efe000, 0x2000, 0x2000})

internal/poll/fd_unix.go:165 +0x27a

net.(*netFD).Read(0xc004d1a900, {0xc001efe000?, 0x410845?, 0x30?})

net/fd_posix.go:55 +0x25

net.(*conn).Read(0xc002625928, {0xc001efe000?, 0x2000?, 0xc001efe000?})

net/net.go:189 +0x45

github.com/xtls/xray-core/common/buf.(*Buffer).ReadFrom(...)

github.com/xtls/xray-core/common/buf/buffer.go:295

github.com/xtls/xray-core/common/buf.ReadBuffer({0x152d820, 0xc002625928})

github.com/xtls/xray-core/common/buf/reader.go:30 +0x66

github.com/xtls/xray-core/common/buf.(*ReadVReader).ReadMultiBuffer(0xc0066b3bd0)

github.com/xtls/xray-core/common/buf/readv_reader.go:125 +0x65

github.com/xtls/xray-core/common/buf.copyInternal({0x152da40, 0xc0066b3bd0}, {0x152b660, 0xc001473dc0}, 0xc006d61f20)

github.com/xtls/xray-core/common/buf/copy.go:93 +0x5b

github.com/xtls/xray-core/common/buf.Copy({0x152da40, 0xc0066b3bd0}, {0x152b660, 0xc001473dc0}, {0xc004cb2f30, 0x1, 0x10c3d80?})

github.com/xtls/xray-core/common/buf/copy.go:116 +0x98

github.com/xtls/xray-core/proxy/wireguard.(*Handler).Process.func3()

github.com/xtls/xray-core/proxy/wireguard/client.go:206 +0xf9

github.com/xtls/xray-core/proxy/wireguard.(*Handler).Process.OnSuccess.func7()

github.com/xtls/xray-core/common/task/task.go:12 +0x22

github.com/xtls/xray-core/common/task.Run.func1(0x24?)

github.com/xtls/xray-core/common/task/task.go:28 +0x28

created by github.com/xtls/xray-core/common/task.Run in goroutine 17301

github.com/xtls/xray-core/common/task/task.go:27 +0xdb

goroutine 17295 [select, 4 minutes]:

github.com/xtls/xray-core/transport/internet/splithttp.(*requestHandler).ServeHTTP(0xc00118eb40, {0x153af30, 0xc0026257c8}, 0xc0065b9900)

github.com/xtls/xray-core/transport/internet/splithttp/hub.go:217 +0xdea

golang.org/x/net/http2/h2c.h2cHandler.ServeHTTP({{0x152d320?, 0xc00118eb40?}, 0xc001caf140?}, {0x153af30, 0xc0026257c8}, 0xc0065b9900)

golang.org/x/net@v0.29.0/http2/h2c/h2c.go:125 +0x673

net/http.serverHandler.ServeHTTP({0x0?}, {0x153af30?, 0xc0026257c8?}, 0xc0011fa300?)

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

net/http.initALPNRequest.ServeHTTP({{0x153d300?, 0xc004ce9380?}, 0xc000004708?, {0xc000134288?}}, {0x153af30, 0xc0026257c8}, 0xc0065b9900)

net/http/server.go:3819 +0x231

net/http.(*http2serverConn).runHandler(0xaad7e8?, 0xc000e8b540?, 0x1544698?, 0xc000284b00?)

net/http/h2_bundle.go:6249 +0xf5

created by net/http.(*http2serverConn).scheduleHandler in goroutine 12548

net/http/h2_bundle.go:6183 +0x21d

goroutine 19879 [select, 2 minutes]:

github.com/xtls/xray-core/common/task.Run({0x153d338, 0xc006655900}, {0xc003e87cd0, 0x2, 0xc000199480?})

github.com/xtls/xray-core/common/task/task.go:48 +0x265

github.com/xtls/xray-core/proxy/wireguard.(*Handler).Process(0xc0001dcee0, {0x153d300, 0xc003fe48a0}, 0xc00695edc0, {0x153a640, 0xc000199480})

github.com/xtls/xray-core/proxy/wireguard/client.go:230 +0xc85

github.com/xtls/xray-core/app/proxyman/outbound.(*Handler).Dispatch(0xc000199480, {0x153d300, 0xc003fe48a0}, 0xc00695edc0)

github.com/xtls/xray-core/app/proxyman/outbound/handler.go:211 +0x388

github.com/xtls/xray-core/app/dispatcher.(*DefaultDispatcher).routedDispatch(0xc0010e6c00, {0x153d300, 0xc003fe48a0}, 0xc00695edc0, {{0x153d450, 0xc00321458c}, 0x35, 0x3})

RPRX commented 1 month ago

请按模板发 issue