This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/20544] RFE: atexit, __cxa_atexit, on_exit detect NULL function pointer argument


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]