#49265 [Bgs]: external program execution hangs, process sometimes never exits
ID: 49265 User updated by: stefan dot launicke at gate8 dot de Reported By: stefan dot launicke at gate8 dot de Status: Bogus Bug Type: Program Execution Operating System: Linux 2.6.19 PHP Version: 5.2.10 New Comment: reproduced with Apache Prefork model. Same behaviour, Previous Comments: [2009-08-17 18:49:51] j...@php.net And please don't post the bug if you can't reproduce it using the preform MPM. Threaded mpms are not supported. [2009-08-17 18:49:00] j...@php.net We can only delete the comments. Can't edit initial entry in this version of the bug tracker. Please repost this bug. [2009-08-15 10:32:36] stefan dot launicke at gate8 dot de I appologize for the double post. For some reason, I cannot edit my submission. Can some admin please delete the first entry? Thank you. [2009-08-15 10:17:26] stefan dot launicke at gate8 dot de 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 this bug report at http://bugs.php.net/?id=49265&edit=1
#49265 [Bgs]: external program execution hangs, process sometimes never exits
ID: 49265 Updated by: j...@php.net Reported By: stefan dot launicke at gate8 dot de Status: Bogus Bug Type: Program Execution Operating System: Linux 2.6.19 PHP Version: 5.2.10 New Comment: And please don't post the bug if you can't reproduce it using the preform MPM. Threaded mpms are not supported. Previous Comments: [2009-08-17 18:49:00] j...@php.net We can only delete the comments. Can't edit initial entry in this version of the bug tracker. Please repost this bug. [2009-08-15 10:32:36] stefan dot launicke at gate8 dot de I appologize for the double post. For some reason, I cannot edit my submission. Can some admin please delete the first entry? Thank you. [2009-08-15 10:17:26] stefan dot launicke at gate8 dot de 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 this bug report at http://bugs.php.net/?id=49265&edit=1