This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/15392] Linux, setns, PID namespaces, fork: assert() about pid inequality hit sporadically


https://sourceware.org/bugzilla/show_bug.cgi?id=15392

Ricky Zhou <rickyz at chromium dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rickyz at chromium dot org

--- Comment #2 from Ricky Zhou <rickyz at chromium dot org> ---
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]