[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#862428: marked as done ([libc6] Assertion in fork for distinct parent PID is incorrect)



Your message dated Mon, 31 Jul 2017 17:08:03 +0200
with message-id <20170731150803.kunqx3hhhuyx4kgu@aurel32.net>
and subject line Re: [libc6] Assertion in fork for distinct parent PID is incorrect
has caused the Debian Bug report #862428,
regarding [libc6] Assertion in fork for distinct parent PID is incorrect
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
862428: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862428
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libc6
Version: 2.24-10
Severity: normal
Tags: patch

Hi,

there is a duplicate from mainstream bugzilla: https://sourceware.org/bugzilla/show_bug.cgi?id=21386
Pid caching is backported in Debian, but there is a small leftover.

The patch is available in mainstream git: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1d2bc2eae969543b89850e35e532f3144122d80a

Could you please to backport it in Debian?

** The problem description ***
Here is a small program which triggers an assertion in glibc.
$ cat test.c 
#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/wait.h>
#include <sched.h>
#include <unistd.h>
#include <stdio.h>

int main()
{
	int i;
	for (i = 0; i < 2; i++) {
		pid_t pid;

		unshare(CLONE_NEWPID);
		pid = fork();
		printf("%d: %d\n", getpid(), pid);
	}
	while (wait(NULL) > 0);
	return 0;
}

$ gcc test.c -Wall -o t && ./t
25131: 25132
25131: 25133
2: 0
1: 0
1: 3
t: ../sysdeps/nptl/fork.c:156: __libc_fork: Assertion `THREAD_GETMEM (self, tid) != ppid' failed.

Thanks,
Kirill

--- System information. ---
Architecture: 
Kernel:       Linux 4.11.0+

Debian Release: 9.0
  500 unstable        ftp.ru.debian.org 
  500 testing         ftp.ru.debian.org 
  500 stable-updates  ftp.ru.debian.org 
  500 stable          security.debian.org 
  500 stable          repo.skype.com 
  500 stable          ftp.ru.debian.org 
    1 experimental    ftp.ru.debian.org 

--- Package information. ---
Package's Depends field is empty.

Package's Recommends field is empty.

Package's Suggests field is empty.

--- End Message ---
--- Begin Message ---
Version: 2.24-12

On 2017-05-12 18:37, Kirill Tkhai wrote:
> Package: libc6
> Version: 2.24-10
> Severity: normal
> Tags: patch
> 
> Hi,
> 
> there is a duplicate from mainstream bugzilla: https://sourceware.org/bugzilla/show_bug.cgi?id=21386
> Pid caching is backported in Debian, but there is a small leftover.
> 
> The patch is available in mainstream git: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1d2bc2eae969543b89850e35e532f3144122d80a
> 
> Could you please to backport it in Debian?

This has been fixed upstream in the release/2.24/master branch, and
pulled in the debian package in version 2.24-12. I am therefore closing
the bug.

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net

--- End Message ---

Reply to: