On Tue, Apr 9, 2024 at 10:39 PM Alan Modra wrote: > > On Tue, Apr 09, 2024 at 07:24:33AM -0700, H.J. Lu wrote: > > Define GCC_AC_FUNC_MMAP with export ASAN_OPTIONS=detect_leaks=0 to avoid > > the sanitizer configure check failure. > > OK for binutils. (I just fixed my local copy of autoconf so I > wouldn't run into this again.) The proper fix of course is to update > autotools to something more recent. > This is what I am checking in with: dnl dnl Avoid the sanitizer run-time memory leak failure in the mmap configure dnl test. This should be removed when autoconf with commit: dnl dnl commit 09b6e78d1592ce10fdc975025d699ee41444aa3f dnl Author: Paul Eggert dnl Date: Fri Feb 5 21:06:20 2016 -0800 dnl Fix memory leak in AC_FUNC_MMAP dnl dnl * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Fix memory leak dnl in test case, found by configuring with gcc -fsanitize=address. dnl dnl is in use. dnl Thanks. -- H.J.