-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing assert option #652
Comments
It does not seem true to me. On instance trap |
I am bit confused then by this
from there and many other places it seems to me like the value NGX_ABORT (-6) is allowed return value that is counted upon. On that note from the assert ( ngx_wasm_module/src/wasm/ngx_wasm_ops.c Line 568 in 883b627
I can see NGX_AGAIN being mentined as a way to yield a step? |
A simple way to test return status codes is to add an assertion and run the whole test suite. When a test fails because of the assertion, you then know that you can isolate that specific test to further debug the case. |
The first link in your comment ( |
If I am not mistaking the NGX_ABORT value is also valid for the rc here:
ngx_wasm_module/src/wasm/ngx_wasm_ops.c
Line 563 in 883b627
Since it can be returned from ngx_proxy_wasm_resume on wasmtime trap?
And after returning from this function you are also taking that value into count. So I think you forgot it here.
The text was updated successfully, but these errors were encountered: