Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)

Enable exception handling in pure-capability builds

Resolve the incompatibility between pure-capability execution and stack unwinding so that C++ exception handling works correctly in pure-capability builds of database systems.

Background

Pure-capability execution prevents conventional stack unwinders from inspecting instructions at the return address because the program counter has execute permission but not load permission; attempting to read the instruction bytes as data therefore causes a fault. The paper explains that unwinders would need an alternative mechanism, such as obtaining those bytes indirectly through a system call, which requires substantial library changes.

This unresolved toolchain and runtime limitation prevented the authors from enabling exception unwinding in their pure-capability data-structure experiments. Consequently, the multithreaded pure-capability B+Tree evaluation could not be reported, although the database systems evaluated in the paper were unaffected because they were compiled with exceptions disabled.

References

As a result, we could not get exception handling working in our purecap builds.

— Should Your Database Systems Use Hardware-Assisted Memory Safety Extensions in Production?  (2610.11525 - Meignan--Masson et al., 8 Oct 2026) in Section 6, Compiler and Runtime Analysis, subsection “Runtime Libraries,” paragraph “Exception handling”; also discussed in Section 4, “Analysis of Data Structures,” subsection “Experimental Analysis,” paragraph “B+Tree”