Kong / ngx_wasm_module

Nginx + WebAssembly
Apache License 2.0
79 stars 7 forks source link

V8 coredump on ubuntu-latest in ngx-wasm-rs #543

Closed thibaultcha closed 4 months ago

thibaultcha commented 4 months ago

=== TEST 10: module directive - no .wat bytes - v8

#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=139976031857856)
    at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=139976031857856) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=139976031857856, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007f4eb5442476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4  0x00007f4eb54287f3 in __GI_abort () at ./stdlib/abort.c:79
#5  0x00005571b6800887 in std::sys::pal::unix::abort_internal ()
    at library/std/src/sys/pal/unix/mod.rs:369
#6  0x00005571b67f5d6a in std::panicking::rust_panic_with_hook () at library/core/src/ptr/mod.rs:515
#7  0x00005571b67f5a99 in std::panicking::begin_panic_handler::{closure#0} ()
    at library/std/src/panicking.rs:649
#8  0x00005571b67f30a6 in std::sys_common::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::{closure_env#0}, !> () at library/std/src/sys_common/backtrace.rs:171
#9  0x00005571b67f5804 in std::panicking::begin_panic_handler () at library/std/src/panicking.rs:645
#10 0x00005571b4ea447a in core::panicking::panic_nounwind_fmt::runtime ()
    at library/core/src/panicking.rs:110
#11 core::panicking::panic_nounwind_fmt () at library/core/src/panicking.rs:123
#12 0x00005571b4ea4529 in core::panicking::panic_nounwind () at library/core/src/panicking.rs:156
#13 0x00005571b63b769c in core::slice::raw::from_raw_parts::precondition_check (data=0x0, size=1, 
    align=1, len=0)
    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/intrinsics.rs:2799
#14 0x00005571b63b75dd in core::slice::raw::from_raw_parts<u8> (data=0x0, len=0)
    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/slice/raw.rs:98
#15 0x00005571b6387376 in ngx_wasm_wat::ngx_wasm_wat_to_wasm (wat=0x7ffdfde07270, wasm=0x7ffdfde07200)
    at ngx-wasm-rs/lib/wat/src/lib.rs:44
#16 0x00005571b50672dc in ngx_v8_wat2wasm (wat=0x7ffdfde07270, wasm=0x5571b7476f28, err=0x7ffdfde07260)
    at /home/runner/work/ngx_wasm_module/ngx_wasm_module/src/wasm/wrt/ngx_wrt_v8.c:222
#17 0x00005571b506e583 in ngx_wavm_module_load_bytes (module=0x5571b7476ea8)
    at /home/runner/work/ngx_wasm_module/ngx_wasm_module/src/wasm/vm/ngx_wavm.c:457
#18 0x00005571b506d7c1 in ngx_wavm_init (vm=0x5571b74769a0)
    at /home/runner/work/ngx_wasm_module/ngx_wasm_module/src/wasm/vm/ngx_wavm.c:199
#19 0x00005571b5074d62 in ngx_wasm_core_init (cycle=0x5571b7473e50)
    at /home/runner/work/ngx_wasm_module/ngx_wasm_module/src/wasm/ngx_wasm_core_module.c:459
#20 0x00005571b50479eb in ngx_wasmx_init (cycle=0x5571b7473e50)
    at /home/runner/work/ngx_wasm_module/ngx_wasm_module/src/ngx_wasmx.c:262
#21 0x00005571b4ee7738 in ngx_init_modules (cycle=0x5571b7473e50) at src/core/ngx_module.c:72
#22 0x00005571b4edec8f in ngx_init_cycle (old_cycle=0x7ffdfde07610) at src/core/ngx_cycle.c:635
#23 0x00005571b4eac9eb in main (argc=5, argv=0x7ffdfde079b8) at src/core/nginx.c:293