From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 44484398B428; Tue, 9 Feb 2021 09:54:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 44484398B428 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/98920] [10/11 Regression] uses regexec without support for REG_STARTEND with -fsanitize=address Date: Tue, 09 Feb 2021 09:54:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 10.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2021 09:54:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98920 --- Comment #13 from Jakub Jelinek --- LGTM. But as I said, it could be useful to look for other symbols too. Looking at i686 glibc, I see for j in /lib/libc.so.6 /lib/libpthread.so.0 /lib/libm.so.6; do for i in `readelf -Ws $j | grep -v ' UND ' | awk '{print $8}' | grep -v GLIBC_PRIVAT= E | grep '[^@]@[^@]' | sed 's/@.*$//' | sort -u`; do readelf -Ws $j | grep -v '= UND ' | awk '{print $8}' | grep -v GLIBC_PRIVATE | grep -q ^${i}@@ && echo $i; done; done alphasort64 chown clock_getcpuclockid clock_getres clock_gettime clock_nanosleep clock_settime fclose fcntl fdopen fgetpos fgetpos64 fmemopen fnmatch fopen fopencookie fsetpos fsetpos64 __fxstat64 getaliasbyname_r getaliasent_r getgrent_r getgrgid_r getgrnam_r gethostbyaddr_r gethostbyname2_r gethostbyname_r gethostent_r getnetbyaddr_r getnetbyname_r getnetent_r getprotobyname_r getprotobynumber_r getprotoent_r getpwent_r getpwnam_r getpwuid_r getrlimit getrlimit64 getrpcbyname_r getrpcbynumber_r getrpcent_r getservbyname_r getservbyport_r getservent_r getspent_r getspnam_r glob glob64 _IO_do_write _IO_fclose _IO_fdopen _IO_fgetpos _IO_fgetpos64 _IO_file_attach _IO_file_close_it _IO_file_finish _IO_file_fopen _IO_file_init _IO_file_overflow _IO_file_seekoff _IO_file_setbuf _IO_file_sync _IO_file_underflow _IO_file_write _IO_file_xsputn _IO_fopen _IO_fsetpos _IO_fsetpos64 _IO_popen _IO_proc_close _IO_proc_open localeconv __lxstat64 msgctl nftw nftw64 pclose popen posix_fadvise64 posix_fallocate64 posix_spawn posix_spawnp pthread_attr_init pthread_attr_setaffinity_np pthread_cond_broadcast pthread_cond_destroy pthread_cond_init pthread_cond_signal pthread_cond_timedwait pthread_cond_wait pthread_getaffinity_np pthread_getattr_np pthread_sigmask quick_exit readdir64 readdir64_r realpath regexec scandir64 sched_getaffinity sched_setaffinity semctl setrlimit shmctl tmpfile versionsort64 vm86 __xstat64 pthread_attr_getaffinity_np pthread_cond_broadcast pthread_cond_signal pthread_cond_timedwait pthread_cond_wait pthread_create pthread_setaffinity_np sem_destroy sem_getvalue sem_init sem_post sem_trywait sem_wait exp exp10f exp2 exp2f expf feclearexcept fegetenv fegetexceptflag feraiseexcept fesetenv fesetexceptflag feupdateenv lgamma lgammaf lgammal log log2 log2f logf pow powf totalorder totalorderf totalorderf128 totalorderf32 totalorderf32x totalorderf64 totalorderf64x totalorderl totalordermag totalordermagf totalordermagf128 totalordermagf32 totalordermagf32x totalordermagf64 totalordermagf64x totalordermagl On x86_64: for j in /lib64/libc.so.6 /lib64/libpthread.so.0 /lib64/libm.so.6; do for i= in `readelf -Ws $j | grep -v ' UND ' | awk '{print $8}' | grep -v GLIBC_PRIVAT= E | grep '[^@]@[^@]' | sed 's/@.*$//' | sort -u`; do readelf -Ws $j | grep -v '= UND ' | awk '{print $8}' | grep -v GLIBC_PRIVATE | grep -q ^${i}@@ && echo $i; done; done clock_getcpuclockid clock_getres clock_gettime clock_nanosleep clock_settime fmemopen glob glob64 memcpy nftw nftw64 posix_spawn posix_spawnp pthread_attr_setaffinity_np pthread_cond_broadcast pthread_cond_destroy pthread_cond_init pthread_cond_signal pthread_cond_timedwait pthread_cond_wait pthread_getaffinity_np pthread_getattr_np pthread_sigmask quick_exit realpath regexec sched_getaffinity sched_setaffinity pthread_attr_getaffinity_np pthread_cond_broadcast pthread_cond_signal pthread_cond_timedwait pthread_cond_wait pthread_setaffinity_np exp exp10f exp2 exp2f expf lgamma lgammaf lgammal log log2 log2f logf pow powf totalorder totalorderf totalorderf128 totalorderf32 totalorderf32x totalorderf64 totalorderf64x totalorderl totalordermag totalordermagf totalordermagf128 totalordermagf32 totalordermagf32x totalordermagf64 totalordermagf64x totalordermagl So, which of these are interposed by sanitizers?=