{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/solidity/issues/502","repository_url":"https://api.github.com/repos/ethereum/solidity","labels_url":"https://api.github.com/repos/ethereum/solidity/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/solidity/issues/502/comments","events_url":"https://api.github.com/repos/ethereum/solidity/issues/502/events","html_url":"https://github.com/ethereum/solidity/issues/502","id":147859969,"number":502,"title":"Segfault when trying to call the AST","user":{"login":"VoR0220","id":7756785,"avatar_url":"https://avatars.githubusercontent.com/u/7756785?v=3","gravatar_id":"","url":"https://api.github.com/users/VoR0220","html_url":"https://github.com/VoR0220","followers_url":"https://api.github.com/users/VoR0220/followers","following_url":"https://api.github.com/users/VoR0220/following{/other_user}","gists_url":"https://api.github.com/users/VoR0220/gists{/gist_id}","starred_url":"https://api.github.com/users/VoR0220/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VoR0220/subscriptions","organizations_url":"https://api.github.com/users/VoR0220/orgs","repos_url":"https://api.github.com/users/VoR0220/repos","events_url":"https://api.github.com/users/VoR0220/events{/privacy}","received_events_url":"https://api.github.com/users/VoR0220/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ethereum/solidity/labels/bug","name":"bug","color":"fc1313"},{"url":"https://api.github.com/repos/ethereum/solidity/labels/planned","name":"planned","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2016-04-12T20:09:05Z","updated_at":"2016-06-10T05:02:49Z","closed_at":"2016-06-10T05:02:49Z","body":"Might be related to #486 \r\n\r\nWhile trying to figure out what part of the AST I was hitting, I also found that I hit a seg fault for this contract as well:\r\n\r\n```\r\ncontract test {\r\n\t\t\tbytes x;\r\n\t\t\tfunction f(uint a) returns (uint b) {\r\n\t\t\t\tx.length = a;\r\n\t\t\t\tfor (; a < 200; ++a) {\r\n\t\t\t\t\tx[a] = 9;\r\n\t\t\t\t\tb = a * a;\r\n\t\t\t\t}\r\n\t\t\t\treturn f(a - 1);\r\n\t\t\t}\r\n\t\t}\r\n\r\n```\r\n\r\nproduces \r\n\r\n```\r\nvor0220@CaptainNumNutz:solidity/build ‹fixSegFault›$ solc --ast test.sol\r\n[1]    6034 segmentation fault  solc --ast test.sol\r\nvor0220@CaptainNumNutz:solidity/build ‹fixSegFault›$ solc --ast-json test.sol\r\n[1]    6055 segmentation fault  solc --ast-json test.sol\r\n```"},"comment":{"url":"https://api.github.com/repos/ethereum/solidity/issues/comments/225093800","html_url":"https://github.com/ethereum/solidity/issues/502#issuecomment-225093800","issue_url":"https://api.github.com/repos/ethereum/solidity/issues/502","id":225093800,"user":{"login":"bobsummerwill","id":3788156,"avatar_url":"https://avatars.githubusercontent.com/u/3788156?v=3","gravatar_id":"","url":"https://api.github.com/users/bobsummerwill","html_url":"https://github.com/bobsummerwill","followers_url":"https://api.github.com/users/bobsummerwill/followers","following_url":"https://api.github.com/users/bobsummerwill/following{/other_user}","gists_url":"https://api.github.com/users/bobsummerwill/gists{/gist_id}","starred_url":"https://api.github.com/users/bobsummerwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobsummerwill/subscriptions","organizations_url":"https://api.github.com/users/bobsummerwill/orgs","repos_url":"https://api.github.com/users/bobsummerwill/repos","events_url":"https://api.github.com/users/bobsummerwill/events{/privacy}","received_events_url":"https://api.github.com/users/bobsummerwill/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T05:02:49Z","updated_at":"2016-06-10T05:02:49Z","body":"Closed as dupe of \"The Heisenbug\" - https://github.com/ethereum/webthree-umbrella/issues/565.   We can reopen if we later find there is anything unique here."}}
{"actor":{"display_login":"bobsummerwill"}}