You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using podman on macos, I mistakenly ran podman image list -f json instead of podman image list --format json and got a crash
Steps to reproduce the issue
Steps to reproduce the issue
Run podman image list -f json (any invalid filter will do)
Describe the results you received
% podman image list -f invalid
panic: runtime error: index out of range [1] with length 1
goroutine 1 [running]:
github.com/containers/podman/v5/pkg/domain/infra/tunnel.(*ImageEngine).List(0x1400071a2d0, {0x1039a6d50?, 0x0?}, {0x0?, 0x0?, {0x140001caf30?, 0x0?, 0x0?}})
/Users/runner/work/podman/podman/pkg/domain/infra/tunnel/images.go:41 +0x32c
github.com/containers/podman/v5/cmd/podman/images.images(0x1048b0600, {0x140000aaf40?, 0x0?, 0x2?})
/Users/runner/work/podman/podman/cmd/podman/images/list.go:125 +0x204
github.com/spf13/cobra.(*Command).execute(0x1048b0600, {0x1400003a120, 0x2, 0x2})
/Users/runner/work/podman/podman/vendor/github.com/spf13/cobra/command.go:983 +0x840
github.com/spf13/cobra.(*Command).ExecuteC(0x1048abe20)
/Users/runner/work/podman/podman/vendor/github.com/spf13/cobra/command.go:1115 +0x344
github.com/spf13/cobra.(*Command).Execute(...)
/Users/runner/work/podman/podman/vendor/github.com/spf13/cobra/command.go:1039
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/Users/runner/work/podman/podman/vendor/github.com/spf13/cobra/command.go:1032
main.Execute()
/Users/runner/work/podman/podman/cmd/podman/root.go:115 +0xc8
main.main()
/Users/runner/work/podman/podman/cmd/podman/main.go:61 +0x4b0
Describe the results you expected
An error similar to the one I get on linux:
Error: invalid image filter "invalid": must be in the format "filter=value or filter!=value"
podman info output
host:
arch: arm64buildahVersion: 1.36.0cgroupControllers:
- cpu
- io
- memory
- pidscgroupManager: systemdcgroupVersion: v2conmon:
package: conmon-2.1.10-1.fc40.aarch64path: /usr/bin/conmonversion: 'conmon version 2.1.10, commit: 'cpuUtilization:
idlePercent: 97.34systemPercent: 0.89userPercent: 1.77cpus: 5databaseBackend: sqlitedistribution:
distribution: fedoravariant: coreosversion: "40"eventLogger: journaldfreeLocks: 2043hostname: localhost.localdomainidMappings:
gidmap:
- container_id: 0host_id: 1000size: 1
- container_id: 1host_id: 100000size: 1000000uidmap:
- container_id: 0host_id: 501size: 1
- container_id: 1host_id: 100000size: 1000000kernel: 6.8.11-300.fc40.aarch64linkmode: dynamiclogDriver: journaldmemFree: 1459552256memTotal: 2044608512networkBackend: netavarknetworkBackendInfo:
backend: netavarkdns:
package: aardvark-dns-1.11.0-1.20240531102943328308.main.4.g6838c50.fc40.aarch64path: /usr/libexec/podman/aardvark-dnsversion: aardvark-dns 1.12.0-devpackage: netavark-1.11.0-1.20240606174759319307.main.8.gfebe31a.fc40.aarch64path: /usr/libexec/podman/netavarkversion: netavark 1.12.0-devociRuntime:
name: crunpackage: crun-1.15-1.20240607090105650503.main.32.gea54402.fc40.aarch64path: /usr/bin/crunversion: |- crun version UNKNOWN commit: 7cfd0aeb40e4605b6b0ee0afd9cfca80f9c5f68a rundir: /run/user/501/crun spec: 1.0.0 +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJLos: linuxpasta:
executable: /usr/bin/pastapackage: passt-0^20240510.g7288448-1.fc40.aarch64version: | pasta 0^20240510.g7288448-1.fc40.aarch64-pasta Copyright Red Hat GNU General Public License, version 2 or later <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.remoteSocket:
exists: truepath: /run/user/501/podman/podman.sockrootlessNetworkCmd: pastasecurity:
apparmorEnabled: falsecapabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOTrootless: trueseccompEnabled: trueseccompProfilePath: /usr/share/containers/seccomp.jsonselinuxEnabled: trueserviceIsRemote: trueslirp4netns:
executable: /usr/bin/slirp4netnspackage: slirp4netns-1.2.2-2.fc40.aarch64version: |- slirp4netns version 1.2.2 commit: 0ee2d87523e906518d34a6b423271e4826f71faf libslirp: 4.7.0 SLIRP_CONFIG_VERSION_MAX: 4 libseccomp: 2.5.3swapFree: 0swapTotal: 0uptime: 0h 23m 51.00svariant: v8plugins:
authorization: nulllog:
- k8s-file
- none
- passthrough
- journaldnetwork:
- bridge
- macvlan
- ipvlanvolume:
- localregistries:
search:
- docker.iostore:
configFile: /var/home/core/.config/containers/storage.confcontainerStore:
number: 0paused: 0running: 0stopped: 0graphDriverName: overlaygraphOptions: {}graphRoot: /var/home/core/.local/share/containers/storagegraphRootAllocated: 106769133568graphRootUsed: 4636852224graphStatus:
Backing Filesystem: xfsNative Overlay Diff: "true"Supports d_type: "true"Supports shifting: "false"Supports volatile: "true"Using metacopy: "false"imageCopyTmpDir: /var/tmpimageStore:
number: 0runRoot: /run/user/501/containerstransientStore: falsevolumePath: /var/home/core/.local/share/containers/storage/volumesversion:
APIVersion: 5.1.1Built: 1717459200BuiltTime: Tue Jun 4 02:00:00 2024GitCommit: ""GoVersion: go1.22.3Os: linuxOsArch: linux/arm64Version: 5.1.1
### Podman in a container
No
### Privileged Or Rootless
None
### Upstream Latest Release
Yes
### Additional environment details
macOS on Apple silicon
### Additional information
This happens on macos, but not on linux.
The text was updated successfully, but these errors were encountered:
Partial fix for containers/podman#23120
Working on a fix for this crash, but want same error to come back as
non-remote case.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
rhatdan
added a commit
to rhatdan/common
that referenced
this issue
Jun 27, 2024
Partial fix for containers/podman#23120
Working on a fix for this crash, but want same error to come back as
non-remote case.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Partial fix for containers/podman#23120
Working on a fix for this crash, but want same error to come back as
non-remote case.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
rhatdan
added a commit
to rhatdan/common
that referenced
this issue
Jun 29, 2024
Partial fix for containers/podman#23120
Working on a fix for this crash, but want same error to come back as
non-remote case.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Issue Description
Using podman on macos, I mistakenly ran
podman image list -f json
instead ofpodman image list --format json
and got a crashSteps to reproduce the issue
Steps to reproduce the issue
podman image list -f json
(any invalid filter will do)Describe the results you received
Describe the results you expected
An error similar to the one I get on linux:
podman info output
The text was updated successfully, but these errors were encountered: