https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124287

            Bug ID: 124287
           Summary: tsan tests may sometimes fail due to inadequate
                    environment
           Product: gcc
           Version: 15.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: siddhesh at gcc dot gnu.org
  Target Milestone: ---

We have seen g++.dg/tsan/pthread_cond_clockwait.C fail with the following
error:

==1531212==WARNING: Program is run with limited virtual address space, which
wouldn't work with ThreadSanitizer.
==1531212==Re-execing with unlimited virtual address space.
==1531212==ERROR: ThreadSanitizer setrlimit() failed 22
FAIL: g++.dg/tsan/pthread_cond_clockwait.C   -O0  execution test

which is due to the fact that tsan need to be able to allocate a certain
minimum amount of address space to function.  Ideally all tsan tests should
detect this condition during the execution test and report as UNSUPPORTED
instead of FAIL.

Reply via email to