This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/20544] RFE: atexit, __cxa_atexit, on_exit detect NULL function pointer argument
- From: "jreiser at BitWagon dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 01 Sep 2016 13:39:47 +0000
- Subject: [Bug libc/20544] RFE: atexit, __cxa_atexit, on_exit detect NULL function pointer argument
- Auto-submitted: auto-generated
- References: <bug-20544-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20544
--- Comment #3 from John Reiser <jreiser at BitWagon dot com> ---
__cxa_atexit is involved in my big app written in C++ and Python. Using
-flto, one function pointer definitely is NULL. Obviously this is a bug;
finding it is tedious. Another possibility is that an undefined weak external
function has made it through the multi-language interface. Anyway, it would be
more robust and secure to detect the NULL pointer explicitly, and thus avoid
SIGSEGV.
--
You are receiving this mail because:
You are on the CC list for the bug.