Screen (the program) is buggy when called from apache2 and php5 in cgi mode

Bug #482910 reported by Jonathan Mercier-Ganady
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
suphp (Ubuntu)
New
Undecided
Unassigned

Bug Description

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".

description: updated
Chuck Short (zulcss)
affects: apache2 (Ubuntu) → suphp (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.