{"action":"created","issue":{"url":"https://api.github.com/repos/zdevito/terra/issues/115","labels_url":"https://api.github.com/repos/zdevito/terra/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/zdevito/terra/issues/115/comments","events_url":"https://api.github.com/repos/zdevito/terra/issues/115/events","html_url":"https://github.com/zdevito/terra/issues/115","id":104958744,"number":115,"title":"Compiler segfault on deferred statement with debug symbols enabled","user":{"login":"0----0","id":9070490,"avatar_url":"https://avatars.githubusercontent.com/u/9070490?v=3","gravatar_id":"","url":"https://api.github.com/users/0----0","html_url":"https://github.com/0----0","followers_url":"https://api.github.com/users/0----0/followers","following_url":"https://api.github.com/users/0----0/following{/other_user}","gists_url":"https://api.github.com/users/0----0/gists{/gist_id}","starred_url":"https://api.github.com/users/0----0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0----0/subscriptions","organizations_url":"https://api.github.com/users/0----0/orgs","repos_url":"https://api.github.com/users/0----0/repos","events_url":"https://api.github.com/users/0----0/events{/privacy}","received_events_url":"https://api.github.com/users/0----0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-04T19:50:46Z","updated_at":"2015-09-04T22:38:37Z","closed_at":"2015-09-04T22:38:37Z","body":"```lua\r\nlocal terra foo() end\r\n\r\nlocal terra bar()\r\n        defer foo()\r\n        return\r\nend\r\n\r\nbar()\r\n```\r\nUpon running this with terra -g ./defertest.t , I get the following error message:\r\n```\r\n/home/[username]/git/terra/terra() [0x2071ca0]\r\n[0x5]\r\n[0x1]\r\n/home/[username]/git/terra/terra() [0x79eb90]\r\n[0x401f0f00000000]\r\nzsh: segmentation fault (core dumped)  terra -g tests/defertest.t\r\n```\r\nRunning terra without -g causes no issue.  Removing the deferred statement resolves the issue.\r\n\r\nRunning latest git (a7089683af3a45d04768f57a4e9674f8185590bf) on Arch Linux x86_64."},"comment":{"url":"https://api.github.com/repos/zdevito/terra/issues/comments/137872344","html_url":"https://github.com/zdevito/terra/issues/115#issuecomment-137872344","issue_url":"https://api.github.com/repos/zdevito/terra/issues/115","id":137872344,"user":{"login":"0----0","id":9070490,"avatar_url":"https://avatars.githubusercontent.com/u/9070490?v=3","gravatar_id":"","url":"https://api.github.com/users/0----0","html_url":"https://github.com/0----0","followers_url":"https://api.github.com/users/0----0/followers","following_url":"https://api.github.com/users/0----0/following{/other_user}","gists_url":"https://api.github.com/users/0----0/gists{/gist_id}","starred_url":"https://api.github.com/users/0----0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0----0/subscriptions","organizations_url":"https://api.github.com/users/0----0/orgs","repos_url":"https://api.github.com/users/0----0/repos","events_url":"https://api.github.com/users/0----0/events{/privacy}","received_events_url":"https://api.github.com/users/0----0/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T22:38:36Z","updated_at":"2015-09-04T22:38:36Z","body":"Nevermind.  It works with the pre-built binary.  I forgot to test that.  My home-built terra's been having weird issues.  Closing."}}