Skip to content

invalid function[322]: invalid instruction 0xfe #1737

@mr-tron

Description

@mr-tron

Describe the bug
I tried to instantiate a module https://github.com/ton-community/func-js-bin/raw/main/src/funcfiftlib.wasm and get error invalid instruction 0xfe
To Reproduce

package main

import (
	"context"
	_ "embed"
	"github.com/tetratelabs/wazero"
	"log"
)

//go:embed funcfiftlib.wasm
var wasmBinary []byte

func main() {
	ctx := context.Background()
	r := wazero.NewRuntime(ctx)
	_, err := r.Instantiate(ctx, wasmBinary)
	if err != nil {
		log.Panicln(err)
	}
}

Environment (please complete the relevant information):

  • Go version: 1.20.2
  • wazero Version: v1.5.1-0.20230925231903-ed8566988007
  • Host architecture: amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions