{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift/issues/21449","repository_url":"https://api.github.com/repos/apple/swift","labels_url":"https://api.github.com/repos/apple/swift/issues/21449/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift/issues/21449/comments","events_url":"https://api.github.com/repos/apple/swift/issues/21449/events","html_url":"https://github.com/apple/swift/pull/21449","id":392841525,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMDIwODE4","number":21449,"title":"Fix stack overflow containsTensorFlowValue for recursive data structures.","user":{"login":"bgogul","id":6721579,"node_id":"MDQ6VXNlcjY3MjE1Nzk=","avatar_url":"https://avatars3.githubusercontent.com/u/6721579?v=4","gravatar_id":"","url":"https://api.github.com/users/bgogul","html_url":"https://github.com/bgogul","followers_url":"https://api.github.com/users/bgogul/followers","following_url":"https://api.github.com/users/bgogul/following{/other_user}","gists_url":"https://api.github.com/users/bgogul/gists{/gist_id}","starred_url":"https://api.github.com/users/bgogul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgogul/subscriptions","organizations_url":"https://api.github.com/users/bgogul/orgs","repos_url":"https://api.github.com/users/bgogul/repos","events_url":"https://api.github.com/users/bgogul/events{/privacy}","received_events_url":"https://api.github.com/users/bgogul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-20T00:57:55Z","updated_at":"2018-12-29T16:56:48Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/21449","html_url":"https://github.com/apple/swift/pull/21449","diff_url":"https://github.com/apple/swift/pull/21449.diff","patch_url":"https://github.com/apple/swift/pull/21449.patch"},"body":"The utility function `containsTensorFlowValue` fails with a stack overflow error when it is invoked on a recursive data structure such as [PairedStructure](https://github.com/apple/swift/blob/be17ef3d8e36e05aa0394132efc0a302fe35c28b/test/Prototypes/PatternMatching.swift#L371) struct in [Prototypes/PatternMatching.swift](https://github.com/bgogul/swift/blob/master/test/Prototypes/PatternMatching.swift) test.\r\n\r\nThis PR simply breaks cycles by keeping track of the parent decls. \r\n"},"comment":{"url":"https://api.github.com/repos/apple/swift/issues/comments/450505821","html_url":"https://github.com/apple/swift/pull/21449#issuecomment-450505821","issue_url":"https://api.github.com/repos/apple/swift/issues/21449","id":450505821,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDUwNTgyMQ==","user":{"login":"bgogul","id":6721579,"node_id":"MDQ6VXNlcjY3MjE1Nzk=","avatar_url":"https://avatars3.githubusercontent.com/u/6721579?v=4","gravatar_id":"","url":"https://api.github.com/users/bgogul","html_url":"https://github.com/bgogul","followers_url":"https://api.github.com/users/bgogul/followers","following_url":"https://api.github.com/users/bgogul/following{/other_user}","gists_url":"https://api.github.com/users/bgogul/gists{/gist_id}","starred_url":"https://api.github.com/users/bgogul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgogul/subscriptions","organizations_url":"https://api.github.com/users/bgogul/orgs","repos_url":"https://api.github.com/users/bgogul/repos","events_url":"https://api.github.com/users/bgogul/events{/privacy}","received_events_url":"https://api.github.com/users/bgogul/received_events","type":"User","site_admin":false},"created_at":"2018-12-29T16:56:48Z","updated_at":"2018-12-29T16:56:48Z","author_association":"COLLABORATOR","body":"@swift-ci please test tensorflow"}}
{"actor":{"display_login":"bgogul"}}