Skip to content

Commit 7d60a50

Browse files
committed
debug(ci): add NULL-data diagnostic before proxy_ctx store_new
Tests whether wasmtime_store_new with NULL data works from the same thread/code path. If [0a] appears but [2] doesn't, the issue is specific to the &proxy_ctx data pointer value.
1 parent 3d5e4a4 commit 7d60a50

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/wasm_engine.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,15 @@ proxy_wasm_execute(struct vwasm_engine *engine,
764764

765765
/* Create a per-call store with proxy context as data */
766766
clock_gettime(CLOCK_MONOTONIC, &ts_start);
767+
write(STDERR_FILENO, "WASM-DBG: [0] diag NULL\n", 24);
768+
{
769+
wasmtime_store_t *diag;
770+
diag = wasmtime_store_new(engine->engine, NULL, NULL);
771+
write(STDERR_FILENO, "WASM-DBG: [0a] diag ok\n", 23);
772+
if (diag != NULL)
773+
wasmtime_store_delete(diag);
774+
write(STDERR_FILENO, "WASM-DBG: [0b] diag del\n", 24);
775+
}
767776
write(STDERR_FILENO, "WASM-DBG: [1] enter\n", 20);
768777
store = wasmtime_store_new(engine->engine, &proxy_ctx, NULL);
769778
write(STDERR_FILENO, "WASM-DBG: [2] store_new done\n", 29);

0 commit comments

Comments
 (0)