php5 cli one instance/process limit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
# lsb_release -rd
Description: Ubuntu 13.10
Release: 13.10
php5-cli 5.5.3+dfsg-
Ubuntu 13.10 32 bit
PHP5-cli limits the user to one instance at a time. If another php5-cli script is started, it takes priority over the previous running script causing the previous to "freeze" until the new running script finishes or exits. This isn't the normal behavior of the php5-cli as it should not care how many scripts you are running at once. I've never seen this behavior before, seems to be unique to only the Ubuntu distro family.
How to duplicate.
Create a script that loops a lot or does a lot of complex math to cause a good few seconds delay while it processes. Create another script (or copy/paste the first one) by a different file name. Try to run both scripts at the same time (you'll need two console sessions to do it) and the last executed script will freeze the first script until it finishes, then the first script will be allowed to process and finish.
Thank you for taking the time to report this bug and helping to make Ubuntu better.
I was unable to reproduce the problem. I ran two scripts with sleep statements, and one process does not appear to block the other.
I also tried a long for loop in case it helped to reproduce by keeping the CPU spinning, and I also could not get one process to block the other.
Finally, I tried three processes, since I was running the tests on a 2-CPU VM and wanted to make sure I tried the case where the number of processes exceeds the number of available CPUs.
None of these test cases were able to reproduce your problem. All processes ran in the time expected.
I appreciate your attempt to provide instructions to reproduce the problem, but either they are not detailed enough (you did not provide the exacts scripts to use), or you have a problem that only reproduces on your own machine, or there is some other factor involved here.
I'm marking this bug as Incomplete. If you do find a set of exact, detailed steps that others can follow to reproduce your problem, please detail them in this bug and set the bug status back to New.
You may find it helpful to read "How to report bugs effectively" http:// www.chiark. greenend. org.uk/ ~sgtatham/ bugs.html, if you're not aware of the information provided there already.