Skip to content

as crash when try to alloc large data #2827

Open
@HerrCai0907

Description

@HerrCai0907
Member

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

self-assigned this
on Mar 18, 2024
CountBleck

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.

CountBleck

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.

added a commit that references this issue on Mar 25, 2024
373166c
added a commit that references this issue on Mar 25, 2024
6a89a09
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

    Participants

    @HerrCai0907@CountBleck

    Issue actions

      as crash when try to alloc large data · Issue #2827 · AssemblyScript/assemblyscript