-
Notifications
You must be signed in to change notification settings - Fork 198
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
Panic while composing an ostree container native image in container mode #4646
Comments
Might be an ostree-ext bug from the backtrace. |
From https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.drain:
Which appears to be the case here:
So it looks like https://github.com/ostreedev/ostree-rs-ext/blob/main/lib/src/chunking.rs#L465 does not handle this case correctly. |
If we have a low amount of high-size packages then we will drain with an index higher than the size of the Vec which triggers a panic. Fixes: coreos/rpm-ostree#4646
Tentative fix in ostreedev/ostree-rs-ext#555 as I've not tested it. (I need to learn how to update the vendored code locally). |
If we have a low amount of high-size packages then we will drain with an index higher than the size of the Vec which triggers a panic. Fixes: coreos/rpm-ostree#4646
If we have a low amount of high-size packages then we will drain with an index higher than the size of the Vec which triggers a panic. Fixes: coreos/rpm-ostree#4646
See https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-patch-section |
If we have a low amount of high-size packages then we will drain with an index higher than the size of the Vec which triggers a panic. Fixes: coreos/rpm-ostree#4646
Example patch for reference:
|
Should be fixed by #4665 |
Manifest:
Exact error:
Full backtrace below.
Host system details
Provide the output of
rpm-ostree status
.Fedora 38 container, rpm-ostree 2023.8-2
Expected vs actual behavior
No panic while composing a container image.
Steps to reproduce it
See: https://github.com/travier/ostree-containers and job: https://github.com/travier/ostree-containers/actions/runs/6459112989/job/17534243713?pr=1 from travier/ostree-containers#1.
Full backtrace:
Would you like to work on the issue?
If nobody gets to it before me :).
The text was updated successfully, but these errors were encountered: