Hristo Venev
Hristo Venev
Version `2.0.5` has the exact same issue. Here is the output from running the same command on an empty root prefix: ``` debug libmamba Loading configuration trace libmamba Compute configurable...
Here are the contents of `$MAMBA_ROOT_PREFIX` after running the command: ``` . ./pkgs ./pkgs/urls.txt ./envs ./envs/testenv ./envs/testenv/conda-meta ./envs/testenv/conda-meta/history ``` Both `pkgs/urls.txt` and `./envs/testenv/conda-meta/history` are empty.
The issue happens both when the owner is the current user: ``` $ id -u 10000 $ cat /proc/self/cgroup 1:name=systemd:/ 0::/user.slice/user-10000.slice/[email protected]/app.slice/app-org.gnome.Terminal.slice/vte-spawn-3f83f4ee-c1d2-4189-aacf-4a1329475b7e.scope $ ls -lnd /sys/fs/cgroup/user.slice/user-10000.slice/[email protected]/app.slice/app-org.gnome.Terminal.slice/vte-spawn-3f83f4ee-c1d2-4189-aacf-4a1329475b7e.scope drwxr-xr-x 2 10000 10000 0...
Yes, it appears that cleaning up the legacy `name=systemd` hierarchy fixes the issue when the owner of the cgroup is the current user: ``` $ cat /proc/self/cgroup 0::/user.slice/user-10000.slice/[email protected]/app.slice/app-org.gnome.Terminal.slice/vte-spawn-a121e3d9-a08f-4c31-a469-487c7a44111f.scope $ podman...
The issue persists in podman 4.9.3. ``` $ podman --version podman version 4.9.3 $ cat /proc/self/cgroup 0::/user.slice/user-10000.slice/session-c30.scope $ ls -lnd /sys/fs/cgroup/user.slice/user-10000.slice/session-c30.scope drwxr-xr-x 2 0 0 0 Mar 9 13:32 /sys/fs/cgroup/user.slice/user-10000.slice/session-c30.scope...
> that is kind of expected, the `cgroups=disabled` is passed down to the OCI runtime, but still Podman creates its own cgroup if the user doesn't own the current one....
Then maybe podman/conmon could move itself to another cgroup after spawning the container, not before?
The advantage is that the processes in the container would be running in the original cgroup from which `podman` was called, not in the new cgroup `conmon` was moved to....
This just leads to crashes: ``` $ podman ps panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x1766a2a] goroutine 1 [running]: main.persistentPreRunE(0x2d89da0,...
Happy new year! The issue is still present in Podman 5.7.1.