There is a well-known glibc issue  that causes program with large TLS segments fail. This issue has been observed and reported for Java/JVM . The original bug id is JDK-8130425, which is manifested as a StackOverflowError in the reported failure instance. The issue can cause other symptoms that may be difficult to diagnose. Please see more details in the related CSR, JDK-8225498.
Based on the glibc discussion thread , Rust implemented a fix by taking into account of the TLS size. This bug is created with the intent to address the TLS issue with a similar solution (comparing to the -Djdk.lang.processReaperUseDefaultStackSize workaround introduced by JDK-8130425) in Java/JVM layer.
 glibc discussion archive:
 OpenJDK discussion archive:
(contributed by Jeremy Manson)