News for hackers. Stuff that matters.
Re:The Use of assert() in SQLite by int_19h on Monday April 29, 2019 @01:02AM (#19775959)
This will unwind the stack, executing destructors. Which is the last thing that you want to do in a scenario where conditions that were supposed to be invariants are broken. If your invariants don't hold, you don't really know what's going on - think of it as high-level undefined behavior. The faster you stop executing code within the security boundary (usually process), the better. This is exactly why assert() calls abort(), and why you should do so as well as soon as you've logged enough data to diagnose the issue.

There are no comments on this comment yet.