{"action":"opened","number":483,"pull_request":{"url":"https://api.github.com/repos/chef/ohai/pulls/483","id":29122418,"html_url":"https://github.com/chef/ohai/pull/483","diff_url":"https://github.com/chef/ohai/pull/483.diff","patch_url":"https://github.com/chef/ohai/pull/483.patch","issue_url":"https://api.github.com/repos/chef/ohai/issues/483","number":483,"state":"open","locked":false,"title":"Workaround for hyperic/sigar#48, throw on 0 pid","user":{"login":"werkt","id":21398,"avatar_url":"https://avatars.githubusercontent.com/u/21398?v=3","gravatar_id":"","url":"https://api.github.com/users/werkt","html_url":"https://github.com/werkt","followers_url":"https://api.github.com/users/werkt/followers","following_url":"https://api.github.com/users/werkt/following{/other_user}","gists_url":"https://api.github.com/users/werkt/gists{/gist_id}","starred_url":"https://api.github.com/users/werkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/werkt/subscriptions","organizations_url":"https://api.github.com/users/werkt/orgs","repos_url":"https://api.github.com/users/werkt/repos","events_url":"https://api.github.com/users/werkt/events{/privacy}","received_events_url":"https://api.github.com/users/werkt/received_events","type":"User","site_admin":false},"body":"When proc_state is called for the second and all future times on a\r\nsingle sigar instance, it fails to throw an exception, resulting in\r\ninvalid memory access during ohai reporting of process names. This\r\nworkaround causes an invalid pid (0) to be caught and prevent the\r\ninvalid access.  Closes #423 and will be unnecessary and should be\r\nreverted when hyperic/sigar#48 is resolved.","created_at":"2015-02-11T19:50:59Z","updated_at":"2015-02-11T19:50:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chef/ohai/pulls/483/commits","review_comments_url":"https://api.github.com/repos/chef/ohai/pulls/483/comments","review_comment_url":"https://api.github.com/repos/chef/ohai/pulls/comments/{number}","comments_url":"https://api.github.com/repos/chef/ohai/issues/483/comments","statuses_url":"https://api.github.com/repos/chef/ohai/statuses/7ffbeba0f95ff215ba0379409b66c889e75bb061","head":{"label":"werkt:proc-state-exception","ref":"proc-state-exception","sha":"7ffbeba0f95ff215ba0379409b66c889e75bb061","user":{"login":"werkt","id":21398,"avatar_url":"https://avatars.githubusercontent.com/u/21398?v=3","gravatar_id":"","url":"https://api.github.com/users/werkt","html_url":"https://github.com/werkt","followers_url":"https://api.github.com/users/werkt/followers","following_url":"https://api.github.com/users/werkt/following{/other_user}","gists_url":"https://api.github.com/users/werkt/gists{/gist_id}","starred_url":"https://api.github.com/users/werkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/werkt/subscriptions","organizations_url":"https://api.github.com/users/werkt/orgs","repos_url":"https://api.github.com/users/werkt/repos","events_url":"https://api.github.com/users/werkt/events{/privacy}","received_events_url":"https://api.github.com/users/werkt/received_events","type":"User","site_admin":false},"repo":{"id":30666024,"name":"ohai","full_name":"werkt/ohai","owner":{"login":"werkt","id":21398,"avatar_url":"https://avatars.githubusercontent.com/u/21398?v=3","gravatar_id":"","url":"https://api.github.com/users/werkt","html_url":"https://github.com/werkt","followers_url":"https://api.github.com/users/werkt/followers","following_url":"https://api.github.com/users/werkt/following{/other_user}","gists_url":"https://api.github.com/users/werkt/gists{/gist_id}","starred_url":"https://api.github.com/users/werkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/werkt/subscriptions","organizations_url":"https://api.github.com/users/werkt/orgs","repos_url":"https://api.github.com/users/werkt/repos","events_url":"https://api.github.com/users/werkt/events{/privacy}","received_events_url":"https://api.github.com/users/werkt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/werkt/ohai","description":"Ohai profiles your system and emits JSON","fork":true,"url":"https://api.github.com/repos/werkt/ohai","forks_url":"https://api.github.com/repos/werkt/ohai/forks","keys_url":"https://api.github.com/repos/werkt/ohai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/werkt/ohai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/werkt/ohai/teams","hooks_url":"https://api.github.com/repos/werkt/ohai/hooks","issue_events_url":"https://api.github.com/repos/werkt/ohai/issues/events{/number}","events_url":"https://api.github.com/repos/werkt/ohai/events","assignees_url":"https://api.github.com/repos/werkt/ohai/assignees{/user}","branches_url":"https://api.github.com/repos/werkt/ohai/branches{/branch}","tags_url":"https://api.github.com/repos/werkt/ohai/tags","blobs_url":"https://api.github.com/repos/werkt/ohai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/werkt/ohai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/werkt/ohai/git/refs{/sha}","trees_url":"https://api.github.com/repos/werkt/ohai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/werkt/ohai/statuses/{sha}","languages_url":"https://api.github.com/repos/werkt/ohai/languages","stargazers_url":"https://api.github.com/repos/werkt/ohai/stargazers","contributors_url":"https://api.github.com/repos/werkt/ohai/contributors","subscribers_url":"https://api.github.com/repos/werkt/ohai/subscribers","subscription_url":"https://api.github.com/repos/werkt/ohai/subscription","commits_url":"https://api.github.com/repos/werkt/ohai/commits{/sha}","git_commits_url":"https://api.github.com/repos/werkt/ohai/git/commits{/sha}","comments_url":"https://api.github.com/repos/werkt/ohai/comments{/number}","issue_comment_url":"https://api.github.com/repos/werkt/ohai/issues/comments/{number}","contents_url":"https://api.github.com/repos/werkt/ohai/contents/{+path}","compare_url":"https://api.github.com/repos/werkt/ohai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/werkt/ohai/merges","archive_url":"https://api.github.com/repos/werkt/ohai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/werkt/ohai/downloads","issues_url":"https://api.github.com/repos/werkt/ohai/issues{/number}","pulls_url":"https://api.github.com/repos/werkt/ohai/pulls{/number}","milestones_url":"https://api.github.com/repos/werkt/ohai/milestones{/number}","notifications_url":"https://api.github.com/repos/werkt/ohai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/werkt/ohai/labels{/name}","releases_url":"https://api.github.com/repos/werkt/ohai/releases{/id}","created_at":"2015-02-11T19:40:18Z","updated_at":"2015-02-11T19:40:22Z","pushed_at":"2015-02-11T19:50:41Z","git_url":"git://github.com/werkt/ohai.git","ssh_url":"git@github.com:werkt/ohai.git","clone_url":"https://github.com/werkt/ohai.git","svn_url":"https://github.com/werkt/ohai","homepage":"http://docs.chef.io/ohai.html","size":8172,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chef:master","ref":"master","sha":"1ef15210695f08ee294f8ef73d08484b54b4b069","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":108289,"name":"ohai","full_name":"chef/ohai","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/ohai","description":"Ohai profiles your system and emits JSON","fork":false,"url":"https://api.github.com/repos/chef/ohai","forks_url":"https://api.github.com/repos/chef/ohai/forks","keys_url":"https://api.github.com/repos/chef/ohai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/ohai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/ohai/teams","hooks_url":"https://api.github.com/repos/chef/ohai/hooks","issue_events_url":"https://api.github.com/repos/chef/ohai/issues/events{/number}","events_url":"https://api.github.com/repos/chef/ohai/events","assignees_url":"https://api.github.com/repos/chef/ohai/assignees{/user}","branches_url":"https://api.github.com/repos/chef/ohai/branches{/branch}","tags_url":"https://api.github.com/repos/chef/ohai/tags","blobs_url":"https://api.github.com/repos/chef/ohai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/ohai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/ohai/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/ohai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/ohai/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/ohai/languages","stargazers_url":"https://api.github.com/repos/chef/ohai/stargazers","contributors_url":"https://api.github.com/repos/chef/ohai/contributors","subscribers_url":"https://api.github.com/repos/chef/ohai/subscribers","subscription_url":"https://api.github.com/repos/chef/ohai/subscription","commits_url":"https://api.github.com/repos/chef/ohai/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/ohai/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/ohai/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/ohai/issues/comments/{number}","contents_url":"https://api.github.com/repos/chef/ohai/contents/{+path}","compare_url":"https://api.github.com/repos/chef/ohai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/ohai/merges","archive_url":"https://api.github.com/repos/chef/ohai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/ohai/downloads","issues_url":"https://api.github.com/repos/chef/ohai/issues{/number}","pulls_url":"https://api.github.com/repos/chef/ohai/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/ohai/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/ohai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/ohai/labels{/name}","releases_url":"https://api.github.com/repos/chef/ohai/releases{/id}","created_at":"2009-01-15T20:50:43Z","updated_at":"2015-02-11T19:05:15Z","pushed_at":"2015-02-11T19:05:14Z","git_url":"git://github.com/chef/ohai.git","ssh_url":"git@github.com:chef/ohai.git","clone_url":"https://github.com/chef/ohai.git","svn_url":"https://github.com/chef/ohai","homepage":"http://docs.chef.io/ohai.html","size":8172,"stargazers_count":451,"watchers_count":451,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":299,"mirror_url":null,"open_issues_count":39,"forks":299,"open_issues":39,"watchers":451,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chef/ohai/pulls/483"},"html":{"href":"https://github.com/chef/ohai/pull/483"},"issue":{"href":"https://api.github.com/repos/chef/ohai/issues/483"},"comments":{"href":"https://api.github.com/repos/chef/ohai/issues/483/comments"},"review_comments":{"href":"https://api.github.com/repos/chef/ohai/pulls/483/comments"},"review_comment":{"href":"https://api.github.com/repos/chef/ohai/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/chef/ohai/pulls/483/commits"},"statuses":{"href":"https://api.github.com/repos/chef/ohai/statuses/7ffbeba0f95ff215ba0379409b66c889e75bb061"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":0,"changed_files":1}}