[Bug 252218] New: php5 command line interpreter hangs in libedit startup when started in background
https://bugzilla.novell.com/show_bug.cgi?id=252218 Summary: php5 command line interpreter hangs in libedit startup when started in background Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: anosek@novell.com ReportedBy: florian@void.s.bawue.de QAContact: qa@suse.de CC: judas_iscariote@shorewall.net This is a problem with the php5-5.2.1-17.1 package from BuildService: When you try to run any php script in the background like so: bash$ php5 script.php & The php interpreter then becomes Blocked and will only unblock if you send the process to the foreground again. I think it is waiting for the TTY. This happens before the first line of the php script is executed, and I think it happens in the libedit initialization. If you use a non-tty file for the input, for example /dev/null, the script runs fine. I can reproduce this on OpenSUSE 10.2 (32-bit) with php5-5.2.1-17.1 and libedit-2.9.snap20061022-8 and on SUSE 10.0 (64-bit) with php5-5.2.1-17.1 and libedit-2.10.snap20061228-6.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=252218 judas_iscariote@shorewall.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |mrueckert@novell.com ------- Comment #1 from judas_iscariote@shorewall.net 2007-03-07 21:57 MST ------- Marcus, not a PHP problem it seems ;) I just compiled PHP using system 's GNU readline /configure --with-libdir=lib64 --disable-rpath --disable-static --with-readline=/usr --disable-cgi --disable-all and it does not exibit this beahaviuor, any idea what can cause this ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=252218 ------- Comment #2 from mrueckert@novell.com 2007-04-17 10:17 MST ------- a simple workaround is: [[[ /usr/bin/php5 /path/To/yourscript.php < /dev/null & ]]] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=252218 mrueckert@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|mrueckert@novell.com | ------- Comment #3 from mrueckert@novell.com 2007-05-07 10:45 MST ------- after a discussion on irc: we should at least add a README.SUSE that explains the issue and the workaround. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=252218 ------- Comment #4 from judas_iscariote@shorewall.net 2007-05-11 07:11 MST ------- Marcus , so.. you last impression..this is a bug in PHP or in libedit ? how you suggest we approach this.. I splitted the readline support into a shared module, but it is more or less useless that way, as the most savy/useful functionatity that this module provides is the interactive interpreter with history and completion but for some reason does not work when the module is compiled shared :-( So I 'll merge readline support into the CLI binary again later.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=252218 ------- Comment #5 from mrueckert@novell.com 2007-05-11 07:36 MST ------- it is a different logic between readline and libedit. libedit initializes some stuff earlier than readline. that leads to a regression in our php builds. libedit upstream doesnt want to change the behavior, if i understood them correctly. moving readline support into an extension doesnt work either as we found out. and even if it would be possible, as php doesnt support loading extensions on demand, we couldnt even remove it from the default config and tell users to load readline support on demand. atm i am in favor of documenting this bug with a README.SUSE. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=252218
Ales Nosek
https://bugzilla.novell.com/show_bug.cgi?id=252218#c6
Cristian Rodriguez
https://bugzilla.novell.com/show_bug.cgi?id=252218
User coolo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=252218#c7
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=252218
User crrodriguez@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=252218#c8
Cristian Rodriguez
participants (1)
-
bugzilla_noreply@novell.com