Skip to content

Mystery syntax error on file suspiciously near 65536 bytes in size #72

Closed

Description

@sunfishcode

My branch here:

https://github.com/WebAssembly/spec/tree/large-file-syntax-error

has a (work-in-progress) test in test/float64.wasm. It currently fails mysteriously with

test/float64.wasm:524.130-524.130: syntax error

Line 524 is syntactically correct. Deleting seemingly any single the assert line from the file makes the syntax error go away. Suspiciously, the file size is just over 65536 bytes.

Anyone have any clues as to what could be going on here?

Activity

  1. sunfishcode commented on Sep 17, 2015

    @sunfishcode
    MemberAuthor

    Suspiciously, strace shows this:

    read(3, "(module\n (func $add (param $x f"..., 65536) = 65536
    close(3) = 0

  2. sunfishcode commented on Sep 17, 2015

    @sunfishcode
    MemberAuthor

    It appears to be a bug in the way files are read. #73 is a PR which fixes it.

  3. added a commit that references this issue on Mar 26, 2020
  4. added a commit that references this issue on Mar 17, 2023
  5. added a commit that references this issue on Aug 30, 2024
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