Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpect excrption (integer overflow) on fast interpreter mode #2951

Closed
erxiaozhou opened this issue Dec 31, 2023 · 4 comments
Closed

Unexpect excrption (integer overflow) on fast interpreter mode #2951

erxiaozhou opened this issue Dec 31, 2023 · 4 comments

Comments

@erxiaozhou
Copy link

erxiaozhou commented Dec 31, 2023

Build commands

I compile the code with commit id 92bf854.
Platform: Ubuntu 20.04
CPU: amd64
compile:

export CC=/usr/lib/llvm-16/bin/clang
export CXX=/usr/lib/llvm-16/bin/clang++
cd product-mini/platforms/linux/;rm -rf build
cmake  -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_REF_TYPES=1 -DWAMR_BUILD_SIMD=1 -DWASM_ENABLE_BULK_MEMORY=1 -DWAMR_BUILD_AOT=0 -DCMAKE_BUILD_TYPE=Release -DWAMR_BUILD_FAST_INTERP=1 -DWAMR_BUILD_LIBC_WASI=0 -DWAMR_BUILD_LIBC_BUILTIN=1 -Bbuild

execute:

iwasm --heap-size=0  <tc_name>

Cases

iwasm_fast_jit_unexpected_int_overflow.zip

Actual behavior:

Exception: integer overflow

Expected behavior:

No exception

@erxiaozhou erxiaozhou changed the title Unexpect excrption (integer overflow) on fast JIT mod Unexpect excrption (integer overflow) on fast JIT mode Dec 31, 2023
@wenyongh
Copy link
Contributor

wenyongh commented Jan 2, 2024

Fast JIT works normal, it should be the issue of fast-interp according to the build command and test result.

@erxiaozhou erxiaozhou changed the title Unexpect excrption (integer overflow) on fast JIT mode Unexpect excrption (integer overflow) on fast interpreter mode Jan 2, 2024
@erxiaozhou
Copy link
Author

Fast JIT works normal, it should be the issue of fast-interp according to the build command and test result.

Yes, you are right.

@xujuntwt95329
Copy link
Collaborator

Thanks for reporting this, we've fixed in #2974

@wenyongh
Copy link
Contributor

wenyongh commented Jan 5, 2024

Close this issue since it was fixed.

@wenyongh wenyongh closed this as completed Jan 5, 2024
victoryang00 pushed a commit to victoryang00/wamr-aot-gc-checkpoint-restore that referenced this issue May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants