https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98002
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:da7a7d4f0f978f7851efc9437501767e5cb30154 commit r9-9084-gda7a7d4f0f978f7851efc9437501767e5cb30154 Author: Richard Biener <rguent...@suse.de> Date: Thu Nov 26 10:07:06 2020 +0100 testsuite/98002 - fix gcc.dg/strncmp-2.c This makes sure not to free() memory we have mprotected to PROT_NONE by calling mprotect again with PROT_READ|PROT_WRITE. This avoids crashing the allocator when in debug mode. 2020-11-16 Richard Biener <rguent...@suse.de> PR testsuite/98002 * gcc.dg/strncmp-2.c: Call mprotect again before free. (cherry picked from commit 5b3a8fad18324cd38c221bdb0ae2b690fc82ede0)