Skip to content

panic: runtime error: makeslice: cap out of range #492

Description

@dyhkwong
panic: runtime error: makeslice: cap out of range

goroutine 17 [running, locked to thread]:
github.com/exclavenetwork/exclave-core/v5/common/track.(*ConnectionPool).ResetConnections(0x6c3aee8980)
	github.com/exclavenetwork/exclave-core/v5@v5.50.1-0.20260929124854-604af97b2cc1/common/track/track.go:37 +0xac
github.com/exclavenetwork/exclave-core/v5/app/proxyman/outbound.(*Handler).Close(0x6c3bb6ed00)
	github.com/exclavenetwork/exclave-core/v5@v5.50.1-0.20260929124854-604af97b2cc1/app/proxyman/outbound/handler.go:555 +0x2c
github.com/exclavenetwork/exclave-core/v5/app/proxyman/outbound.(*Manager).Close(0x6c3a037ea0)
	github.com/exclavenetwork/exclave-core/v5@v5.50.1-0.20260929124854-604af97b2cc1/app/proxyman/outbound/outbound.go:71 +0xe4
github.com/exclavenetwork/exclave-core/v5.(*Instance).Close(0x6c3ab8be48?)
	github.com/exclavenetwork/exclave-core/v5@v5.50.1-0.20260929124854-604af97b2cc1/v2ray.go:290 +0x100
github.com/exclavenetwork/libexclavecore.(*V2RayInstance).Close(0x6c3bf30aa0)
	github.com/exclavenetwork/libexclavecore@v0.0.0-20260929125006-443accac0223/v2ray.go:221 +0x34
main.proxylibexclavecore_V2RayInstance_Close(0xffffffcf?)
	gobind/gobind/go_libexclavecoremain.go:897 +0x38

https://github.com/ExclaveNetwork/exclave-core/blob/604af97b2cc1f8dcf2c9cc9ce2a1e13dc266f4e7/common/track/track.go#L37

deadlineSetters := make([]deadlineSetter, 0, p.list.Len())

p.list.Len() returns a negative value?

See https://github.com/golang/go/issues/70022 (container/list: Init followed by Remove (of invalid Element) leads to negative Len).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions