Skip to content

Fail to set the max memory with c-api ? #1289

@orangeC23

Description

@orangeC23

Steps to reproduce

I tried to execute the test.wat:
test.txt both in command line and c-api.

(1)command line

iwasm test.wat

(2)c-api

The c file is
test-in-c.txt
Interpreter mode : cd build; cmake .. ; make; ./test
AOT mode : cd build; cmake -DWAMR_BUILD_INTERP=0 -DWAMR_BUILD_AOT=1 ..; make; ./test

Expected result

Allow the memory of 65536, and don't print error.

Actual result

(1)WAMR command line succeed and didn't print error.

(2)c-api in interpreter mode failed and print:

截屏2022-07-12 下午5 55 41
c-api in AOT mode succeed.

Both macOS and ubuntu got the same result.

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