Conversation

en.cppreference.com/w/cpp/memory/n is a decent approach. An implementation as an example: github.com/GrapheneOS/har. It doesn't work well in C++ because it's only for new and people don't use it whenever they call malloc, mmap, etc. but it's an approach that can work well for the common case.
I think that's what most applications actually need, and they can and should be using a multi-process architecture for reliability and security too. In libraries, a kernel, or some applications, you do want to handle it beyond this though, and unwinding really isn't good enough.
Show replies