Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
From: testing at example dot com Date: Wed, 27 Dec 2023 15:43:00 +0000 Subject: Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-246138@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=38915&edit=1
ID: 38915
Comment by: testing at example dot com
Reported by: dimmoborgir at gmail dot com
Summary: Apache: system() (and similar) don't cleanup opened
handles of Apache
Status: Analyzed
Type: Feature/Change Request
Package: Program Execution
Operating System: UNIX
PHP Version: 5.2.2, 4.4.7
Block user comment: N
Private report: N
New Comment:
555
Previous Comments:
------------------------------------------------------------------------
[2023-12-27 15:42:48] testing at example dot com
555
------------------------------------------------------------------------
[2023-12-27 15:42:38] testing at example dot com
555
------------------------------------------------------------------------
[2023-12-27 15:10:55] testing at example dot com
The following patch has been added/updated:
Patch Name: tsSLAueP
Revision: 1703689855
URL: https://bugs.php.net/patch-display.php?bug=38915&patch=tsSLAueP&revision=1703689855
------------------------------------------------------------------------
[2014-03-14 13:02:42] php at braten dot be
Related To: Bug #15529
------------------------------------------------------------------------
[2013-12-03 17:23:11] brak at gameservers dot com
This same issue appears to happen with PHP-FPM (I am using nginx as the webserver, but that
shouldn't matter). PHP version 5.4.22 on Linux (CentOS 6.5)
Quick example:
<?php
$p = popen('/bin/bash -c "sleep 60"','w');
pclose($p);
?>
Now find the child process (ps aux | grep sleep) and lsof -p XXX -n:
sleep 13443 nobody 0r FIFO 0,8 0t0 10237775 pipe
sleep 13443 nobody 1u CHR 1,3 0t0 3920 /dev/null
sleep 13443 nobody 2u CHR 1,3 0t0 3920 /dev/null
sleep 13443 nobody 4u IPv4 10236693 0t0 TCP 127.0.0.1:cslistener->127.0.0.1:53151
(ESTABLISHED)
sleep 13443 nobody 9u REG 0,9 0 3918 [eventpoll]
FD 4 there is the TCP connection from the PHP worker process to the web server.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=38915
--
Edit this bug report at https://bugs.php.net/bug.php?id=38915&edit=1
Thread (50 messages)
- #38915 [Opn]: mod_php: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Opn->Bgs]: mod_php: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Bgs->Opn]: mod_php: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: mod_php: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: mod_php: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: mod_php: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: mod_php: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Opn->Fbk]: mod_php: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Fbk->Opn]: mod_php: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: mod_php: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Opn]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Opn->Ana]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [PATCH]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [PATCH]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [PATCH]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [PATCH]: Apache: system() (and similar) don't cleanup opened handles of Apache
- Req #38915 [PATCH]: Apache: system() (and similar) don't cleanup opened handles of Apache
| « previous | php.bugs (#246138) | next » |
|---|