|
|
12745e |
#
|
|
|
12745e |
# This is the original fix for bug 1124987 in Fedora.
|
|
|
12745e |
# This patch should never go upstream. We are applying it
|
|
|
12745e |
# in rhel-7.2 as a workaround.
|
|
|
12745e |
#
|
|
|
12745e |
# Upstream commit f8aeae347377f3dfa8cbadde057adf1827fb1d44 fixes
|
|
|
12745e |
# this issue correctly, but reveals other bugs, therefore for now
|
|
|
12745e |
# this patch is a workaround.
|
|
|
12745e |
#
|
|
|
12745e |
diff -urN glibc-2.17-c758a686/sysdeps/generic/ldsodefs.h glibc-2.17-c758a686/sysdeps/generic/ldsodefs.h
|
|
|
12745e |
--- glibc-2.17-c758a686/sysdeps/generic/ldsodefs.h 2014-08-21 01:00:55.000000000 -0400
|
|
|
12745e |
+++ glibc-2.17-c758a686/sysdeps/generic/ldsodefs.h 2014-09-04 19:29:42.929692810 -0400
|
|
|
12745e |
@@ -388,8 +388,18 @@
|
|
|
12745e |
have to iterate beyond the first element in the slotinfo list. */
|
|
|
12745e |
#define TLS_SLOTINFO_SURPLUS (62)
|
|
|
12745e |
|
|
|
12745e |
-/* Number of additional slots in the dtv allocated. */
|
|
|
12745e |
-#define DTV_SURPLUS (14)
|
|
|
12745e |
+/* Number of additional allocated dtv slots. This was initially
|
|
|
12745e |
+ 14, but problems with python, MESA, and X11's uses of static TLS meant
|
|
|
12745e |
+ that most distributions were very close to this limit when they loaded
|
|
|
12745e |
+ dynamically interpreted languages that used graphics. The simplest
|
|
|
12745e |
+ solution was to roughly double the number of slots. The actual static
|
|
|
12745e |
+ image space usage was relatively small, for example in MESA you
|
|
|
12745e |
+ had only two dispatch pointers for a total of 16 bytes. If we hit up
|
|
|
12745e |
+ against this limit again we should start a campaign with the
|
|
|
12745e |
+ distributions to coordinate the usage of static TLS. Any user of this
|
|
|
12745e |
+ resource is effectively coordinating a global resource since this
|
|
|
12745e |
+ surplus is allocated for each thread at startup. */
|
|
|
12745e |
+#define DTV_SURPLUS (32)
|
|
|
12745e |
|
|
|
12745e |
/* Initial dtv of the main thread, not allocated with normal malloc. */
|
|
|
12745e |
EXTERN void *_dl_initial_dtv;
|