This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6910] getpid() wrong in child's signal handler after clone()
- From: "mtk dot manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Sep 2008 11:47:14 -0000
- Subject: [Bug libc/6910] getpid() wrong in child's signal handler after clone()
- References: <20080922114412.6910.mtk.manpages@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mtk dot manpages at gmail dot com 2008-09-22 11:47 -------
Created an attachment (id=2959)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2959&action=view)
Test program
When running this program on glibc 2.8 on an i386 system, I see output such as
the following:
$ ./clone_getpid_sighandler_bug
Before clone getpid() = 1991
sigsender PID = 1993
getpid() mismatch (loop=2710): getpid()=1991; syscall(SYS_getpid)=4823
getpid() mismatch (loop=5383): getpid()=1991; syscall(SYS_getpid)=7504
getpid() mismatch (loop=5383): getpid()=1991; syscall(SYS_getpid)=7504
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6910
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.