Bug #66908 [NEW]: epoll_create descriptors leaked after php5-fpm reload

From: Date: Fri, 14 Mar 2014 20:12:58 +0000
Subject: Bug #66908 [NEW]: epoll_create descriptors leaked after php5-fpm reload
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184797@lists.php.net to get a copy of this message
From: jpintos at gmail dot com Operating system: linux PHP version: 5.4.26 Package: FPM related Bug Type: Bug Bug description:epoll_create descriptors leaked after php5-fpm reload Description: ------------ (in ubuntu 12.04) Steps to reproduce: $ sudo service php5-fpm reload $ sudo lsof -p (fpm master pid) | wc -l repeat steps above From strace: epoll_wait(103, {}, 1, 1000) = 0 ... // 103 is the fd of the epoll file descriptor returned by epoll_create) ... clone(Process 10668 attached child_stack=0x7f662c16fff0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f662c1709d0, tls=0x7f662c170700, child_tidptr=0x7f662c1709d0) = 10668 ... clone(Process 10671 attached child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f664c1509d0) = 10671 [pid 10671] epoll_create(2 <unfinished ...> [pid 10671] <... epoll_create resumed> ) = 104 ... [pid 10671] epoll_wait(104, <unfinished ...> [pid 10671] <... epoll_wait resumed> {}, 1, 1000) = 0 In lsof: php5-fpm 10671 root 103u 0000 0,9 0 9882 anon_inode php5-fpm 10671 root 104u 0000 0,9 0 9882 anon_inode Expected result: ---------------- Number of open file descriptors should not consistently increase after each reload -- Edit bug report at https://bugs.php.net/bug.php?id=66908&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66908&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66908&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66908&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66908&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66908&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66908&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66908&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66908&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66908&r=support Expected behavior: https://bugs.php.net/fix.php?id=66908&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66908&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66908&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66908&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66908&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66908&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66908&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66908&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66908&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66908&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66908&r=mysqlcfg

« previous php.bugs (#184797) next »