From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2701 invoked by alias); 14 Nov 2014 22:58:09 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 2666 invoked by uid 48); 14 Nov 2014 22:58:05 -0000 From: "rickyz at chromium dot org" To: glibc-bugs@sourceware.org Subject: [Bug nptl/15392] Linux, setns, PID namespaces, fork: assert() about pid inequality hit sporadically Date: Fri, 14 Nov 2014 22:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: 2.18 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: rickyz at chromium dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg00120.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=15392 Ricky Zhou changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rickyz at chromium dot org --- Comment #2 from Ricky Zhou --- Created attachment 7938 --> https://sourceware.org/bugzilla/attachment.cgi?id=7938&action=edit Double unshare CLONE_NEWPID example I've run into this assertion as well. I've attached a small test program that trips it using unshare(CLONE_NEWPID). In this case, the issue is that the parent process has pid 1 inside its pid namespace, but since the child is created in a new pid namespace, it also has pid 1. Will try to send a patch to get rid of the assert. -- You are receiving this mail because: You are on the CC list for the bug.