Skip to content

WASI: Invalid clock event structure size #1116

Closed
@torch2424

Description

@torch2424

cc @dcodeIO @MaxGraey

I brought this up a while ago, but just haven't had the time to open an issue with an isolated use case and all that. But I finally did! 😄

So this is going back to the as-wasi sleep function I implemented a while back. In the meantime I just used the stub runtime to get around allocating / freeing memory properly, but this would cause a memory leak that we do not want to have.

I went ahead and created two isolated test cases:

  1. An implementation using new ArrayBuffer. And has the error (at runtime): ~lib/rt/pure.ts:136:15: error: null
    Screenshot from 2020-02-20 02-24-37

  2. An implementation using __alloc / __free. And has the error (at runtime): ~lib/rt/tlsf.ts:279:13: error: null
    Screenshot from 2020-02-20 02-24-53

Let me know if this is enough info! Thanks! 😄 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions