ngx_wasm_module icon indicating copy to clipboard operation
ngx_wasm_module copied to clipboard

If plugin `_start` or `_initialize` attempts to invoke any host call, a segmentation fault will occur.

Open dev-null-undefined opened this issue 6 months ago • 0 comments

Since the ngx_proxy_wasm_instance_t is not yet created and set to the instance->data, every host calls that uses the data field through the ngx_proxy_wasm_instance2pwexec function will cause segmentation fault.

https://github.com/Kong/ngx_wasm_module/blob/main/src/wasm/vm/ngx_wavm.c#L1065

dev-null-undefined avatar May 12 '25 09:05 dev-null-undefined