spiegel_podman/cmd
Paul Holzinger e4c810a8f1
fix panic on state refresh
In order to use parallel.Enqueue() it is required to call
parallel.SetMaxThreads() first. However in our main call we have been
doing this after we setup the initial runtime so just move this up.
And while at it move up the cpu and memory profile setup as well so we
can capture the earlier parts as well.

This was most likely introduced by commit 46d874aa52 ("Refactor graph
traversal & use for pod stop") which started using parallel.Enqueue() in
removePod() which then can get called from refresh() when a container
has autoremoval configured.

I tried many hard resets in VMs to reproduce but was unable to do so.
I always got "retrieving temporary directory for container xxx: no such
container" erros instead and it failed to autoremove but no panics.
Besides that many times c/storage was corrupted which made the image I
used unusable and it had to be deleted which is concerning in itself.

Fixes #26469

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-19 12:46:23 +02:00
..
podman fix panic on state refresh 2025-06-19 12:46:23 +02:00
podman-mac-helper rewrite typo osascript 2024-09-12 14:57:55 +01:00
podman-testing cmd/podman-testing: fix freebsd compilation 2025-04-02 13:35:14 -07:00
podman-wslkerninst Take path for wsl instead of forcing through WindowsApps 2025-05-08 16:39:03 +02:00
quadlet Quadlet - remove the usage of cid and podid for container and pod files 2025-04-30 07:59:15 -04:00
rootlessport cmd/rootlessport: add missing linux build tags 2025-03-31 12:29:21 -07:00
winpath ci: remove stylecheck linter 2025-03-31 12:27:55 -07:00