-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
runc-dmz masks the error from unix.SYS_EXECVEAT #4170
Comments
Because
But people may not know what's the |
We can use perror(), but the nolibc version doesn't expand the message there either. It will be shown like this:
This is with this patch:
errno is arch dependant, we can't do that easily. I think we can just fix the return code and we have to live with this if we keep nolibc :-/ |
Another option might be to return the errno in _dmz.c. Then, the go program takes that and translates it using the go library (https://pkg.go.dev/golang.org/x/sys/unix#ErrnoName). I'll check this out. |
If this cannot be solved simply, we are deleting runc-dmz as there appear to be very deep issues that we will miss no longer how many times we find a "simple" surface bug. I liked the idea, but Linux doesn't allow you to do that in general it seems. |
I don't think this problem is so serious enough that we need to do this. |
|
I prefer to 2.2, welcome different opinions. |
@lifubang I think I prefer the PR I opened (#4172 ). It is trivial, it prints the same message as before, and even using libc the size difference with the runc binary is more than 21x (runc is 14100K, runc-dmz with libc is 668K). IMHO we can look into those alternatives for runc 1.3, if we still want to keep runc-dmz AND reduce its size. I don't see the need to invest more in runc-dmz now. |
Yes, yes, it’s obvious an option. @cyphar @AkihiroSuda PTAL |
This is resolved by #4172, I will open an new issue to track the problem of the exit status code error in release-1.1 branch and main branch without dmz. |
Build runc from the main branch in a amd64 host, and use a different architecture container entrypoint to start the container, we will get no error msg, it's different from 1.1.
There are two problems:
exec /runc.arm64: exec format error
is gone in the main branch.The text was updated successfully, but these errors were encountered: