wasm-c-api
wasm-c-api copied to clipboard
docker build fails in C++ Multi test
I just run docker build . in master and v8 branch.
=== C++ multi ====
Initializing...
Loading binary...
Compiling module...
Creating callback...
Instantiating module...
Extracting export...
Calling export...
> Error calling function! Uncaught TypeError: wasm function signature contains illegal type
Leaked 1 instances of wasm::vec<byte_t>, made 6, freed 5!
Leaked 1 instances of wasm::Engine, made 1, freed 0!
Leaked 1 instances of wasm::Store, made 1, freed 0!
Leaked 12 instances of wasm::ValType, made 84, freed 72!
Leaked 3 instances of wasm::vec<ValType>, made 21, freed 18!
Leaked 1 instances of wasm::FuncType, made 10, freed 9!
Leaked 2 instances of wasm::vec<Val>, made 2, freed 0!
Leaked 1 instances of wasm::Trap, made 1, freed 0!
Leaked 1 instances of wasm::Module, made 3, freed 2!
Leaked 1 instances of wasm::Instance, made 1, freed 0!
Leaked 2 instances of wasm::Func, made 2, freed 0!
Leaked 2 instances of wasm::vec<Extern>, made 2, freed 0!
=================================================================
==235==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 16384 byte(s) in 4 object(s) allocated from:
#0 0x4e7698 (/code/wasm-c-api/out/example/multi-cc+0x4e7698)
#1 0x6b2f74 (/code/wasm-c-api/out/example/multi-cc+0x6b2f74)
#2 0x6b02d7 (/code/wasm-c-api/out/example/multi-cc+0x6b02d7)
#3 0x6b091d (/code/wasm-c-api/out/example/multi-cc+0x6b091d)
#4 0x6b7079 (/code/wasm-c-api/out/example/multi-cc+0x6b7079)
#5 0x6b6fca (/code/wasm-c-api/out/example/multi-cc+0x6b6fca)
#6 0x6416fb (/code/wasm-c-api/out/example/multi-cc+0x6416fb)
#7 0x5f715e (/code/wasm-c-api/out/example/multi-cc+0x5f715e)
#8 0x5f7c08 (/code/wasm-c-api/out/example/multi-cc+0x5f7c08)
#9 0x8b4f40 (/code/wasm-c-api/out/example/multi-cc+0x8b4f40)
#10 0x57f518 (/code/wasm-c-api/out/example/multi-cc+0x57f518)
#11 0x57f61e (/code/wasm-c-api/out/example/multi-cc+0x57f61e)
#12 0x536f6e (/code/wasm-c-api/out/example/multi-cc+0x536f6e)
#13 0x5253a1 (/code/wasm-c-api/out/example/multi-cc+0x5253a1)
#14 0x528755 (/code/wasm-c-api/out/example/multi-cc+0x528755)
Full build log: wasn.log.txt
It's difficult to debug this remotely, but my guess would be that this somehow runs an old version of V8 that does not support multiple values yet. Can you report the V8 version?