Re: Does Gnulib replace exit(3) under any circumstances?

Bruno Haible via Gnulib discussion list <[email protected]> Fri, 24 Jul 2026 05:23:10 +0200
Newsgroups gmane.comp.lib.gnulib.bugs,gmane.comp.printing.groff.general
Message-ID <6532676.097qLLJo0e@cagnes>
> I happened upon a baffling bug today.
> 
> https://savannah.gnu.org/bugs/?68552

exit() runs the destructors of global C++ objects [1], while quick_exit()
doesn't [2].

Does the crash persist of you call quick_exit() instead of exit()?

Bruno

[1] https://en.cppreference.com/cpp/utility/program/exit
[2] https://en.cppreference.com/cpp/utility/program/quick_exit