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 exception (divide by zero) on fast interpreter mode #2952

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

Unexpect exception (divide by zero) on fast interpreter mode #2952

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_devide_by_zero.zip

Actual behavior:

Exception: integer divide by zero

Expected behavior:

No exception

@erxiaozhou erxiaozhou changed the title Unexpect excrption (divide by zero) on fast JIT mod Unexpect excrption (divide by zero) 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 (divide by zero) on fast JIT mode Unexpect excrption (divide by zero) on fast interpreter mode Jan 2, 2024
@erxiaozhou
Copy link
Author

There is a typo in the title and I have fixed it now.

@wenyongh wenyongh changed the title Unexpect excrption (divide by zero) on fast interpreter mode Unexpect exception (divide by zero) on fast interpreter mode Jan 3, 2024
wenyongh pushed a commit that referenced this issue Jan 4, 2024
@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