{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/28421","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/28421/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/28421/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/28421/events","html_url":"https://github.com/JuliaLang/julia/issues/28421","id":347279494,"node_id":"MDU6SXNzdWUzNDcyNzk0OTQ=","number":28421,"title":"No exception thrown in catch-block if finally-block contains a return statement ","user":{"login":"PhilippeMaincon","id":7711501,"node_id":"MDQ6VXNlcjc3MTE1MDE=","avatar_url":"https://avatars3.githubusercontent.com/u/7711501?v=4","gravatar_id":"","url":"https://api.github.com/users/PhilippeMaincon","html_url":"https://github.com/PhilippeMaincon","followers_url":"https://api.github.com/users/PhilippeMaincon/followers","following_url":"https://api.github.com/users/PhilippeMaincon/following{/other_user}","gists_url":"https://api.github.com/users/PhilippeMaincon/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilippeMaincon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilippeMaincon/subscriptions","organizations_url":"https://api.github.com/users/PhilippeMaincon/orgs","repos_url":"https://api.github.com/users/PhilippeMaincon/repos","events_url":"https://api.github.com/users/PhilippeMaincon/events{/privacy}","received_events_url":"https://api.github.com/users/PhilippeMaincon/received_events","type":"User","site_admin":false},"labels":[{"id":1010747361,"node_id":"MDU6TGFiZWwxMDEwNzQ3MzYx","url":"https://api.github.com/repos/JuliaLang/julia/labels/backport%20pending%200.7","name":"backport pending 0.7","color":"800000","default":false},{"id":119746705,"node_id":"MDU6TGFiZWwxMTk3NDY3MDU=","url":"https://api.github.com/repos/JuliaLang/julia/labels/error%20handling","name":"error handling","color":"02d7e1","default":false},{"id":854410734,"node_id":"MDU6TGFiZWw4NTQ0MTA3MzQ=","url":"https://api.github.com/repos/JuliaLang/julia/labels/optimizer","name":"optimizer","color":"55db9f","default":false}],"state":"open","locked":false,"assignee":{"login":"Keno","id":1291671,"node_id":"MDQ6VXNlcjEyOTE2NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1291671?v=4","gravatar_id":"","url":"https://api.github.com/users/Keno","html_url":"https://github.com/Keno","followers_url":"https://api.github.com/users/Keno/followers","following_url":"https://api.github.com/users/Keno/following{/other_user}","gists_url":"https://api.github.com/users/Keno/gists{/gist_id}","starred_url":"https://api.github.com/users/Keno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keno/subscriptions","organizations_url":"https://api.github.com/users/Keno/orgs","repos_url":"https://api.github.com/users/Keno/repos","events_url":"https://api.github.com/users/Keno/events{/privacy}","received_events_url":"https://api.github.com/users/Keno/received_events","type":"User","site_admin":false},"assignees":[{"login":"Keno","id":1291671,"node_id":"MDQ6VXNlcjEyOTE2NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1291671?v=4","gravatar_id":"","url":"https://api.github.com/users/Keno","html_url":"https://github.com/Keno","followers_url":"https://api.github.com/users/Keno/followers","following_url":"https://api.github.com/users/Keno/following{/other_user}","gists_url":"https://api.github.com/users/Keno/gists{/gist_id}","starred_url":"https://api.github.com/users/Keno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keno/subscriptions","organizations_url":"https://api.github.com/users/Keno/orgs","repos_url":"https://api.github.com/users/Keno/repos","events_url":"https://api.github.com/users/Keno/events{/privacy}","received_events_url":"https://api.github.com/users/Keno/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/JuliaLang/julia/milestones/4","html_url":"https://github.com/JuliaLang/julia/milestone/4","labels_url":"https://api.github.com/repos/JuliaLang/julia/milestones/4/labels","id":96266,"node_id":"MDk6TWlsZXN0b25lOTYyNjY=","number":4,"title":"0.7","description":"An intermediate release feature-equivalent to 1.0 but with deprecations.","creator":{"login":"StefanKarpinski","id":153596,"node_id":"MDQ6VXNlcjE1MzU5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/153596?v=4","gravatar_id":"","url":"https://api.github.com/users/StefanKarpinski","html_url":"https://github.com/StefanKarpinski","followers_url":"https://api.github.com/users/StefanKarpinski/followers","following_url":"https://api.github.com/users/StefanKarpinski/following{/other_user}","gists_url":"https://api.github.com/users/StefanKarpinski/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanKarpinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanKarpinski/subscriptions","organizations_url":"https://api.github.com/users/StefanKarpinski/orgs","repos_url":"https://api.github.com/users/StefanKarpinski/repos","events_url":"https://api.github.com/users/StefanKarpinski/events{/privacy}","received_events_url":"https://api.github.com/users/StefanKarpinski/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":556,"state":"open","created_at":"2012-03-15T04:57:43Z","updated_at":"2018-08-03T14:39:42Z","due_on":"2017-12-15T08:00:00Z","closed_at":null},"comments":9,"created_at":"2018-08-03T06:50:26Z","updated_at":"2018-08-03T15:41:11Z","closed_at":null,"author_association":"NONE","body":"The following MWE demonstrates a bug of mine: line 14 assume any exception has a field .msg .  This throws an exception, but in the presence of a return statement in the finally block, the exception is not propagated, and this was hard to track down.\r\n\r\nI am of the opinion that, to help code development, an exception arising in a catch statement should be thrown, bypassing finally.  This will leave files unclosed, but help correcting the catch statement. Or the warning should be in big font in the manual!\r\n\r\n```\r\nfunction bungle(c)\r\n    out = 0\r\n    try\r\n        @printf \"\\n\\n\\n\\Bungling away\\n\"\r\n        out = 1\r\n        if c == 1\r\n            @assert false @sprintf \"We have a main %s undervolt\" \"B\"\r\n        elseif c==2\r\n            a = sqrt(-1.)\r\n        end\r\n    catch ex\r\n        out = 2\r\n        @printf \"catch block\\n\"\r\n        @printf \"Houston we have a problem: %s\\n\" ex.msg\r\n    finally\r\n        @printf \"Shutting down.\\n\"\r\n        return out\r\n    end\r\nend \r\n@show bungle(0)\r\n@show bungle(1)\r\n@show bungle(2)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/410293063","html_url":"https://github.com/JuliaLang/julia/issues/28421#issuecomment-410293063","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/28421","id":410293063,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDI5MzA2Mw==","user":{"login":"Keno","id":1291671,"node_id":"MDQ6VXNlcjEyOTE2NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1291671?v=4","gravatar_id":"","url":"https://api.github.com/users/Keno","html_url":"https://github.com/Keno","followers_url":"https://api.github.com/users/Keno/followers","following_url":"https://api.github.com/users/Keno/following{/other_user}","gists_url":"https://api.github.com/users/Keno/gists{/gist_id}","starred_url":"https://api.github.com/users/Keno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keno/subscriptions","organizations_url":"https://api.github.com/users/Keno/orgs","repos_url":"https://api.github.com/users/Keno/repos","events_url":"https://api.github.com/users/Keno/events{/privacy}","received_events_url":"https://api.github.com/users/Keno/received_events","type":"User","site_admin":false},"created_at":"2018-08-03T15:41:11Z","updated_at":"2018-08-03T15:41:11Z","author_association":"MEMBER","body":"As for the segfaults, certain c libraries (including libuv and LLVM) really do not like to be called at the edge of the stack (except perhaps reserve a couple pages for emergency stack - and then if we happen to be in a ccall allow those couple extra pages)."}}
{"actor":{"display_login":"Keno"}}