https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70746
Bug ID: 70746 Summary: UBSAN runtime fail: undefined symbol: __ubsan_handle_nonnull_arg Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: ch3root at openwall dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Target Milestone: --- $ cat fprintf-zero-ptr.c #include <stdio.h> int main() { fprintf(0, "Hi\n"); } $ gcc --version gcc (GCC) 7.0.0 20160420 (experimental) Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gcc -fsanitize=undefined fprintf-zero-ptr.c && ./a.out ./a.out: symbol lookup error: ./a.out: undefined symbol: __ubsan_handle_nonnull_arg