This commit, which went into glibc 2.23, introduces wide stream buffer deallocation during the exit produces: commit a601b74d31ca086de38441d316a3dee24c866305 Author: Paul Pluzhnikov <ppluzhnikov> Date: Sat Aug 8 16:27:58 2015 -0700 In preparation for fixing BZ#16734, fix failure in misc/tst-error1-mem when _G_HAVE_MMAP is turned off. This results in an out-of-bounds access with unpredictable consequences during process shutdown for i386 binaries which enable the legacy stdio handles. Usually, this is supposed to happen only for very old binaries, but it turns out that the launchers in OpenJDK 8 are linked in such a way that this happens for them as well. See bug 1688841 for details. To maximize compatibility, we should backport the eventual upstream fix to glibc.
The upstream patch has been committed: commit 21cc130b78a4db9113fb6695e2b951e697662440 Author: Dmitry V. Levin <ldv> Date: Wed Feb 13 01:20:51 2019 +0000 libio: do not attempt to free wide buffers of legacy streams [BZ #24228]
Verified based on https://bugzilla.redhat.com/show_bug.cgi?id=1722215#c1, the bug is reproducible on glibc-2.28-71.el8 and doesn't on glibc-2.28-71.el8
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:3513