Skip to content

panic: extending out of bound #3563

@fengweiyuan

Description

@fengweiyuan

v5.41.0 版本,在 amazon linux 2023 上跑,突然就退出了,非必现,日志如下。

Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]: panic: extending out of bound
Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]: goroutine 193 [running]:
Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]: github.com/v2fly/v2ray-core/v5/common/buf.(*Buffer).Extend(...)
Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]:         github.com/v2fly/v2ray-core/v5/common/buf/buffer.go:111
Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]: github.com/v2fly/v2ray-core/v5/proxy/shadowsocks.(*AEADCipher).EncodePacket(0xc0009e54d0?, {0xc000542590?, 0xc0009e54d0?, 0x199c200?}, 0xc0009e54d0)
Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]:         github.com/v2fly/v2ray-core/v5/proxy/shadowsocks/config.go:168 +0x232
Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]: github.com/v2fly/v2ray-core/v5/proxy/shadowsocks.EncodeUDPPacket(0xc000392030, {0xc000159000, 0x800, 0x8f6516?})
Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]:         github.com/v2fly/v2ray-core/v5/proxy/shadowsocks/protocol.go:201 +0x1e3
Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]: github.com/v2fly/v2ray-core/v5/proxy/shadowsocks.(*Server).handlerUDPPayload.func1({0x199c120, 0xc000036730}, 0xc0009ea5c0)
Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]:         github.com/v2fly/v2ray-core/v5/proxy/shadowsocks/server.go:94 +0x148
Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]: github.com/v2fly/v2ray-core/v5/transport/internet/udp.handleInput({0x199c120, 0xc000036730}, 0x0?, {{0x199c200?, 0xc000543e8c?}, 0x3764?, 0x0?}, 0xc>
Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]:         github.com/v2fly/v2ray-core/v5/transport/internet/udp/dispatcher_split.go:119 +0x262
Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]: created by github.com/v2fly/v2ray-core/v5/transport/internet/udp.(*Dispatcher).getInboundRay in goroutine 191
Dec 01 16:47:53 ecm-d551-0004 v2ray[66122]:         github.com/v2fly/v2ray-core/v5/transport/internet/udp/dispatcher_split.go:80 +0x4c5
Dec 01 16:47:53 ecm-d551-0004 systemd[1]: v2ray.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Dec 01 16:47:53 ecm-d551-0004 systemd[1]: v2ray.service: Failed with result 'exit-code'.
Dec 01 16:47:53 ecm-d551-0004 systemd[1]: v2ray.service: Scheduled restart job, restart counter is at 6.
Dec 01 16:47:53 ecm-d551-0004 systemd[1]: Stopped V2Ray Service.
Dec 01 16:47:53 ecm-d551-0004 systemd[1]: v2ray.service: Start request repeated too quickly.
Dec 01 16:47:53 ecm-d551-0004 systemd[1]: v2ray.service: Failed with result 'exit-code'.
Dec 01 16:47:53 ecm-d551-0004 systemd[1]: Failed to start V2Ray Service.
Dec 01 18:38:56 ecm-d551-0004 systemd[1]: Started V2Ray Service.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions