Skip to content

Fuzzing issue related to ref / gc types #4056

Closed

Description

@MaxGraey

Fuzzer found issue on seed 11469194492158386059.

running testcase handler: RoundtripText
<...>/binaryen/bin/wasm-opt a.wasm --name-types -S -o a.wast 
--enable-threads --enable-mutable-globals --enable-nontrapping-float-to-int --enable-simd 
--enable-bulk-memory --enable-sign-ext --enable-tail-call --enable-reference-types --enable-gc 
--enable-typed-function-references --strip-dwarf <....>/binaryen/bin/wasm-opt a.wast --enable-threads
--enable-mutable-globals --enable-nontrapping-float-to-int --enable-simd --enable-bulk-memory 
--enable-sign-ext --enable-tail-call --enable-reference-types --enable-gc 
--enable-typed-function-references --strip-dwarf
[parse exception: unknown dollared function type (at 175:51)]
Fatal: error parsing wasm
....
['<...>/binaryen/bin/wasm-opt', 'a.wast', '--enable-threads', 
'--enable-mutable-globals', 
'--enable-nontrapping-float-to-int', 
'--enable-simd', 
'--enable-bulk-memory', 
'--enable-sign-ext', 
'--enable-tail-call', 
'--enable-reference-types', 
'--enable-gc', 
'--enable-typed-function-references', 
'--strip-dwarf']
================================================================================

Reduced example:

(module
 (type $none_=>_none (func))
 (global $global$14 (mut i32) (i32.const 10))
 (memory $0 (shared 16 17))
 (table $0 111 111 funcref)
 (elem (table $0) (i32.const 0) funcref (ref.null $none_=>_none))
)

Activity

  1. kripken commented on Aug 5, 2021

    @kripken
    Member

    Thanks, this looks like #3989 . Until that is fixed we should probably ignore fuzz issues in roundtripping text. I opened #4058

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions