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

Let Windows create memory dump on program crash #392

Closed
hugbug opened this issue Jun 10, 2017 · 0 comments

Comments

@hugbug
Copy link
Member

commented Jun 10, 2017

When NZBGet crashes it attempts to write call stack into log-file. For that purpose it installs an exception handler. After doing its job the handler terminates the program. It does it in a way preventing Windows from creating memory dump. However such memory dumps can be useful for debugging.

In this issue:

  • rework exception handler to let Windows writing memory dumps, after the call stack is logged.
  • provide an option to disable writing of call stack traces. The exception handler (required to write call stack trace) brings the program into a state which is different from the state when the crash occurred. The created memory dumps become less useful.

@hugbug hugbug added the improvement label Jun 10, 2017

@hugbug hugbug added this to the v19 milestone Jun 10, 2017

hugbug added a commit that referenced this issue Jun 10, 2017
#392: Windows crash dump support
Also renamed option "DumpCore" to "CrashDump"; new option "CrashTrace".
hugbug added a commit to nzbget/nzbget.github.io that referenced this issue Jun 10, 2017

@hugbug hugbug closed this Jun 10, 2017

hugbug added a commit that referenced this issue Jun 10, 2017
hugbug added a commit to nzbget/nzbget.github.io that referenced this issue Jun 10, 2017
hugbug added a commit that referenced this issue Oct 9, 2017
#392: Windows crash dump support
Also renamed option "DumpCore" to "CrashDump"; new option "CrashTrace".
hugbug added a commit that referenced this issue Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.