php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8143 system()'d programs become zombie processes when the script is aborted
Submitted: 2000-12-06 16:41 UTC Modified: 2001-01-10 08:09 UTC
From: david at acz dot org Assigned:
Status: Closed Package: Program Execution
PHP Version: 4.0.3pl1 OS: Debian Linux 2.2.17
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
26 + 7 = ?
Subscribe to this entry?

 
 [2000-12-06 16:41 UTC] david at acz dot org
PHP is running under Apache 1.3.14 as a loadable module.  This bug also occurs under 4.0.4RC3 (from Debian package "php4 4.0.4-0RC3.1").

A copy of the script where this bug was encountered is pasted below.  The easiest way to duplicate this bug is to request the page containing the code with a browser and refresh repeatedly (without waiting for the page to fully load).

<?
	system("uname -a");
	echo "\n";
	system("w");
	echo "\n";
	system("df -h");
	echo "\n";
	system("free -mt");
	echo "\n";
	system("ps acux");
	echo "\n";
	system("pstree -c");
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-12 06:10 UTC] stas@php.net
We probably should close what we popen'ed in exec.c on user
abort. For this popen'ed handle should be stored in some
global, I guess.
 [2001-01-10 08:09 UTC] thies@php.net
fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC