{"action":"created","issue":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/1512","repository_url":"https://api.github.com/repos/ldc-developers/ldc","labels_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1512/labels{/name}","comments_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1512/comments","events_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1512/events","html_url":"https://github.com/ldc-developers/ldc/issues/1512","id":156177397,"number":1512,"title":"1.0.0-beta2: Fatal error in EH code: _Unwind_RaiseException","user":{"login":"jondegenhardt","id":18296518,"avatar_url":"https://avatars.githubusercontent.com/u/18296518?v=3","gravatar_id":"","url":"https://api.github.com/users/jondegenhardt","html_url":"https://github.com/jondegenhardt","followers_url":"https://api.github.com/users/jondegenhardt/followers","following_url":"https://api.github.com/users/jondegenhardt/following{/other_user}","gists_url":"https://api.github.com/users/jondegenhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/jondegenhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jondegenhardt/subscriptions","organizations_url":"https://api.github.com/users/jondegenhardt/orgs","repos_url":"https://api.github.com/users/jondegenhardt/repos","events_url":"https://api.github.com/users/jondegenhardt/events{/privacy}","received_events_url":"https://api.github.com/users/jondegenhardt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2016-05-22T22:37:25Z","updated_at":"2016-05-30T00:36:25Z","closed_at":"2016-05-30T00:36:25Z","body":"One of my programs is exiting with:\r\n```\r\n    Fatal error in EH code: _Unwind_RaiseException failed with reason code: 5\r\n    Abort trap: 6\r\n```\r\n\r\nHaven't seen this before, including on beta-1. This is on OSX. I haven't had time to narrow down a small use case yet. Apologies for that, but wanted to get an initial report out first, will try to generate a small reproducible case later, but might be a day before I can get to it.\r\n\r\nGeneral situation: It appears to be triggered via statements like:\r\n```\r\n    throw new Exception(format(\"--format string--\", value, value...)\r\n```\r\nfrom within an option handler (function) passed to std.getopt.getopt, with the getopt call within a try-catch expression. My programs have other occurrences of 'throw new Exception' within a getopt call, the ones failing are cases where a function was passed to getopt to handle the argument.\r\n\r\nBuild info:\r\n```\r\n$ ldc2 --version\r\nLDC - the LLVM D compiler (1.0.0-beta2):\r\n  based on DMD v2.070.2 and LLVM 3.8.0\r\n  built with LDC - the LLVM D compiler (0.17.1)\r\n  Default target: x86_64-apple-darwin14.5.0\r\n  Host CPU: haswell\r\n  http://dlang.org - http://wiki.dlang.org/LDC\r\n```\r\n\r\nThe failure is occurring in a publicly available program. To try to reproduce, clone the repository at: https://github.com/eBay/tsv-utils-dlang. Then:\r\n```\r\n    $ cd tsv-utils-dlang/tsv-filter\r\n    $ make DCOMPILER=ldc2 test    # Tests will fail\r\n    $ cat tests/latest_debug/error_tests_1.txt\r\n```\r\n\r\nThe error_tests_1.txt file lists the command used and the error. Look for the ones starting with \"Fatal error in EH code\". The same commands can be run by hand. eg.\r\n```\r\n    $ cd tsv-utils-dlang/tsv-filter\r\n    $ make DCOMPILER=ldc2\r\n    $ ../bin/tsv-filter --gt 0:10 tests/input1.tsv\r\n    Fatal error in EH code: _Unwind_RaiseException failed with reason code: 5\r\n    Abort trap: 6\r\n```"},"comment":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/comments/222392126","html_url":"https://github.com/ldc-developers/ldc/issues/1512#issuecomment-222392126","issue_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1512","id":222392126,"user":{"login":"klickverbot","id":19335,"avatar_url":"https://avatars.githubusercontent.com/u/19335?v=3","gravatar_id":"","url":"https://api.github.com/users/klickverbot","html_url":"https://github.com/klickverbot","followers_url":"https://api.github.com/users/klickverbot/followers","following_url":"https://api.github.com/users/klickverbot/following{/other_user}","gists_url":"https://api.github.com/users/klickverbot/gists{/gist_id}","starred_url":"https://api.github.com/users/klickverbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klickverbot/subscriptions","organizations_url":"https://api.github.com/users/klickverbot/orgs","repos_url":"https://api.github.com/users/klickverbot/repos","events_url":"https://api.github.com/users/klickverbot/events{/privacy}","received_events_url":"https://api.github.com/users/klickverbot/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T00:36:25Z","updated_at":"2016-05-30T00:36:25Z","body":"Okay, let's do that. (ping @redstar)"}}
{"actor":{"display_login":"klickverbot"}}