From: manuel dot schmitt at manitu dot de Operating system: Linux PHP version: 5.2.9 PHP Bug Type: Session related Bug description: Session does not close file in /tmp/
Description: ------------ PHP internal session handler does not correctly closes flock()s on session files Reproduce code: --------------- (This bug seems the same issue as bug #32092) The problem happens on various PHP applications, no matter what they do exactly. Only one same thing: They are all using PHP sessions. In these cases Apache/PHP-processes hanging forever (until killed). I have strace'd the processed, they are hanging on flock()ing the session file as flock(FILE_ID, LOCK_EX, <unfinished>) where FILE_ID is a /tmp/sess_XXX-File (not on NFS, just local) [I have traced this from /proc/PROCID/fd/FILE_ID which links to the session file] I suppose that there was an php process flock()ing the file, perhaps running into max_execution_time, not unflocking the session file correctly and other processed wanting to write session data. Expected result: ---------------- PHP session handler should have some timeout and/or old file locks should be hard-broken. Actual result: -------------- Forever-Hanging php processes. -- Edit bug report at http://bugs.php.net/?id=47640&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47640&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47640&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47640&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47640&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47640&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47640&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47640&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47640&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47640&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47640&r=support Expected behavior: http://bugs.php.net/fix.php?id=47640&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47640&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47640&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47640&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47640&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47640&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47640&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47640&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47640&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47640&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47640&r=mysqlcfg
