View source code
Display the source code in etc/linux/memoryerror.d from which thispage was generated on github.
Report a bug
If you spot a problem with this page, click here to create aBugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinglocal clone.

Module etc.linux.memoryerror

Handle page protection errors using D errors (exceptions) or asserts.

Functions

NameDescription
deregisterMemoryAssertHandler() Revert the memory error handler back to the one from before calling registerMemoryAssertHandler().
deregisterMemoryErrorHandler() Revert the memory error handler back to the one from before calling registerMemoryErrorHandler().
registerMemoryAssertHandler() Registers a signal handler for SIGSEGV that turns them into an assertion failure, providing a more descriptive error message and stack trace if the program is compiled with debug info and D assertions (as opposed to C assertions).
registerMemoryErrorHandler() Register memory error handler, store the old handler.

Classes

NameDescription
InvalidPointerError Thrown on POSIX systems when a SIGSEGV signal is received.
NullPointerError Thrown on null pointer dereferences.

Authors

Amaury SECHET, FeepingCreature, Vladimir Panteleev

License

Distributed under the Boost Software License 1.0. (See accompanying file LICENSE_1_0.txt)