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

            Bug ID: 113881
           Summary: Multiple testsuite failures with gfortran on FreeBSD
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kargl 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
  Target Milestone: ---

% gmake bootstrap
% cd gcc
% gmake check-fortran
...

Inspection of testsuite/gfortran/gfortran.sum on x86_64-*-freebsd shows

PASS: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -O0  (test for
excess errors)
FAIL: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -O0  execution
test
PASS: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -O1  (test for
excess errors)
FAIL: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -O1  execution
test
PASS: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -O2  (test for
excess errors)
FAIL: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -O2  execution
test
PASS: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -O3
-fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions 
(test for excess errors)
FAIL: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -O3
-fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions 
execution test
PASS: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -O3 -g  (test
for excess errors)
FAIL: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -O3 -g 
execution test
PASS: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -Os  (test for
excess errors)
FAIL: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -Os  execution
test
PASS: gfortran.dg/asan/pr110415-2.f90 -fsanitize=address  -O0  (test for excess
errors)
FAIL: gfortran.dg/asan/pr110415-2.f90 -fsanitize=address  -O0  execution test
PASS: gfortran.dg/asan/pr110415-2.f90 -fsanitize=address  -O1  (test for excess
errors)
FAIL: gfortran.dg/asan/pr110415-2.f90 -fsanitize=address  -O1  execution test
PASS: gfortran.dg/asan/pr110415-2.f90 -fsanitize=address  -O2  (test for excess
errors)
FAIL: gfortran.dg/asan/pr110415-2.f90 -fsanitize=address  -O2  execution test
PASS: gfortran.dg/asan/pr110415-2.f90 -fsanitize=address  -O3
-fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions 
(test for excess errors)
FAIL: gfortran.dg/asan/pr110415-2.f90 -fsanitize=address  -O3
-fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions 
execution test
PASS: gfortran.dg/asan/pr110415-2.f90 -fsanitize=address  -O3 -g  (test for
excess errors)
FAIL: gfortran.dg/asan/pr110415-2.f90 -fsanitize=address  -O3 -g  execution
test
PASS: gfortran.dg/asan/pr110415-2.f90 -fsanitize=address  -Os  (test for excess
errors)
FAIL: gfortran.dg/asan/pr110415-2.f90 -fsanitize=address  -Os  execution test
PASS: gfortran.dg/asan/pr110415-3.f90 -fsanitize=address  -O0  (test for excess
errors)
FAIL: gfortran.dg/asan/pr110415-3.f90 -fsanitize=address  -O0  execution test
PASS: gfortran.dg/asan/pr110415-3.f90 -fsanitize=address  -O1  (test for excess
errors)
FAIL: gfortran.dg/asan/pr110415-3.f90 -fsanitize=address  -O1  execution test
PASS: gfortran.dg/asan/pr110415-3.f90 -fsanitize=address  -O2  (test for excess
errors)
FAIL: gfortran.dg/asan/pr110415-3.f90 -fsanitize=address  -O2  execution test
PASS: gfortran.dg/asan/pr110415-3.f90 -fsanitize=address  -O3
-fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions 
(test for excess errors)
FAIL: gfortran.dg/asan/pr110415-3.f90 -fsanitize=address  -O3
-fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions 
execution test
PASS: gfortran.dg/asan/pr110415-3.f90 -fsanitize=address  -O3 -g  (test for
excess errors)
FAIL: gfortran.dg/asan/pr110415-3.f90 -fsanitize=address  -O3 -g  execution
test
PASS: gfortran.dg/asan/pr110415-3.f90 -fsanitize=address  -Os  (test for excess
errors)
FAIL: gfortran.dg/asan/pr110415-3.f90 -fsanitize=address  -Os  execution test

Digging into testsuite/gfortran/gfortran.log the failure are all of the form

spawn -ignore SIGHUP
/usr/home/kargl/gcc/obj/gcc/testsuite/gfortran/../../gfortran
-B/usr/home/kargl/gcc/obj/gcc/testsuite/gfortran/../../
-B/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libgfortran/
/home/kargl/gcc/gcc/gcc/testsuite/gfortran.dg/asan/pointer_assign_16.f90
-fdiagnostics-plain-output
-B/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libsanitizer/
-B/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libsanitizer/asan/
-B/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libsanitizer/asan/.libs
-B/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libstdc++-v3/src/.libs
-fsanitize=address -g
-I/home/kargl/gcc/gcc/gcc/testsuite/../../libsanitizer/include
-fdiagnostics-plain-output -fsanitize=address -O1
-L/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libgfortran/.libs
-L/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libatomic/.libs
-L/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libquadmath/.libs -lm -o
./pointer_assign_16.exe
PASS: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -O1  (test for
excess errors)
Setting LD_LIBRARY_PATH to
.:/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libgfortran/.libs:/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libatomic/.libs:/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libquadmath/.libs:/usr/home/kargl/gcc/obj/gcc/testsuite/gfortran/../..:/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libsanitizer/asan/.libs:/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libstdc++-v3/src/.libs:.:/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libgfortran/.libs:/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libatomic/.libs:/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libquadmath/.libs:/usr/home/kargl/gcc/obj/gcc/testsuite/gfortran/../..:/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libsanitizer/asan/.libs:/usr/home/kargl/gcc/obj/x86_64-unknown-freebsd15.0/./libstdc++-v3/src/.libs
Execution timeout is: 300
spawn [open ...]
==323==ASan runtime does not come first in initial library list; you should
either link runtime to your application or manually preload it with LD_PRELOAD.
FAIL: gfortran.dg/asan/pointer_assign_16.f90 -fsanitize=address  -O1  execution
test


Shouldn't the testsuite harness ensure that LD_PRELOAD is properly set?

Reply via email to