wasm-micro-runtime icon indicating copy to clipboard operation
wasm-micro-runtime copied to clipboard

Crash in fast interpreter

Open erxiaozhou opened this issue 1 year ago • 1 comments

Build commands

I compile the code with commit id 1977ad23efb3b3f2d4ae0ddf49096a05464f488f. 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

wamr_fast_interpreter_crash.zip

(I have shrunken the case, but it is still a little long ...)

Actual output:

double free or corruption (out)
Aborted

Expected output:

1

erxiaozhou avatar Jan 20 '24 18:01 erxiaozhou

@erxiaozhou thanks for spotting the issue, it was fixed with #3112, please pull the latest code to test again.

wenyongh avatar Feb 02 '24 06:02 wenyongh

Close this issue since it had been resolved.

wenyongh avatar Mar 15 '24 05:03 wenyongh