bytecodealliance / wasm-micro-runtime

WebAssembly Micro Runtime (WAMR)
Apache License 2.0
4.66k stars 576 forks source link

Got Crash when call Intel dcap verification lib which link with wasm from java #3507

Closed dashuaic closed 4 weeks ago

dashuaic commented 4 weeks ago

The crash happened in WASM, and from the backtrace, we can see WASM try to initialize stack and got crash.

The backtrace like below

0 0x00007f6594519212 in touch_pages (stack_min_addr=0x7f65c0c21000 "", page_size=4096)

at /tmp/wasm-micro-runtime/core/shared/platform/common/posix/posix_thread.c:438

1 0x00007f6594519289 in init_stack_guard_pages ()

at /tmp/wasm-micro-runtime/core/shared/platform/common/posix/posix_thread.c:461

2 0x00007f659451965e in os_thread_signal_init (handler=0x7f65944e2c60 )

at /tmp/wasm-micro-runtime/core/shared/platform/common/posix/posix_thread.c:553

3 0x00007f65944e2d9e in runtime_signal_init ()

at /tmp/wasm-micro-runtime/core/iwasm/common/wasm_runtime_common.c:183

4 0x00007f65944e2e34 in wasm_runtime_env_init ()

at /tmp/wasm-micro-runtime/core/iwasm/common/wasm_runtime_common.c:251

5 0x00007f65944e3194 in wasm_runtime_full_init (init_args=0x7f65c0d1c420)

at /tmp/wasm-micro-runtime/core/iwasm/common/wasm_runtime_common.c:403

6 0x00007f659429a1fa in init_wasm_runtime_once () at opa_wasm.cpp:111

7 0x00007f659429ab5b in OPAEvaluateEngine::prepare_wasm (this=0x7f65c0d1c630, stack_size=8192, heap_size=0) at opa_wasm.cpp:225