Skip to content
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

iwasm doesn't respect timeout in start function execution #4047

Open
sjamesr opened this issue Jan 22, 2025 · 1 comment
Open

iwasm doesn't respect timeout in start function execution #4047

sjamesr opened this issue Jan 22, 2025 · 1 comment

Comments

@sjamesr
Copy link
Contributor

sjamesr commented Jan 22, 2025

Let's say you run

iwasm --timeout=4000 foo.wasm

If foo.wasm has a start function with an infinite loop (e.g. due to a bug), the intepreter is not able to interrupt execution after 4 seconds. The interpreter will try to interrupt modules by calling wasm_runtime_terminate, but this requires a module instance, and obviously in this case module instantiation cannot finish.

What do you all think of adding some mechanism to interrupt the start function after a period of time? Is there a way to do this that I'm missing?

@lum1n0us
Copy link
Collaborator

🤔 Something like #2163 and #3927

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants