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

Segmentation fault from container creation call within a nested container #20

Open
pevogam opened this issue Aug 26, 2020 · 1 comment

Comments

@pevogam
Copy link

pevogam commented Aug 26, 2020

Hi,

Running this minimal script

import lxc
c = lxc.Container("taskc")
if not c.defined:
    # Create the container rootfs
    if not c.create("download", lxc.LXC_CREATE_QUIET, {"dist": "fedora",
                                                       "release": "32",
                                                       "arch": "i386"}):
        print("Could not create container")

within a container with nesting.conf enabled results in Segmentation fault (core dumped) with LXC version 3.2.1. Restricting the possible sources shows that the create call is the reason for the segmentation fault.

Has anyone else experienced this?

@pevogam pevogam changed the title Segmentation fault from container creation call Segmentation fault from container creation call within a nested container Aug 26, 2020
@pevogam
Copy link
Author

pevogam commented Aug 26, 2020

I am not sure if this is even possible despite the lines

# Template script checksum (SHA-1): a4e52f9f5b11c05d7c29b3fcb4644995b68f219e
# For additional config options, please look at lxc.container.conf(5)
# Uncomment the following line to support nesting containers:
lxc.include = /usr/share/lxc/config/nesting.conf

so perhaps it is not supported. In any case, it would be probably be good if the exit is more graceful than segfaulting.

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

No branches or pull requests

1 participant