http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60055

            Bug ID: 60055
           Summary: Invalid binding of __tsan_default_options
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chefmax at gcc dot gnu.org
                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

It is impossible to override default value of report_bugs option from external
program with 

extern "C" const char *__tsan_default_options() {
  return "report_bugs=0";
}

After investigation it was discovered that this bug was caused by LOCAL value
of Bind attribute of tsan_default_options symbol:

$ readelf -s ~/gcc-master-install/lib64/libtsan.so | grep tsan_default_options
1773: 000000000002c255     8 FUNC    LOCAL  DEFAULT   10 __tsan_default_options

Reply via email to