php5-cli + PHP bug 42682: stream_select() indicates bad number of readable descriptors

Bug #331278 reported by Ken MacInnis
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: php5-cli

$ lsb_release -rd
Description: Ubuntu 8.04.2
Release: 8.04

$ uname -srvmpio
Linux 2.6.24-21-server #1 SMP Mon Aug 25 17:28:54 UTC 2008 x86_64 unknown unknown GNU/Linux

$ apt-cache policy php5-cli
php5-cli:
  Installed: 5.2.4-2ubuntu5.5
  Candidate: 5.2.4-2ubuntu5.5
  Version table:
 *** 5.2.4-2ubuntu5.5 0
        500 http://hardy-repo hardy-updates/main Packages
        100 /var/lib/dpkg/status
     5.2.4-2ubuntu5 0
        500 http://hardy-repo hardy/main Packages

Similar to:

  php5-cli + openssl bug on edgy 64bit (amd)
  https://bugs.launchpad.net/ubuntu/+source/php5/+bug/80852

I'm running into the problem where stream_select() indicates bad number of readable descriptors as in PHP bug #42682:

  http://bugs.php.net/bug.php?id=42682

Steps to reproduce:

- Run code as in PHP bug 42682 link
- Output is: "select : 0, r=1, w=0, e=0"
- Output should be as in PHP bug 42682

Intrepid is OK:

$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

$ apt-cache policy php5-cli
php5-cli:
  Installed: 5.2.6-2ubuntu4.1
  Candidate: 5.2.6-2ubuntu4.1
  Version table:
 *** 5.2.6-2ubuntu4.1 0
        500 http://mirrors.easynews.com intrepid-updates/main Packages
        500 http://mirrors.easynews.com intrepid-security/main Packages
        100 /var/lib/dpkg/status
     5.2.6-2ubuntu4 0
        500 http://mirrors.easynews.com intrepid/main Packages

$ php test.php
select : 1, r=1, w=0,
e=0
Reading...
Contents: [220 ***********************************
]
select : 0, r=0, w=0,
e=0
^C

Revision history for this message
Chuck Short (zulcss) wrote :

Hi,

If possible can you test this on the Karmic live cd?

Thanks
chuck

Changed in php5 (Ubuntu):
status: New → Incomplete
Revision history for this message
Ken MacInnis (kcm) wrote : Re: [Bug 331278] Re: php5-cli + PHP bug 42682: stream_select() indicates bad number of readable descriptors

Looks good:

kcm@bluto:/tmp$ lsb_release -rd
Description: Ubuntu karmic (development branch)
Release: 9.10
kcm@bluto:/tmp$ uname -srvmpio
Linux 2.6.31-8-generic #28-Ubuntu SMP Thu Aug 27 14:42:57 UTC 2009 x86_64
unknown unknown GNU/Linux
kcm@bluto:/tmp$ apt-cache policy php5-cli
php5-cli:
  Installed: 5.2.10.dfsg.1-2ubuntu3
  Candidate: 5.2.10.dfsg.1-2ubuntu3
  Version table:
 *** 5.2.10.dfsg.1-2ubuntu3 0
        500 http://mirrors.kernel.org karmic/main Packages
        500 http://archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status
kcm@bluto:/tmp$ php test.php
select : 1, r=1, w=0,
e=0
Reading...
Contents: [220 bluto ESMTP Exim 4.69 Mon, 14 Sep 2009 11:24:07 -0700
]
select : 0, r=0, w=0,
e=0
select : 0, r=0, w=0,
e=0
^C

On Mon, Sep 14, 2009 at 11:03 AM, Chuck Short <email address hidden>wrote:

> Hi,
>
> If possible can you test this on the Karmic live cd?
>
> Thanks
> chuck
>
> ** Changed in: php5 (Ubuntu)
> Status: New => Incomplete
>
> --
> php5-cli + PHP bug 42682: stream_select() indicates bad number of readable
> descriptors
> https://bugs.launchpad.net/bugs/331278
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “php5” package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: php5-cli
>
> $ lsb_release -rd
> Description: Ubuntu 8.04.2
> Release: 8.04
>
> $ uname -srvmpio
> Linux 2.6.24-21-server #1 SMP Mon Aug 25 17:28:54 UTC 2008 x86_64 unknown
> unknown GNU/Linux
>
> $ apt-cache policy php5-cli
> php5-cli:
> Installed: 5.2.4-2ubuntu5.5
> Candidate: 5.2.4-2ubuntu5.5
> Version table:
> *** 5.2.4-2ubuntu5.5 0
> 500 http://hardy-repo hardy-updates/main Packages
> 100 /var/lib/dpkg/status
> 5.2.4-2ubuntu5 0
> 500 http://hardy-repo hardy/main Packages
>
>
> Similar to:
>
> php5-cli + openssl bug on edgy 64bit (amd)
> https://bugs.launchpad.net/ubuntu/+source/php5/+bug/80852
>
> I'm running into the problem where stream_select() indicates bad number of
> readable descriptors as in PHP bug #42682:
>
> http://bugs.php.net/bug.php?id=42682
>
> Steps to reproduce:
>
> - Run code as in PHP bug 42682 link
> - Output is: "select : 0, r=1, w=0, e=0"
> - Output should be as in PHP bug 42682
>
> Intrepid is OK:
>
> $ lsb_release -rd
> Description: Ubuntu 8.10
> Release: 8.10
>
> $ apt-cache policy php5-cli
> php5-cli:
> Installed: 5.2.6-2ubuntu4.1
> Candidate: 5.2.6-2ubuntu4.1
> Version table:
> *** 5.2.6-2ubuntu4.1 0
> 500 http://mirrors.easynews.com intrepid-updates/main Packages
> 500 http://mirrors.easynews.com intrepid-security/main Packages
> 100 /var/lib/dpkg/status
> 5.2.6-2ubuntu4 0
> 500 http://mirrors.easynews.com intrepid/main Packages
>
> $ php test.php
> select : 1, r=1, w=0,
> e=0
> Reading...
> Contents: [220 ***********************************
> ]
> select : 0, r=0, w=0,
> e=0
> ^C
>

--
Ken MacInnis | 415.659.8588 | <email address hidden>

Revision history for this message
Chuck Short (zulcss) wrote :

Great, Thanks for testing.

Regards
chuck

Changed in php5 (Ubuntu):
status: Incomplete → Fix Released
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.