This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.25-318-g1d2bc2e
- From: fw at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 12 May 2017 14:04:35 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.25-318-g1d2bc2e
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 1d2bc2eae969543b89850e35e532f3144122d80a (commit)
from e8f1225ca4d4afa4043c5267ae6dbe12268e2637 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=1d2bc2eae969543b89850e35e532f3144122d80a
commit 1d2bc2eae969543b89850e35e532f3144122d80a
Author: Florian Weimer <fweimer@redhat.com>
Date: Fri May 12 11:58:09 2017 +0200
fork: Remove bogus parent PID assertions [BZ #21386]
diff --git a/ChangeLog b/ChangeLog
index d46d7cb..ed7db0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-05-12 Florian Weimer <fweimer@redhat.com>
+
+ [BZ #21386]
+ * sysdeps/nptl/fork.c (__libc_fork): Remove assertions on the
+ parent PID. The assertion in the child is incorrect with PID
+ namespaces.
+
2017-05-12 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/kernel-features.h
diff --git a/sysdeps/nptl/fork.c b/sysdeps/nptl/fork.c
index db6d721..4bb87e2 100644
--- a/sysdeps/nptl/fork.c
+++ b/sysdeps/nptl/fork.c
@@ -131,10 +131,6 @@ __libc_fork (void)
call_function_static_weak (__malloc_fork_lock_parent);
}
-#ifndef NDEBUG
- pid_t ppid = THREAD_GETMEM (THREAD_SELF, tid);
-#endif
-
#ifdef ARCH_FORK
pid = ARCH_FORK ();
#else
@@ -147,8 +143,6 @@ __libc_fork (void)
{
struct pthread *self = THREAD_SELF;
- assert (THREAD_GETMEM (self, tid) != ppid);
-
/* See __pthread_once. */
if (__fork_generation_pointer != NULL)
*__fork_generation_pointer += __PTHREAD_ONCE_FORK_GEN_INCR;
@@ -230,8 +224,6 @@ __libc_fork (void)
}
else
{
- assert (THREAD_GETMEM (THREAD_SELF, tid) == ppid);
-
/* Release acquired locks in the multi-threaded case. */
if (multiple_threads)
{
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
sysdeps/nptl/fork.c | 8 --------
2 files changed, 7 insertions(+), 8 deletions(-)
hooks/post-receive
--
GNU C Library master sources