{"action":"closed","issue":{"url":"https://api.github.com/repos/projectatomic/libpod/issues/169","repository_url":"https://api.github.com/repos/projectatomic/libpod","labels_url":"https://api.github.com/repos/projectatomic/libpod/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/libpod/issues/169/comments","events_url":"https://api.github.com/repos/projectatomic/libpod/issues/169/events","html_url":"https://github.com/projectatomic/libpod/issues/169","id":284769267,"number":169,"title":"podman top panics under certain conditions","user":{"login":"baude","id":8824535,"avatar_url":"https://avatars3.githubusercontent.com/u/8824535?v=4","gravatar_id":"","url":"https://api.github.com/users/baude","html_url":"https://github.com/baude","followers_url":"https://api.github.com/users/baude/followers","following_url":"https://api.github.com/users/baude/following{/other_user}","gists_url":"https://api.github.com/users/baude/gists{/gist_id}","starred_url":"https://api.github.com/users/baude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baude/subscriptions","organizations_url":"https://api.github.com/users/baude/orgs","repos_url":"https://api.github.com/users/baude/repos","events_url":"https://api.github.com/users/baude/events{/privacy}","received_events_url":"https://api.github.com/users/baude/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"baude","id":8824535,"avatar_url":"https://avatars3.githubusercontent.com/u/8824535?v=4","gravatar_id":"","url":"https://api.github.com/users/baude","html_url":"https://github.com/baude","followers_url":"https://api.github.com/users/baude/followers","following_url":"https://api.github.com/users/baude/following{/other_user}","gists_url":"https://api.github.com/users/baude/gists{/gist_id}","starred_url":"https://api.github.com/users/baude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baude/subscriptions","organizations_url":"https://api.github.com/users/baude/orgs","repos_url":"https://api.github.com/users/baude/repos","events_url":"https://api.github.com/users/baude/events{/privacy}","received_events_url":"https://api.github.com/users/baude/received_events","type":"User","site_admin":false},"assignees":[{"login":"baude","id":8824535,"avatar_url":"https://avatars3.githubusercontent.com/u/8824535?v=4","gravatar_id":"","url":"https://api.github.com/users/baude","html_url":"https://github.com/baude","followers_url":"https://api.github.com/users/baude/followers","following_url":"https://api.github.com/users/baude/following{/other_user}","gists_url":"https://api.github.com/users/baude/gists{/gist_id}","starred_url":"https://api.github.com/users/baude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baude/subscriptions","organizations_url":"https://api.github.com/users/baude/orgs","repos_url":"https://api.github.com/users/baude/repos","events_url":"https://api.github.com/users/baude/events{/privacy}","received_events_url":"https://api.github.com/users/baude/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2017-12-27T18:00:26Z","updated_at":"2018-02-05T16:23:20Z","closed_at":"2018-02-05T16:23:20Z","author_association":"MEMBER","body":"Under certain conditions, podman top will panic with an index out of range error.  To replicate:\r\n\r\n```\r\nsudo podman run -dt -e HTTPD_VAR_RUN=/var/run/httpd -e HTTPD_MAIN_CONF_D_PATH=/etc/httpd/conf.d \\\r\n                    -e HTTPD_MAIN_CONF_PATH=/etc/httpd/conf \\\r\n                    -e HTTPD_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/httpd/ \\\r\n                    registry.fedoraproject.org/f26/httpd /usr/bin/run-httpd\r\n```\r\nAnd then:\r\n```[cloud-user@baude-fedora-cloud libpod]$ sudo podman top c2b65f476274\r\npanic: runtime error: index out of range\r\n\r\ngoroutine 1 [running]:\r\nmain.psDataToPSParams(0xc42080e0d0, 0xb, 0xb, 0xc4203e0400, 0x8, 0x8, 0xc, 0x0, 0x0, 0x221d0de, ...)\r\n\t/home/cloud-user/src/github.com/projectatomic/libpod/_output/src/github.com/projectatomic/libpod/cmd/podman/top.go:151 +0x46e\r\nmain.topCmd(0xc420398160, 0x0, 0x0)\r\n\t/home/cloud-user/src/github.com/projectatomic/libpod/_output/src/github.com/projectatomic/libpod/cmd/podman/top.go:87 +0x3d9\r\ngithub.com/projectatomic/libpod/vendor/github.com/urfave/cli.HandleAction(0x1ef65e0, 0x22cc488, 0xc420398160, 0x0, 0xc420248ba0)\r\n\t/home/cloud-user/src/github.com/projectatomic/libpod/_output/src/github.com/projectatomic/libpod/vendor/github.com/urfave/cli/app.go:501 +0xd2\r\ngithub.com/projectatomic/libpod/vendor/github.com/urfave/cli.Command.Run(0x2218892, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2254845, 0x2c, 0x0, ...)\r\n\t/home/cloud-user/src/github.com/projectatomic/libpod/_output/src/github.com/projectatomic/libpod/vendor/github.com/urfave/cli/command.go:165 +0x505\r\ngithub.com/projectatomic/libpod/vendor/github.com/urfave/cli.(*App).Run(0xc420762000, 0xc420010090, 0x3, 0x3, 0x0, 0x0)\r\n\t/home/cloud-user/src/github.com/projectatomic/libpod/_output/src/github.com/projectatomic/libpod/vendor/github.com/urfave/cli/app.go:259 +0x740\r\nmain.main()\r\n\t/home/cloud-user/src/github.com/projectatomic/libpod/_output/src/github.com/projectatomic/libpod/cmd/podman/main.go:155 +0x1112\r\n```\r\nIt looks like the issue is around the default use of *cmd* in the ps options as removing that will allow it to work.\r\n\r\n"}}
{"actor":{"display_login":"baude"}}