Bug 1037756 - netpbm pnmtops does not handle disabled zombies when called from parent process
Summary: netpbm pnmtops does not handle disabled zombies when called from parent process
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: netpbm
Version: 19
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Petr Hracek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-03 18:31 UTC by Raman Gupta
Modified: 2013-12-17 13:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1029512
Environment:
Last Closed: 2013-12-17 13:55:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Raman Gupta 2013-12-03 18:31:08 UTC
Description of problem:

I was having a problem with pnmtops in the netpbm package. When running pnmtops from within a parent process in which zombies are disabled, pnmtops does not complete successfully. It prints out:

pnmtops: waitpid() for child 0 failed

and returns a failure code. The resulting ps file is missing some trailer data and is incomplete.

Bryan Henderson has emailed me that he has fixed the bug in 10.64.04.

The problem can be replicated by forking pnmtops from a C program wrapper as follows, and then executing a pnmtops conversion using the wrapper:

#include <signal.h>
#include <unistd.h>
int main()
{
  signal(SIGCHLD, SIG_IGN);
  execlp("pnmtops", "pnmtops");
  return 0;
}

Comment 1 Raman Gupta 2013-12-17 13:55:32 UTC
The fix for this seems to be already included in:

netpbm-10.61.02-7.fc19.x86_64


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