Bug #1929: Initialize cmitls segments by copying the current one29/4329/17
commit9fb24ae1ad03cf8e5b00411ad70782e8978e4c6f
authorEvan Ramos <evan@hpccharm.com>
Thu, 5 Jul 2018 21:43:29 +0000 (5 16:43 -0500)
committerEvan Ramos <evan@hpccharm.com>
Thu, 12 Jul 2018 23:48:55 +0000 (12 18:48 -0500)
treed2fc834a505aa992423609744dc79d74fe22e4be
parent70ad6c9e7dae8852a50152686a5334e90808a80f
Bug #1929: Initialize cmitls segments by copying the current one

This fixes crashes in Fortran AMPI programs during formatted print and
write statements. Internally, libgfortran uses ctype.h functionality,
which depends on thread-local storage to account for per-thread locale
changes, and it was dereferencing a pointer that was left NULL due to
cmitls only copying the initial data found in the ELF header instead of
the full segment.

Change-Id: Iedd31e32e6a165ad05a292b1a3cc57dc570b59bc
src/scripts/configure.ac
src/util/cmitls.c