-
Notifications
You must be signed in to change notification settings - Fork 355
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
[Bug]: Fix Wasm executors to exit after run completion #2917
Comments
@YJDoc2 I'm interested in this issue, but I won't be able to work on it until the weekends in October. If that’s okay, I would love to take it on. |
Hey, sure I will assign this to you. Context for this is - for normal binaries we use |
@YJDoc2 Thanks for sharing contexts! My new PC has arrived, I just started using a Linux desktop machine from today. So I can finally tackle this issue. I need an additional bit of time, but I will do this for sure. |
Great! Also congrats on the PC and starting with Linux!
Yep, no worries. |
Hey @kiokuless , ping! |
@kiokuless Hey please let me know if you are still working on this. It is ok if you are busy with other things and cannot work on this anymore, just let me know so I can mark this unassigned for someone else to take up. |
Bug Description
In youki we expect that
executor.exec
will not return if the exec is successful. This behavior is consistent for tradition containers, where we do an exec syscall and replace process image, thus never returning from exec call. However for wasm workloads ourexec
implementation does return, and causes crash as it reaches theunreachable!
statement. We can either allow the executor to return, or just do aprocess.exit
with exit code from wasm code in our wasm executors to conform it to traditional containers.Steps to Reproduce
Follow https://containers.github.io/youki/user/webassembly.html to create a wasm container and run it. It will run, but in the end it will error saying -
Expectation
Youki should not crash in this way. The exit should be graceful, i.e. with a proper exit code (non-zero in case of wasm module returning non-zero exit)
System and Setup Info
N/A , should be reproducible on all systems
Additional Context
FYI, if a new contributor is interested in taking this , ping me (@YJDoc2 ) for help before starting!
The text was updated successfully, but these errors were encountered: