{"action":"opened","number":854,"pull_request":{"url":"https://api.github.com/repos/topazproject/topaz/pulls/854","id":48482085,"html_url":"https://github.com/topazproject/topaz/pull/854","diff_url":"https://github.com/topazproject/topaz/pull/854.diff","patch_url":"https://github.com/topazproject/topaz/pull/854.patch","issue_url":"https://api.github.com/repos/topazproject/topaz/issues/854","number":854,"state":"open","locked":false,"title":"Guard `defined?` from segfault with default value","user":{"login":"kachick","id":1180335,"avatar_url":"https://avatars.githubusercontent.com/u/1180335?v=3","gravatar_id":"","url":"https://api.github.com/users/kachick","html_url":"https://github.com/kachick","followers_url":"https://api.github.com/users/kachick/followers","following_url":"https://api.github.com/users/kachick/following{/other_user}","gists_url":"https://api.github.com/users/kachick/gists{/gist_id}","starred_url":"https://api.github.com/users/kachick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kachick/subscriptions","organizations_url":"https://api.github.com/users/kachick/orgs","repos_url":"https://api.github.com/users/kachick/repos","events_url":"https://api.github.com/users/kachick/events{/privacy}","received_events_url":"https://api.github.com/users/kachick/received_events","type":"User","site_admin":false},"body":"`defined?` with some code segfaults.\r\n\r\ntopaz (ruby-1.9.3p125) (git rev 6937882) [x86_64-darwin]\r\n```zsh\r\n☻  bin/topaz -e 'p defined?(next)'\r\n[1]    69483 segmentation fault  bin/topaz -e 'p defined?(next)'\r\n```\r\n\r\n\r\nAnd below. (noticed from https://github.com/topazproject/topaz/pull/845)\r\n```ruby\r\ndefined?(while x do y end)\r\ndefined?(until x do y end)\r\ndefined?(break)\r\ndefined?(next)\r\ndefined?(return)\r\ndefined?(__FILE__)\r\n```","created_at":"2015-10-22T16:40:48Z","updated_at":"2015-10-22T16:40:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/topazproject/topaz/pulls/854/commits","review_comments_url":"https://api.github.com/repos/topazproject/topaz/pulls/854/comments","review_comment_url":"https://api.github.com/repos/topazproject/topaz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/topazproject/topaz/issues/854/comments","statuses_url":"https://api.github.com/repos/topazproject/topaz/statuses/754f13181f862c6e016d44150a67ea046819ba16","head":{"label":"kachick:fix-some-defined","ref":"fix-some-defined","sha":"754f13181f862c6e016d44150a67ea046819ba16","user":{"login":"kachick","id":1180335,"avatar_url":"https://avatars.githubusercontent.com/u/1180335?v=3","gravatar_id":"","url":"https://api.github.com/users/kachick","html_url":"https://github.com/kachick","followers_url":"https://api.github.com/users/kachick/followers","following_url":"https://api.github.com/users/kachick/following{/other_user}","gists_url":"https://api.github.com/users/kachick/gists{/gist_id}","starred_url":"https://api.github.com/users/kachick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kachick/subscriptions","organizations_url":"https://api.github.com/users/kachick/orgs","repos_url":"https://api.github.com/users/kachick/repos","events_url":"https://api.github.com/users/kachick/events{/privacy}","received_events_url":"https://api.github.com/users/kachick/received_events","type":"User","site_admin":false},"repo":{"id":9327878,"name":"topaz","full_name":"kachick/topaz","owner":{"login":"kachick","id":1180335,"avatar_url":"https://avatars.githubusercontent.com/u/1180335?v=3","gravatar_id":"","url":"https://api.github.com/users/kachick","html_url":"https://github.com/kachick","followers_url":"https://api.github.com/users/kachick/followers","following_url":"https://api.github.com/users/kachick/following{/other_user}","gists_url":"https://api.github.com/users/kachick/gists{/gist_id}","starred_url":"https://api.github.com/users/kachick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kachick/subscriptions","organizations_url":"https://api.github.com/users/kachick/orgs","repos_url":"https://api.github.com/users/kachick/repos","events_url":"https://api.github.com/users/kachick/events{/privacy}","received_events_url":"https://api.github.com/users/kachick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kachick/topaz","description":"A high performance ruby, written in RPython","fork":true,"url":"https://api.github.com/repos/kachick/topaz","forks_url":"https://api.github.com/repos/kachick/topaz/forks","keys_url":"https://api.github.com/repos/kachick/topaz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kachick/topaz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kachick/topaz/teams","hooks_url":"https://api.github.com/repos/kachick/topaz/hooks","issue_events_url":"https://api.github.com/repos/kachick/topaz/issues/events{/number}","events_url":"https://api.github.com/repos/kachick/topaz/events","assignees_url":"https://api.github.com/repos/kachick/topaz/assignees{/user}","branches_url":"https://api.github.com/repos/kachick/topaz/branches{/branch}","tags_url":"https://api.github.com/repos/kachick/topaz/tags","blobs_url":"https://api.github.com/repos/kachick/topaz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kachick/topaz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kachick/topaz/git/refs{/sha}","trees_url":"https://api.github.com/repos/kachick/topaz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kachick/topaz/statuses/{sha}","languages_url":"https://api.github.com/repos/kachick/topaz/languages","stargazers_url":"https://api.github.com/repos/kachick/topaz/stargazers","contributors_url":"https://api.github.com/repos/kachick/topaz/contributors","subscribers_url":"https://api.github.com/repos/kachick/topaz/subscribers","subscription_url":"https://api.github.com/repos/kachick/topaz/subscription","commits_url":"https://api.github.com/repos/kachick/topaz/commits{/sha}","git_commits_url":"https://api.github.com/repos/kachick/topaz/git/commits{/sha}","comments_url":"https://api.github.com/repos/kachick/topaz/comments{/number}","issue_comment_url":"https://api.github.com/repos/kachick/topaz/issues/comments{/number}","contents_url":"https://api.github.com/repos/kachick/topaz/contents/{+path}","compare_url":"https://api.github.com/repos/kachick/topaz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kachick/topaz/merges","archive_url":"https://api.github.com/repos/kachick/topaz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kachick/topaz/downloads","issues_url":"https://api.github.com/repos/kachick/topaz/issues{/number}","pulls_url":"https://api.github.com/repos/kachick/topaz/pulls{/number}","milestones_url":"https://api.github.com/repos/kachick/topaz/milestones{/number}","notifications_url":"https://api.github.com/repos/kachick/topaz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kachick/topaz/labels{/name}","releases_url":"https://api.github.com/repos/kachick/topaz/releases{/id}","created_at":"2013-04-09T18:00:45Z","updated_at":"2013-12-20T03:25:45Z","pushed_at":"2015-10-22T16:32:32Z","git_url":"git://github.com/kachick/topaz.git","ssh_url":"git@github.com:kachick/topaz.git","clone_url":"https://github.com/kachick/topaz.git","svn_url":"https://github.com/kachick/topaz","homepage":"topazruby.com","size":8598,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"topazproject:master","ref":"master","sha":"69378820009a6f6e8a82f06dc8be9ece0b183f60","user":{"login":"topazproject","id":3477528,"avatar_url":"https://avatars.githubusercontent.com/u/3477528?v=3","gravatar_id":"","url":"https://api.github.com/users/topazproject","html_url":"https://github.com/topazproject","followers_url":"https://api.github.com/users/topazproject/followers","following_url":"https://api.github.com/users/topazproject/following{/other_user}","gists_url":"https://api.github.com/users/topazproject/gists{/gist_id}","starred_url":"https://api.github.com/users/topazproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topazproject/subscriptions","organizations_url":"https://api.github.com/users/topazproject/orgs","repos_url":"https://api.github.com/users/topazproject/repos","events_url":"https://api.github.com/users/topazproject/events{/privacy}","received_events_url":"https://api.github.com/users/topazproject/received_events","type":"Organization","site_admin":false},"repo":{"id":3966078,"name":"topaz","full_name":"topazproject/topaz","owner":{"login":"topazproject","id":3477528,"avatar_url":"https://avatars.githubusercontent.com/u/3477528?v=3","gravatar_id":"","url":"https://api.github.com/users/topazproject","html_url":"https://github.com/topazproject","followers_url":"https://api.github.com/users/topazproject/followers","following_url":"https://api.github.com/users/topazproject/following{/other_user}","gists_url":"https://api.github.com/users/topazproject/gists{/gist_id}","starred_url":"https://api.github.com/users/topazproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topazproject/subscriptions","organizations_url":"https://api.github.com/users/topazproject/orgs","repos_url":"https://api.github.com/users/topazproject/repos","events_url":"https://api.github.com/users/topazproject/events{/privacy}","received_events_url":"https://api.github.com/users/topazproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/topazproject/topaz","description":"A high performance ruby, written in RPython","fork":false,"url":"https://api.github.com/repos/topazproject/topaz","forks_url":"https://api.github.com/repos/topazproject/topaz/forks","keys_url":"https://api.github.com/repos/topazproject/topaz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/topazproject/topaz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/topazproject/topaz/teams","hooks_url":"https://api.github.com/repos/topazproject/topaz/hooks","issue_events_url":"https://api.github.com/repos/topazproject/topaz/issues/events{/number}","events_url":"https://api.github.com/repos/topazproject/topaz/events","assignees_url":"https://api.github.com/repos/topazproject/topaz/assignees{/user}","branches_url":"https://api.github.com/repos/topazproject/topaz/branches{/branch}","tags_url":"https://api.github.com/repos/topazproject/topaz/tags","blobs_url":"https://api.github.com/repos/topazproject/topaz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/topazproject/topaz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/topazproject/topaz/git/refs{/sha}","trees_url":"https://api.github.com/repos/topazproject/topaz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/topazproject/topaz/statuses/{sha}","languages_url":"https://api.github.com/repos/topazproject/topaz/languages","stargazers_url":"https://api.github.com/repos/topazproject/topaz/stargazers","contributors_url":"https://api.github.com/repos/topazproject/topaz/contributors","subscribers_url":"https://api.github.com/repos/topazproject/topaz/subscribers","subscription_url":"https://api.github.com/repos/topazproject/topaz/subscription","commits_url":"https://api.github.com/repos/topazproject/topaz/commits{/sha}","git_commits_url":"https://api.github.com/repos/topazproject/topaz/git/commits{/sha}","comments_url":"https://api.github.com/repos/topazproject/topaz/comments{/number}","issue_comment_url":"https://api.github.com/repos/topazproject/topaz/issues/comments{/number}","contents_url":"https://api.github.com/repos/topazproject/topaz/contents/{+path}","compare_url":"https://api.github.com/repos/topazproject/topaz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/topazproject/topaz/merges","archive_url":"https://api.github.com/repos/topazproject/topaz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/topazproject/topaz/downloads","issues_url":"https://api.github.com/repos/topazproject/topaz/issues{/number}","pulls_url":"https://api.github.com/repos/topazproject/topaz/pulls{/number}","milestones_url":"https://api.github.com/repos/topazproject/topaz/milestones{/number}","notifications_url":"https://api.github.com/repos/topazproject/topaz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/topazproject/topaz/labels{/name}","releases_url":"https://api.github.com/repos/topazproject/topaz/releases{/id}","created_at":"2012-04-08T18:34:50Z","updated_at":"2015-10-20T13:06:08Z","pushed_at":"2015-10-22T16:40:50Z","git_url":"git://github.com/topazproject/topaz.git","ssh_url":"git@github.com:topazproject/topaz.git","clone_url":"https://github.com/topazproject/topaz.git","svn_url":"https://github.com/topazproject/topaz","homepage":"topazruby.com","size":16930,"stargazers_count":871,"watchers_count":871,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":78,"mirror_url":null,"open_issues_count":74,"forks":78,"open_issues":74,"watchers":871,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/topazproject/topaz/pulls/854"},"html":{"href":"https://github.com/topazproject/topaz/pull/854"},"issue":{"href":"https://api.github.com/repos/topazproject/topaz/issues/854"},"comments":{"href":"https://api.github.com/repos/topazproject/topaz/issues/854/comments"},"review_comments":{"href":"https://api.github.com/repos/topazproject/topaz/pulls/854/comments"},"review_comment":{"href":"https://api.github.com/repos/topazproject/topaz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/topazproject/topaz/pulls/854/commits"},"statuses":{"href":"https://api.github.com/repos/topazproject/topaz/statuses/754f13181f862c6e016d44150a67ea046819ba16"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":0,"changed_files":2}}