{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/solidity/issues/978","repository_url":"https://api.github.com/repos/ethereum/solidity","labels_url":"https://api.github.com/repos/ethereum/solidity/issues/978/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/solidity/issues/978/comments","events_url":"https://api.github.com/repos/ethereum/solidity/issues/978/events","html_url":"https://github.com/ethereum/solidity/issues/978","id":174142345,"number":978,"title":"sha3() crashes on tuples","user":{"login":"axic","id":20340,"avatar_url":"https://avatars.githubusercontent.com/u/20340?v=3","gravatar_id":"","url":"https://api.github.com/users/axic","html_url":"https://github.com/axic","followers_url":"https://api.github.com/users/axic/followers","following_url":"https://api.github.com/users/axic/following{/other_user}","gists_url":"https://api.github.com/users/axic/gists{/gist_id}","starred_url":"https://api.github.com/users/axic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axic/subscriptions","organizations_url":"https://api.github.com/users/axic/orgs","repos_url":"https://api.github.com/users/axic/repos","events_url":"https://api.github.com/users/axic/events{/privacy}","received_events_url":"https://api.github.com/users/axic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ethereum/solidity/labels/bug","name":"bug","color":"fc1313"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-30T22:32:56Z","updated_at":"2016-08-31T07:43:16Z","closed_at":null,"body":"```\r\ncontract Test {\r\n    function tuple () returns (bool one, bool two) {\r\n    }\r\n\r\n    function crash () {\r\n        sha3(tuple());\r\n    }\r\n}\r\n```\r\n\r\n```\r\n$ solc/solc sha.sol\r\nSegmentation fault: 11\r\n```\r\n\r\n```\r\n* thread #1: tid = 0x1eade8e, 0x00000001003460a1 libsolidity.dylib`dev::solidity::CompilerUtils::encodeToMemory(std::__1::vector<std::__1::shared_ptr<dev::solidity::Type const>, std::__1::allocator<std::__1::shared_ptr<dev::solidity::Type const> > > const&, std::__1::vector<std::__1::shared_ptr<dev::solidity::Type const>, std::__1::allocator<std::__1::shared_ptr<dev::solidity::Type const> > > const&, bool, bool, bool) + 1089, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)\r\n    frame #0: 0x00000001003460a1 libsolidity.dylib`dev::solidity::CompilerUtils::encodeToMemory(std::__1::vector<std::__1::shared_ptr<dev::solidity::Type const>, std::__1::allocator<std::__1::shared_ptr<dev::solidity::Type const> > > const&, std::__1::vector<std::__1::shared_ptr<dev::solidity::Type const>, std::__1::allocator<std::__1::shared_ptr<dev::solidity::Type const> > > const&, bool, bool, bool) + 1089\r\nlibsolidity.dylib`dev::solidity::CompilerUtils::encodeToMemory:\r\n->  0x1003460a1 <+1089>: movq   (%rax), %rcx\r\n    0x1003460a4 <+1092>: movq   0xb0(%rcx), %rcx\r\n    0x1003460ab <+1099>: leaq   -0x110(%rbp), %rdi\r\n    0x1003460b2 <+1106>: movq   %rax, %rsi\r\n```"},"comment":{"url":"https://api.github.com/repos/ethereum/solidity/issues/comments/243684567","html_url":"https://github.com/ethereum/solidity/issues/978#issuecomment-243684567","issue_url":"https://api.github.com/repos/ethereum/solidity/issues/978","id":243684567,"user":{"login":"ethernomad","id":161566,"avatar_url":"https://avatars.githubusercontent.com/u/161566?v=3","gravatar_id":"","url":"https://api.github.com/users/ethernomad","html_url":"https://github.com/ethernomad","followers_url":"https://api.github.com/users/ethernomad/followers","following_url":"https://api.github.com/users/ethernomad/following{/other_user}","gists_url":"https://api.github.com/users/ethernomad/gists{/gist_id}","starred_url":"https://api.github.com/users/ethernomad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethernomad/subscriptions","organizations_url":"https://api.github.com/users/ethernomad/orgs","repos_url":"https://api.github.com/users/ethernomad/repos","events_url":"https://api.github.com/users/ethernomad/events{/privacy}","received_events_url":"https://api.github.com/users/ethernomad/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T07:43:16Z","updated_at":"2016-08-31T07:43:16Z","body":"Maybe related: https://github.com/ethereum/solidity/issues/332"}}
{"actor":{"display_login":"ethernomad"}}