https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85778
--- Comment #4 from Scott Emmons <sesail999 at gmail dot com> --- > glibc has stat annotated with nonnull(1, 2) 1. Can you provide a reference to this code? This is helpful so that other people running into this (and it *will* happen, this ancient code no longer runs correctly). Thank you. 2. The manpage for stat(2) should be updated to reflect that calling stat() with a NULL pathname will result in unpredictable behavior. 3. I'll create a pull request against cronolog and work with Debian/Ubuntu to at least get it fixed in those distributions.