]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix intermittent failure in tst-getpid2.
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Mon, 25 Nov 2013 19:38:01 +0000 (11:38 -0800)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Mon, 25 Nov 2013 19:38:01 +0000 (11:38 -0800)
2013-11-25  Paul Pluzhnikov  <ppluzhnikov@google.com>

[BZ #11214]
* Makefile (tst-getpid2-ENV): New variable.

nptl/ChangeLog
nptl/Makefile

index 0ee4523876964105740b355f42edeee95a9180ea..779843d17fe2adbbb5ac7c3314dc5246939ef117 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       [BZ #11214]
+       * Makefile (tst-getpid2-ENV): New variable.
+
 2013-11-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
 
        * Makefile (tst-cleanup2, tst-cleanupx2): Add -fno-builtin
index 82f2d0a4f48950860c89e8e76e7567dfc72621ba..0fbfc4d3b47780f4c320d0f503a9f144b317040b 100644 (file)
@@ -447,6 +447,11 @@ tst-cancel7-ARGS = --command "exec $(host-test-program-cmd)"
 tst-cancelx7-ARGS = $(tst-cancel7-ARGS)
 tst-umask1-ARGS = $(objpfx)tst-umask1.temp
 
+# In this test, we create a CLONE_VM "thread" that shares TLS storage
+# with the original thread. Both threads then race in ld.so with lazy PLT
+# resolution. Avoid this race by disabling lazy binding. BZ #11214.
+tst-getpid2-ENV = LD_BIND_NOW=1
+
 $(objpfx)tst-atfork2: $(libdl) $(shared-thread-library)
 LDFLAGS-tst-atfork2 = -rdynamic
 tst-atfork2-ENV = MALLOC_TRACE=$(objpfx)tst-atfork2.mtrace