Rootless podman ps segfault on refresh when containers are present #2894
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
rootless
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Segfault stack trace: https://paste.fedoraproject.org/paste/ClFhuW2MYXIW2qESPyQ4Mg
When rootless
podman
runs therefresh
command when containers are present, it will segfault.Nearest I can tell, the sequence of events goes like this:
Podman's main creates a fresh
libpod.Runtime
to search for user namespaces to joinWe haven't joined a user namespace yet, so
GetEUID()
!= 0, so thestorage.Store
is not configuredA refresh is requested, so the code attempts to call into the store to create the container's temporary directories. The store has not yet been configured, so we segfault. Podman becomes unusable because refresh is impossible.
We need to do a refresh, though. Otherwise we won't properly reset container states after reboot.
Steps to reproduce the issue:
Create at least one container e.g.
podman create -t -i fedora bash
Reboot the system
Run any
podman
command that is notpodman version
Describe the results you received:
Podman segfaults
Describe the results you expected:
Podman does not segfault
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Current master on F29, originally noticed with Rawhide packages
The text was updated successfully, but these errors were encountered: