-
Notifications
You must be signed in to change notification settings - Fork 646
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
AOT does not throw error as expected #4028
Comments
Hi, could you please provide more details? For example,
Also, you can add $IWASM_CMD -v=5 -f 32_good5 test.aot 65508 |
@TianlongLiang
When I debug the test, I find that when it runs in the function Really thanks for your help. |
From this line: "Hardware boundary check disabled" indicates iwasm disables HW boundary checks and uses software boundary check, so when using wamrc to compile the AOT file, you need to enable software boundary check too: $WAMRC --bounds-checks=1 -o test.aot test.wasm |
@TianlongLiang |
I try to test The AOT module of WAMR, and I use the tests in wasm-spec-tests.
I compile it to AOT myself, but when I run this case, I didn't get RuntimeError.
The WebAssembly module is:
(module
(memory 1)
(data (i32.const 0) "abcdefghijklmnopqrstuvwxyz")
...
(func (export "32_good5") (param $i i32) (result i32)
(i32.load offset=25 align=4 (local.get $i)) ;; 122 'z\0\0\0'
)
...
)
The test case is:
(assert_trap (invoke "32_good5" (i32.const 65508)) "out of bounds memory access")
I wonder why the AOT module of WAMR does not throw error when I run this test case, and how it could be made to throw one.
The text was updated successfully, but these errors were encountered: