Bug 696176 - php-pecl-memcache broken on s390x
Summary: php-pecl-memcache broken on s390x
Keywords:
Status: CLOSED DUPLICATE of bug 672363
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: php-pecl-memcache
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Joe Orton
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-13 13:34 UTC by David Kutálek
Modified: 2011-04-13 16:18 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-13 16:18:39 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description David Kutálek 2011-04-13 13:34:23 UTC
Description of problem:

It seems like somewhere in php-pecl-memcache code. file descriptor for connection to memcache server is crippled:

# php -a
Interactive shell

php >  $c = new Memcache();
php >  $c->connect("127.0.0.1", 11211);
php > var_dump ($c);
object(Memcache)#1 (1) {
  ["connection"]=>
  resource(1) of type (memcache connection)
}
php >  $c->set("rhts638887", "testing delete");
PHP Notice:  MemcachePool::set(): Server 127.0.0.1 (tcp 11211, udp 0) failed with: Socket operation on non-socket (88) in php shell code on line 1
php > ^D[root@ibm-z10-15 bz638887-php-pecl-memcache-delete-error]# 

#  netstat -lnp | grep mem
tcp        0      0 0.0.0.0:11211               0.0.0.0:*                   LISTEN      47960/memcached     
tcp        0      0 :::11211                    :::*                        LISTEN      47960/memcached     
udp        0      0 0.0.0.0:11211               0.0.0.0:*                               47960/memcached     
udp        0      0 :::11211                    :::*                                    47960/memcached     

# service memcached status
memcached (pid  47960) is running...

# uname -a
Linux ibm-z10-15.rhts.eng.bos.redhat.com 2.6.32-71.el6.s390x #1 SMP Wed Sep 1 01:38:33 EDT 2010 s390x s390x s390x GNU/Linux


Version-Release number of selected component (if applicable):

# rpm -q php-pecl-memcache php-cli memcached
php-pecl-memcache-3.0.5-1.el6.s390x
php-cli-5.3.3-3.el6.s390x
memcached-1.4.4-3.el6.s390x

How reproducible:

Always on s390x

Steps to Reproduce:
1. Make sure memcached is running, php-pecl-memcache is installed...
2. Run commands as stated above
3.
  
Actual results:

setting key/value pair into memcache fails with 
PHP Notice:  MemcachePool::set(): Server 127.0.0.1 (tcp 11211, udp 0) failed with: Socket operation on non-socket (88)

Expected results:

Memcache should work.

Additional info:

Comment 1 Joe Orton 2011-04-13 15:04:45 UTC

*** This bug has been marked as a duplicate of bug 672363 ***

Comment 2 Joe Orton 2011-04-13 15:21:15 UTC
Sorry didn't mean to dupe this one.

Comment 3 Joe Orton 2011-04-13 15:23:28 UTC
Highly likely this is the same cause as bug 672363 - can you confirm with php-pecl-memcache-3.0.5-2.el6?

Comment 4 David Kutálek 2011-04-13 16:04:42 UTC
(In reply to comment #3)
> Highly likely this is the same cause as bug 672363 - can you confirm with
> php-pecl-memcache-3.0.5-2.el6?

Yes it works now:

# php -a
Interactive shell

php > $c = new Memcache();$c->connect("127.0.0.1", 11211);
php > var_dump($c->set("rhts638887", "testing delete"));
bool(true)
php > var_dump($c->delete("rhts638887"));
bool(true)
php > ^D# 

# uname -a
Linux XXX 2.6.32-128.el6.s390x #1 SMP Mon Mar 28 21:58:33 EDT 2011 s390x s390x s390x GNU/Linux

# rpm -q php-pecl-memcache
php-pecl-memcache-3.0.5-2.el6.s390x

Comment 5 Joe Orton 2011-04-13 16:18:39 UTC
Great, thanks, duping this then.

*** This bug has been marked as a duplicate of bug 672363 ***


Note You need to log in before you can comment on or make changes to this bug.