Skip to content

panic at high scale #188

@goingaround

Description

@goingaround

2025-01-16 10:56:53 panic: runtime error: slice bounds out of range [:4294967296:4293918720] (recovered by wazero)
2025-01-16 10:56:53 wasm stack trace:
2025-01-16 10:56:53 .$38(i32) i32
2025-01-16 10:56:53 .$40(i32) i32
2025-01-16 10:56:53 .$39(i32) i32
2025-01-16 10:56:53
2025-01-16 10:56:53 Go runtime stack trace:
2025-01-16 10:56:53 goroutine 11038 [running]:
2025-01-16 10:56:53 runtime/debug.Stack()
2025-01-16 10:56:53 /usr/local/go/src/runtime/debug/stack.go:26 +0x5e
2025-01-16 10:56:53 github.com/tetratelabs/wazero/internal/wasmdebug.(*stackTrace).FromRecovered(0xc01244d708?, {0x8e2ec0, 0xc001622108})
2025-01-16 10:56:53 /go/pkg/mod/github.com/tetratelabs/[email protected]/internal/wasmdebug/debug.go:142 +0x15c
2025-01-16 10:56:53 github.com/tetratelabs/wazero/internal/engine/wazevo.(*callEngine).callWithStack.func1()
2025-01-16 10:56:53 /go/pkg/mod/github.com/tetratelabs/[email protected]/internal/engine/wazevo/call_engine.go:255 +0x3ec
2025-01-16 10:56:53 panic({0x8e2ec0?, 0xc001622108?})
2025-01-16 10:56:53 /usr/local/go/src/runtime/panic.go:785 +0x132
2025-01-16 10:56:53 github.com/wasilibs/go-re2/internal/alloc.(*mmappedMemory).Reallocate(0x0?, 0x0?)
2025-01-16 10:56:53 /go/pkg/mod/github.com/wasilibs/[email protected]/internal/alloc/alloc_unix.go:90 +0xee
2025-01-16 10:56:53 github.com/tetratelabs/wazero/internal/wasm.(*MemoryInstance).Grow(0xc00021a500, 0x0?)
2025-01-16 10:56:53 /go/pkg/mod/github.com/tetratelabs/[email protected]/internal/wasm/memory.go:246 +0x255
2025-01-16 10:56:53 github.com/tetratelabs/wazero/internal/engine/wazevo.(*callEngine).callWithStack(0xc01244d708, {0x9deb30, 0xf89be0}, {0xc003f8d328, 0x1, 0x6eb128?})
2025-01-16 10:56:53 /go/pkg/mod/github.com/tetratelabs/[email protected]/internal/engine/wazevo/call_engine.go:308 +0x465
2025-01-16 10:56:53 github.com/tetratelabs/wazero/internal/engine/wazevo.(*callEngine).CallWithStack(0x890de0?, {0x9deb30?, 0xf89be0?}, {0xc003f8d328?, 0x0?, 0x0?})
2025-01-16 10:56:53 /go/pkg/mod/github.com/tetratelabs/[email protected]/internal/engine/wazevo/call_engine.go:191 +0x9f
2025-01-16 10:56:53 github.com/wasilibs/go-re2/internal.(*lazyFunction).callWithStack(0xc00165bc90, {0x9deb30, 0xf89be0}, {0xc003f8d328, 0x1, 0x1})
2025-01-16 10:56:53 /go/pkg/mod/github.com/wasilibs/[email protected]/internal/re2_wazero.go:605 +0x176
2025-01-16 10:56:53 github.com/wasilibs/go-re2/internal.(*lazyFunction).Call1(0xc00165bc90, {0x9deb30, 0xf89be0}, 0xfc50c)
2025-01-16 10:56:53 /go/pkg/mod/github.com/wasilibs/[email protected]/internal/re2_wazero.go:564 +0x55
2025-01-16 10:56:53 github.com/wasilibs/go-re2/internal.malloc(0x0?, 0x0?)
2025-01-16 10:56:53 /go/pkg/mod/github.com/wasilibs/[email protected]/internal/re2_wazero.go:463 +0x2b
2025-01-16 10:56:53 github.com/wasilibs/go-re2/internal.(*libre2ABI).reserve(...)
2025-01-16 10:56:53 /go/pkg/mod/github.com/wasilibs/[email protected]/internal/re2_wazero.go:484
2025-01-16 10:56:53 github.com/wasilibs/go-re2/internal.(*libre2ABI).startOperation(...)
2025-01-16 10:56:53 /go/pkg/mod/github.com/wasilibs/[email protected]/internal/re2_wazero.go:235
2025-01-16 10:56:53 github.com/wasilibs/go-re2/internal.(*Regexp).FindAllStringSubmatch(0xc0000a19e0, {0xc00af2e000, 0xfc4f4}, 0xffffffffffffffff)
2025-01-16 10:56:53 /go/pkg/mod/github.com/wasilibs/[email protected]/internal/re2.go:451 +0x85
2025-01-16 10:56:53 entro.security/detector/service/exposure.(*scanner).Scan(0xc0011a3560, {0x9debf0, 0xc013ee0550}, {0xc00af2e000?, 0x0?})
2025-01-16 10:56:53 /app/detector/service/exposure/scanner.go:33 +0x74
2025-01-16 10:56:53 entro.security/detector.(*executorGroup).Execute.(*executorGroup).executeFn.func2()
2025-01-16 10:56:53 /app/detector/executor_group.go:49 +0x44
2025-01-16 10:56:53 golang.org/x/sync/errgroup.(*Group).Go.func1()
2025-01-16 10:56:53 /go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:78 +0x50
2025-01-16 10:56:53 created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 2017
2025-01-16 10:56:53 /go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x96
2025-01-16 10:56:53
2025-01-16 10:56:53
2025-01-16 10:56:53 goroutine 11038 [running]:
2025-01-16 10:56:53 github.com/wasilibs/go-re2/internal.malloc(0x0?, 0x0?)
2025-01-16 10:56:53 /go/pkg/mod/github.com/wasilibs/[email protected]/internal/re2_wazero.go:464 +0x47
2025-01-16 10:56:53 github.com/wasilibs/go-re2/internal.(*libre2ABI).reserve(...)
2025-01-16 10:56:53 /go/pkg/mod/github.com/wasilibs/[email protected]/internal/re2_wazero.go:484
2025-01-16 10:56:53 github.com/wasilibs/go-re2/internal.(*libre2ABI).startOperation(...)
2025-01-16 10:56:53 /go/pkg/mod/github.com/wasilibs/[email protected]/internal/re2_wazero.go:235
2025-01-16 10:56:53 github.com/wasilibs/go-re2/internal.(*Regexp).FindAllStringSubmatch(0xc0000a19e0, {0xc00af2e000, 0xfc4f4}, 0xffffffffffffffff)
2025-01-16 10:56:53 /go/pkg/mod/github.com/wasilibs/[email protected]/internal/re2.go:451 +0x85
2025-01-16 10:56:53 entro.security/detector/service/exposure.(*scanner).Scan(0xc0011a3560, {0x9debf0, 0xc013ee0550}, {0xc00af2e000?, 0x0?})
2025-01-16 10:56:53 /app/detector/service/exposure/scanner.go:33 +0x74
2025-01-16 10:56:53 entro.security/detector.(*executorGroup).Execute.(*executorGroup).executeFn.func2()
2025-01-16 10:56:53 /app/detector/executor_group.go:49 +0x44
2025-01-16 10:56:53 golang.org/x/sync/errgroup.(*Group).Go.func1()
2025-01-16 10:56:53 /go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:78 +0x50
2025-01-16 10:56:53 created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 2017
2025-01-16 10:56:53 /go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x96

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