https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82310
--- Comment #2 from Dave Flogeras <dflogeras2 at gmail dot com> --- Sorry for the noise, it seems to be a glibc bug. Looks like it was fixed in 2.25 (too recent for my affected system). In case anyone else hits it and finds this bug, see below: https://sourceware.org/bugzilla/show_bug.cgi?id=19239