[Bug 482910] [NEW] Screen (the program) is buggy when called from apache2 and php5 in cgi mode

Jonathan Mercier-Ganady jmgr at jmgr.info
Sun Nov 15 02:55:33 GMT 2009


Public bug reported:

Binary package hint: apache2

Description:    Ubuntu 9.10 (Server)
Release:        9.10 (amd64)
apache2 2.2.12-1ubuntu2
php5-cgi 5.2.10.dfsg.1-2ubuntu6.1
screen 4.0.3-13ubuntu4
suphp-common 0.6.2-3

When using apache2 and php5 in cgi mode with suphp, calling the screen command to start a screen as daemon will produce strange things :
- when attached to the screen you hit Ctrl+C to quit the sceen, nothing happens, but detaching the screen is still possible with Ctrl+A+D
- when trying to close the screen with screen -X quit, the screen closes, but the process started in the screen is still running and must be killed forcefully

I tried replacing the apache2 binary with the 2.2.9-7ubuntu3.3 version
from another server (with Ubuntu 8.10) and it worked as usual, so I
think it is an apache bug. I don't know if the problem was also present
in Ubuntu 9.04.

To reproduce the bug :
Run these lines with apache2 and php5-cgi :
<?php
system("screen -dmS screenName sleep 60");
?>
Then go to a terminal with the user who owns the script and run "screen -x screenName".

** Affects: apache2 (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Binary package hint: apache2
  
  Description:    Ubuntu 9.10 (Server)
  Release:        9.10 (amd64)
  apache2 2.2.12-1ubuntu2
  php5-cgi 5.2.10.dfsg.1-2ubuntu6.1
  screen 4.0.3-13ubuntu4
  suphp-common 0.6.2-3
  
  When using apache2 and php5 in cgi mode with suphp, calling the screen command to start a screen as daemon will produce strange things :
  - when attached to the screen you hit Ctrl+C to quit the sceen, nothing happens, but detaching the screen is still possible with Ctrl+A+D
  - when trying to close the screen with screen -X quit, the screen closes, but the process started in the screen is still running and must be killed forcefully
  
  I tried replacing the apache2 binary with the 2.2.9-7ubuntu3.3 version
- from another server and it worked as usual, so I think it is an apache
- bug. I don't know if the problem was also present in Ubuntu 9.04.
+ from another server (with Ubuntu 8.10) and it worked as usual, so I
+ think it is an apache bug. I don't know if the problem was also present
+ in Ubuntu 9.04.
  
  To reproduce the bug :
  Run these lines with apache2 and php5-cgi :
  <?php
  system("screen -dmS screenName sleep 60");
  ?>
- Then do to a terminal with the user who owns the script and run "screen -x screenName".
+ Then go to a terminal with the user who owns the script and run "screen -x screenName".

-- 
Screen (the program) is buggy when called from apache2 and php5 in cgi mode
https://bugs.launchpad.net/bugs/482910
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in ubuntu.



More information about the Ubuntu-server-bugs mailing list