Skip to content

go 1.24 panic: invalid table access #190

@rgmz

Description

@rgmz

Reported in gitleaks/gitleaks#1751 (comment); I haven't been able to reproduce this yet.

panic: wasm error: invalid table access
        wasm stack trace:
                .$27(i32,i32,i32,i32)
                .$398(i32)
                .$430(i32,i32)
                .$428(i32,i32,i32)
                .$474(i32)
                .$652(i32,i32,i32)
                .$666(i32,i32,i32) i32

goroutine 1 [running]:
github.com/wasilibs/go-re2/internal.newRE(0xc0013df680, {0x5885e0?, 0xc001b164f8?}, {0x39?, 0x3c?, 0x47?, 0x0?})
        /go/pkg/mod/github.com/wasilibs/go-re2@v1.8.0/internal/re2_wazero.go:289 +0x269
github.com/wasilibs/go-re2/internal.Compile({0xc0005885e0, 0x20}, {0xd5?, 0xa3?, 0x6a?, 0x76?})
        /go/pkg/mod/github.com/wasilibs/go-re2@v1.8.0/internal/re2.go:67 +0x165
github.com/wasilibs/go-re2.Compile(...)
        /go/pkg/mod/github.com/wasilibs/go-re2@v1.8.0/re2.go:46
github.com/wasilibs/go-re2.MustCompile({0xc0005885e0, 0x20})
        /go/pkg/mod/github.com/wasilibs/go-re2@v1.8.0/re2.go:76 +0x2e
github.com/zricethezav/gitleaks/v8/regexp.MustCompile(...)
        /pwd/gitleaks/regexp/wasilibs_regex.go:14

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