{"action":"created","issue":{"url":"https://api.github.com/repos/hishamhm/htop/issues/587","repository_url":"https://api.github.com/repos/hishamhm/htop","labels_url":"https://api.github.com/repos/hishamhm/htop/issues/587/labels{/name}","comments_url":"https://api.github.com/repos/hishamhm/htop/issues/587/comments","events_url":"https://api.github.com/repos/hishamhm/htop/issues/587/events","html_url":"https://github.com/hishamhm/htop/issues/587","id":202313115,"number":587,"title":"Ordering bug in tree view","user":{"login":"atlaua","id":864193,"avatar_url":"https://avatars.githubusercontent.com/u/864193?v=3","gravatar_id":"","url":"https://api.github.com/users/atlaua","html_url":"https://github.com/atlaua","followers_url":"https://api.github.com/users/atlaua/followers","following_url":"https://api.github.com/users/atlaua/following{/other_user}","gists_url":"https://api.github.com/users/atlaua/gists{/gist_id}","starred_url":"https://api.github.com/users/atlaua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlaua/subscriptions","organizations_url":"https://api.github.com/users/atlaua/orgs","repos_url":"https://api.github.com/users/atlaua/repos","events_url":"https://api.github.com/users/atlaua/events{/privacy}","received_events_url":"https://api.github.com/users/atlaua/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-21T12:30:26Z","updated_at":"2017-01-24T22:21:06Z","closed_at":null,"body":"\r\n\r\nOn my system, processes by other users aren't visible in htop due to SELinux restrictions. This includes the init process. Normally, this doesn't bother htop, but it seems to cause the following bug (which does not occur:\r\n\r\nWhen a process has a lower PID than its parent, it is not included in the tree below its parent; instead, it is listed above the parent without any indentation. Here's a screenshot: \r\n\r\n![htop_tree_order_bug](https://cloud.githubusercontent.com/assets/864193/22174375/7ad2cab0-dfdd-11e6-8bfe-62d8ed7d6172.png)\r\n\r\nThis does not happen when run htop as root (thereby overriding the restrictions mentioned above); hence I assume this bug is causes by htop not being able to see the whole process tree."},"comment":{"url":"https://api.github.com/repos/hishamhm/htop/issues/comments/274958204","html_url":"https://github.com/hishamhm/htop/issues/587#issuecomment-274958204","issue_url":"https://api.github.com/repos/hishamhm/htop/issues/587","id":274958204,"user":{"login":"hishamhm","id":245621,"avatar_url":"https://avatars.githubusercontent.com/u/245621?v=3","gravatar_id":"","url":"https://api.github.com/users/hishamhm","html_url":"https://github.com/hishamhm","followers_url":"https://api.github.com/users/hishamhm/followers","following_url":"https://api.github.com/users/hishamhm/following{/other_user}","gists_url":"https://api.github.com/users/hishamhm/gists{/gist_id}","starred_url":"https://api.github.com/users/hishamhm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hishamhm/subscriptions","organizations_url":"https://api.github.com/users/hishamhm/orgs","repos_url":"https://api.github.com/users/hishamhm/repos","events_url":"https://api.github.com/users/hishamhm/events{/privacy}","received_events_url":"https://api.github.com/users/hishamhm/received_events","type":"User","site_admin":false},"created_at":"2017-01-24T22:21:06Z","updated_at":"2017-01-24T22:21:06Z","body":"Thanks for reporting!\r\n\r\nI think I know what's going on (if I recall correctly, I think the tree-sorting _does_ assume that children have a higher PID than their parents — the code sorts by PID and constructs the tree from there).\r\n\r\nJust out of curiosity, how did child processes end up with lower PIDs than their parents in your system? Was it a long uptime, then the PID number overflowed and rolled over? (Just asking in case there's an easy way to reproduce this.)"}}
{"actor":{"display_login":"hishamhm"}}