Bug 188578 - setpgid produces ESRCH for valid child process
Summary: setpgid produces ESRCH for valid child process
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 5
Hardware: i686
OS: Linux
medium
high
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-11 13:46 UTC by Stefan Seefeld
Modified: 2015-01-04 22:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-11-24 23:12:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
strace log (81.21 KB, application/octet-stream)
2006-04-11 14:06 UTC, Stefan Seefeld
no flags Details

Description Stefan Seefeld 2006-04-11 13:46:24 UTC
Description of problem:

I'm running a multi-threaded application that forks and
attempts to set the child process' process group. setpgid(pid, pid)
returns -1 with errno set to ESRCH, even though the pid
is valid. Using strace shows some activity from that child process
after the parent called setpgid, and a call to waitpid(pid, WNOHANG)
returns 0, so the child seems to be healthy.

Version-Release number of selected component (if applicable):

I'm running the 2.6.16-1.2080_FC5 kernel

Comment 1 Jakub Jelinek 2006-04-11 13:53:21 UTC
setpgid in glibc is just a wrapper around kernel syscall.
But guess the kernel folks will need a reproduceable testcase, or at least
strace dumps in order to do anything about this bugreport.

Comment 2 Stefan Seefeld 2006-04-11 14:06:59 UTC
Created attachment 127615 [details]
strace log

The log was generated from 'strace -p 3883 -f &> log'.
The suspicious setpgid call happens at line 112. Note
that this is not the main thread.
The child process in question is 3924, which appears
to be alive (it is active at lines 249ff).

Comment 3 Dave Jones 2006-10-16 21:23:32 UTC
A new kernel update has been released (Version: 2.6.18-1.2200.fc5)
based upon a new upstream kernel release.

Please retest against this new kernel, as a large number of patches
go into each upstream release, possibly including changes that
may address this problem.

This bug has been placed in NEEDINFO state.
Due to the large volume of inactive bugs in bugzilla, if this bug is
still in this state in two weeks time, it will be closed.

Should this bug still be relevant after this period, the reporter
can reopen the bug at any time. Any other users on the Cc: list
of this bug can request that the bug be reopened by adding a
comment to the bug.

In the last few updates, some users upgrading from FC4->FC5
have reported that installing a kernel update has left their
systems unbootable. If you have been affected by this problem
please check you only have one version of device-mapper & lvm2
installed.  See bug 207474 for further details.

If this bug is a problem preventing you from installing the
release this version is filed against, please see bug 169613.

If this bug has been fixed, but you are now experiencing a different
problem, please file a separate bug for the new problem.

Thank you.

Comment 4 Dave Jones 2006-11-24 23:12:12 UTC
This bug has been mass-closed along with all other bugs that
have been in NEEDINFO state for several months.

Due to the large volume of inactive bugs in bugzilla, this
is the only method we have of cleaning out stale bug reports
where the reporter has disappeared.

If you can reproduce this bug after installing all the
current updates, please reopen this bug.

If you are not the reporter, you can add a comment requesting
it be reopened, and someone will get to it asap.

Thank you.


Note You need to log in before you can comment on or make changes to this bug.