From: stefan dot launicke at gate8 dot de Operating system: Linux 2.6.19 PHP version: 5.2.10 PHP Bug Type: Program Execution Bug description: external program execution hangs, process sometimes never exits
Description: ------------ When doing a external function call using either passthru(), proc_open() or system(), the external process hangs most of the time. Sometimes it works. Only appears when run through mod_php / apache2. Calling the script in the shell with CLI always works. ps shows: 11606 ? Sl 0:00 /usr/bin/pdftk No errors in any logs, no segfaults. top Please Note: - doing the exact same call in a Perl script running in Apache always works. - calling the perl script which does the funtion call from within php will crash again with ps (passthru example): 11674 ? S 0:00 sh -c cd '/data/usr/inauris.com/tmp' ; /data/usr/inauris.com/tmp/test3.pl 11675 ? S 0:00 /usr/bin/perl -w /data/usr/inauris.com/tmp/test3.pl 11676 ? Sl 0:00 /usr/bin/pdftk /data/usr/inauris.com/management/home/app/pdf... Apache Version: 2.2.11, Worker MPM Reproduce code: --------------- passthru ("/usr/bin/pdftk /data/testin.pdf fill_form /data/workdata output /data/testout.pdf flatten"); Expected result: ---------------- exec & return Actual result: -------------- hang -- Edit bug report at http://bugs.php.net/?id=49265&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49265&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49265&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49265&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49265&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49265&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49265&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49265&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49265&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49265&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49265&r=support Expected behavior: http://bugs.php.net/fix.php?id=49265&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49265&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49265&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49265&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49265&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49265&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49265&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49265&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49265&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49265&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49265&r=mysqlcfg