This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/70746] New: UBSAN runtime fail: undefined symbol: __ubsan_handle_nonnull_arg
- From: "ch3root at openwall dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Apr 2016 00:30:44 +0000
- Subject: [Bug sanitizer/70746] New: UBSAN runtime fail: undefined symbol: __ubsan_handle_nonnull_arg
- Auto-submitted: auto-generated
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