Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unhandledExceptionHook does not work #15627

Open
dom96 opened this issue Oct 18, 2020 · 1 comment
Open

unhandledExceptionHook does not work #15627

dom96 opened this issue Oct 18, 2020 · 1 comment

Comments

@dom96
Copy link
Contributor

dom96 commented Oct 18, 2020

I have tested unhandledExceptionHook with --os:any and all of the different --exception options. From what I could see it never gets called, for --exceptions:goto I can see that nimTestErrorFlag is in the code (and it calls the hook) but I don't see anywhere in my code where nimTestErrorFlag is being called.

In addition to this, there is also a similar hook called onUnhandledException, I have tried it too and it also does not work. The only hooks that work are the globalRaiseHook but it would be nice to get something that only gets triggered when the exception is unhandled.

Additional Information

$ nim -v
Nim Compiler Version 1.4.0
@mikra01
Copy link

mikra01 commented Apr 27, 2021

also recently stumbled over this issue. At the moment I use "--os:any --define:posix" for proper newlib integration. works well except for a small number of "edge cases". This is one ( a unhandled exception does not result i a call to "signal" and/or "quit(errno) at the moment for --os:any " and I tried to integrate it with this kind of hook).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants