Skip to content

as crash when try to alloc large data #2827

Description

@HerrCai0907

Bug description

AS compiler crash after hang up a few second.

Steps to reproduce

memory.data(0x7fffffff);

npm run asbuild:debug

AssemblyScript version

v0.27.x

Activity

  1. self-assigned this
    on Mar 18, 2024
  2. CountBleck commented on Mar 24, 2024

    @CountBleck
    Member

    It looks like most of the time is spent in the allocU8Array call here, but the exception (a simple number, like 2153016872) is thrown in the binaryen._BinaryenSetMemory call without any delay there. I'll look into it a bit more.

  3. CountBleck commented on Mar 24, 2024

    @CountBleck
    Member

    Hm, I can only guess that it has something to do with the copy here, since binaryen.js's memory might hit the 4 GiB limit there.

  4. added 2 commits that reference this issue on Mar 25, 2024
    373166c
    6a89a09
  5. added 4 commits that reference this issue on Apr 3, 2024
    559814d
    ed50aef
    4465767
    163a631
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions