https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89832
Bug ID: 89832 Summary: confusing error message when there is a problem with ASAN_OPTIONS "ERROR: expected '='" Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: diane2332 at gmail 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, marxin at gcc dot gnu.org Target Milestone: --- When using AddressSanitizer on a very large software system involving multiple binaries, libraries, etc., it is very difficult to know where an error message is coming from when all I get is: ERROR: expected '=' I eventually traced this to libasan.so. It would have been so much easier if perhaps the message was: AddressSanitizer: ERROR: expected '=' in ASAN_OPTIONS Example follows. hello.c: #include <stdio.h> int main() { printf("Hello world\n"); return 0; } gcc --version gcc (GCC) 8.2.1 20190102 Copyright (C) 2018 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 -g -fsanitize=address hello.c ./a.out Hello world setenv ASAN_OPTIONS bad_stuff ./a.out ERROR: expected '='