Move SIGSEGV handler in Runtime and make ContextOutOfBoundsTest more robust
EMPER's Runtime now installs the SIGSEGV handler that checks if the segmentation fault was caused by hitting the guard page. If the guard page was hit, then the handler prints an error message. Also make ContextOutOfBoundsTest more robust by not creating an infinite recursion, which may be optmized out by the compiler.
parent
cdd79e35
No related branches found
No related tags found
This commit is part of merge request !336. Comments created here will be created in the context of that merge request.
Showing
- emper/Debug.hpp 1 addition, 6 deletionsemper/Debug.hpp
- emper/Runtime.cpp 78 additions, 0 deletionsemper/Runtime.cpp
- emper/Runtime.hpp 9 additions, 1 deletionemper/Runtime.hpp
- iwyu-mappings.imp 2 additions, 0 deletionsiwyu-mappings.imp
- tests/ContextOutOfBoundsTest.cpp 27 additions, 46 deletionstests/ContextOutOfBoundsTest.cpp
Loading
Please register or sign in to comment