{"action":"opened","number":538,"pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/538","id":53593049,"html_url":"https://github.com/apple/swift/pull/538","diff_url":"https://github.com/apple/swift/pull/538.diff","patch_url":"https://github.com/apple/swift/pull/538.patch","issue_url":"https://api.github.com/repos/apple/swift/issues/538","number":538,"state":"open","locked":false,"title":"[SourceKit] Add test case for crash triggered in swift::DeclContext::…","user":{"login":"practicalswift","id":7826565,"avatar_url":"https://avatars.githubusercontent.com/u/7826565?v=3","gravatar_id":"","url":"https://api.github.com/users/practicalswift","html_url":"https://github.com/practicalswift","followers_url":"https://api.github.com/users/practicalswift/followers","following_url":"https://api.github.com/users/practicalswift/following{/other_user}","gists_url":"https://api.github.com/users/practicalswift/gists{/gist_id}","starred_url":"https://api.github.com/users/practicalswift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/practicalswift/subscriptions","organizations_url":"https://api.github.com/users/practicalswift/orgs","repos_url":"https://api.github.com/users/practicalswift/repos","events_url":"https://api.github.com/users/practicalswift/events{/privacy}","received_events_url":"https://api.github.com/users/practicalswift/received_events","type":"User","site_admin":false},"body":"…getProtocolSelf() const\r\n\r\nStack trace:\r\n\r\n```\r\nfound code completion token A at offset 159\r\n4  swift-ide-test  0x0000000000b462ee swift::DeclContext::getProtocolSelf() const + 30\r\n6  swift-ide-test  0x00000000009305a0 swift::configureImplicitSelf(swift::TypeChecker&, swift::AbstractFunctionDecl*, swift::GenericParamList*&) + 176\r\n9  swift-ide-test  0x0000000000930acd swift::TypeChecker::validateDecl(swift::ValueDecl*, bool) + 797\r\n14 swift-ide-test  0x0000000000b59c4d swift::lookupVisibleDecls(swift::VisibleDeclConsumer&, swift::DeclContext const*, swift::LazyResolver*, bool, swift::SourceLoc) + 1117\r\n24 swift-ide-test  0x0000000000ae4334 swift::Decl::walk(swift::ASTWalker&) + 20\r\n25 swift-ide-test  0x0000000000b6d88e swift::SourceFile::walk(swift::ASTWalker&) + 174\r\n26 swift-ide-test  0x0000000000b6cc6f swift::ModuleDecl::walk(swift::ASTWalker&) + 79\r\n27 swift-ide-test  0x0000000000b473a2 swift::DeclContext::walkContext(swift::ASTWalker&) + 146\r\n28 swift-ide-test  0x0000000000863b2d swift::performDelayedParsing(swift::DeclContext*, swift::PersistentParserState&, swift::CodeCompletionCallbacksFactory*) + 61\r\n29 swift-ide-test  0x0000000000773cd4 swift::CompilerInstance::performSema() + 3316\r\n30 swift-ide-test  0x000000000071c633 main + 35027\r\nStack dump:\r\n0.\tProgram arguments: swift-ide-test -code-completion -code-completion-token=A -source-filename=<INPUT-FILE>\r\n1.\tWhile walking into decl declaration 0x4253e40 at <INPUT-FILE>:2:1\r\n2.\tWhile type-checking 'p' at <INPUT-FILE>:2:22\r\n```","created_at":"2015-12-14T17:09:36Z","updated_at":"2015-12-14T17:09:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apple/swift/pulls/538/commits","review_comments_url":"https://api.github.com/repos/apple/swift/pulls/538/comments","review_comment_url":"https://api.github.com/repos/apple/swift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apple/swift/issues/538/comments","statuses_url":"https://api.github.com/repos/apple/swift/statuses/c2415448aa66d91f59d4fcf7d61f86ff7309eec5","head":{"label":"practicalswift:sourcekit-006-swift-declcontext-getprotocolself","ref":"sourcekit-006-swift-declcontext-getprotocolself","sha":"c2415448aa66d91f59d4fcf7d61f86ff7309eec5","user":{"login":"practicalswift","id":7826565,"avatar_url":"https://avatars.githubusercontent.com/u/7826565?v=3","gravatar_id":"","url":"https://api.github.com/users/practicalswift","html_url":"https://github.com/practicalswift","followers_url":"https://api.github.com/users/practicalswift/followers","following_url":"https://api.github.com/users/practicalswift/following{/other_user}","gists_url":"https://api.github.com/users/practicalswift/gists{/gist_id}","starred_url":"https://api.github.com/users/practicalswift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/practicalswift/subscriptions","organizations_url":"https://api.github.com/users/practicalswift/orgs","repos_url":"https://api.github.com/users/practicalswift/repos","events_url":"https://api.github.com/users/practicalswift/events{/privacy}","received_events_url":"https://api.github.com/users/practicalswift/received_events","type":"User","site_admin":false},"repo":{"id":47491399,"name":"swift","full_name":"practicalswift/swift","owner":{"login":"practicalswift","id":7826565,"avatar_url":"https://avatars.githubusercontent.com/u/7826565?v=3","gravatar_id":"","url":"https://api.github.com/users/practicalswift","html_url":"https://github.com/practicalswift","followers_url":"https://api.github.com/users/practicalswift/followers","following_url":"https://api.github.com/users/practicalswift/following{/other_user}","gists_url":"https://api.github.com/users/practicalswift/gists{/gist_id}","starred_url":"https://api.github.com/users/practicalswift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/practicalswift/subscriptions","organizations_url":"https://api.github.com/users/practicalswift/orgs","repos_url":"https://api.github.com/users/practicalswift/repos","events_url":"https://api.github.com/users/practicalswift/events{/privacy}","received_events_url":"https://api.github.com/users/practicalswift/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/practicalswift/swift","description":"The Swift Programming Language","fork":true,"url":"https://api.github.com/repos/practicalswift/swift","forks_url":"https://api.github.com/repos/practicalswift/swift/forks","keys_url":"https://api.github.com/repos/practicalswift/swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/practicalswift/swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/practicalswift/swift/teams","hooks_url":"https://api.github.com/repos/practicalswift/swift/hooks","issue_events_url":"https://api.github.com/repos/practicalswift/swift/issues/events{/number}","events_url":"https://api.github.com/repos/practicalswift/swift/events","assignees_url":"https://api.github.com/repos/practicalswift/swift/assignees{/user}","branches_url":"https://api.github.com/repos/practicalswift/swift/branches{/branch}","tags_url":"https://api.github.com/repos/practicalswift/swift/tags","blobs_url":"https://api.github.com/repos/practicalswift/swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/practicalswift/swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/practicalswift/swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/practicalswift/swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/practicalswift/swift/statuses/{sha}","languages_url":"https://api.github.com/repos/practicalswift/swift/languages","stargazers_url":"https://api.github.com/repos/practicalswift/swift/stargazers","contributors_url":"https://api.github.com/repos/practicalswift/swift/contributors","subscribers_url":"https://api.github.com/repos/practicalswift/swift/subscribers","subscription_url":"https://api.github.com/repos/practicalswift/swift/subscription","commits_url":"https://api.github.com/repos/practicalswift/swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/practicalswift/swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/practicalswift/swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/practicalswift/swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/practicalswift/swift/contents/{+path}","compare_url":"https://api.github.com/repos/practicalswift/swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/practicalswift/swift/merges","archive_url":"https://api.github.com/repos/practicalswift/swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/practicalswift/swift/downloads","issues_url":"https://api.github.com/repos/practicalswift/swift/issues{/number}","pulls_url":"https://api.github.com/repos/practicalswift/swift/pulls{/number}","milestones_url":"https://api.github.com/repos/practicalswift/swift/milestones{/number}","notifications_url":"https://api.github.com/repos/practicalswift/swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/practicalswift/swift/labels{/name}","releases_url":"https://api.github.com/repos/practicalswift/swift/releases{/id}","created_at":"2015-12-06T09:58:13Z","updated_at":"2015-12-06T09:58:30Z","pushed_at":"2015-12-14T17:08:00Z","git_url":"git://github.com/practicalswift/swift.git","ssh_url":"git@github.com:practicalswift/swift.git","clone_url":"https://github.com/practicalswift/swift.git","svn_url":"https://github.com/practicalswift/swift","homepage":"","size":60384,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"apple:master","ref":"master","sha":"212cb4a65c4d63d27075b2f5e9fd180a9c7aa178","user":{"login":"apple","id":10639145,"avatar_url":"https://avatars.githubusercontent.com/u/10639145?v=3","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"repo":{"id":44838949,"name":"swift","full_name":"apple/swift","owner":{"login":"apple","id":10639145,"avatar_url":"https://avatars.githubusercontent.com/u/10639145?v=3","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apple/swift","description":"The Swift Programming Language","fork":false,"url":"https://api.github.com/repos/apple/swift","forks_url":"https://api.github.com/repos/apple/swift/forks","keys_url":"https://api.github.com/repos/apple/swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apple/swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apple/swift/teams","hooks_url":"https://api.github.com/repos/apple/swift/hooks","issue_events_url":"https://api.github.com/repos/apple/swift/issues/events{/number}","events_url":"https://api.github.com/repos/apple/swift/events","assignees_url":"https://api.github.com/repos/apple/swift/assignees{/user}","branches_url":"https://api.github.com/repos/apple/swift/branches{/branch}","tags_url":"https://api.github.com/repos/apple/swift/tags","blobs_url":"https://api.github.com/repos/apple/swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apple/swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apple/swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/apple/swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apple/swift/statuses/{sha}","languages_url":"https://api.github.com/repos/apple/swift/languages","stargazers_url":"https://api.github.com/repos/apple/swift/stargazers","contributors_url":"https://api.github.com/repos/apple/swift/contributors","subscribers_url":"https://api.github.com/repos/apple/swift/subscribers","subscription_url":"https://api.github.com/repos/apple/swift/subscription","commits_url":"https://api.github.com/repos/apple/swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/apple/swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/apple/swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/apple/swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/apple/swift/contents/{+path}","compare_url":"https://api.github.com/repos/apple/swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apple/swift/merges","archive_url":"https://api.github.com/repos/apple/swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apple/swift/downloads","issues_url":"https://api.github.com/repos/apple/swift/issues{/number}","pulls_url":"https://api.github.com/repos/apple/swift/pulls{/number}","milestones_url":"https://api.github.com/repos/apple/swift/milestones{/number}","notifications_url":"https://api.github.com/repos/apple/swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apple/swift/labels{/name}","releases_url":"https://api.github.com/repos/apple/swift/releases{/id}","created_at":"2015-10-23T21:15:07Z","updated_at":"2015-12-14T17:01:56Z","pushed_at":"2015-12-14T17:09:37Z","git_url":"git://github.com/apple/swift.git","ssh_url":"git@github.com:apple/swift.git","clone_url":"https://github.com/apple/swift.git","svn_url":"https://github.com/apple/swift","homepage":"https://swift.org/","size":76128,"stargazers_count":23234,"watchers_count":23234,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2765,"mirror_url":null,"open_issues_count":64,"forks":2765,"open_issues":64,"watchers":23234,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apple/swift/pulls/538"},"html":{"href":"https://github.com/apple/swift/pull/538"},"issue":{"href":"https://api.github.com/repos/apple/swift/issues/538"},"comments":{"href":"https://api.github.com/repos/apple/swift/issues/538/comments"},"review_comments":{"href":"https://api.github.com/repos/apple/swift/pulls/538/comments"},"review_comment":{"href":"https://api.github.com/repos/apple/swift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apple/swift/pulls/538/commits"},"statuses":{"href":"https://api.github.com/repos/apple/swift/statuses/c2415448aa66d91f59d4fcf7d61f86ff7309eec5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":0,"changed_files":1}}