Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault when using persistent connection on 5.6 #8

Open
jamesrwhite opened this issue Sep 14, 2016 · 4 comments
Open

Segfault when using persistent connection on 5.6 #8

jamesrwhite opened this issue Sep 14, 2016 · 4 comments

Comments

@jamesrwhite
Copy link

Hi,

We're seeing the elasticache extension segfault when we enable persistent connections using the $persistent_id param to Memcached::__construct(); as documented on http://php.net/manual/en/memcached.construct.php.

We're using PHP 5.6 on Ubuntu 14.04, via this ppa https://launchpad.net/~ondrej/+archive/ubuntu/php.

The actual message we see in /var/log/messages is:

Sep 14 13:07:15 some-internal-hostname.net kernel: [411876.710620] php-fpm5.6[7576]: segfault at 7f45bb79b358 ip 00007f45af326cb5 sp 00007ffc4cf92220 error 4 in amazon-elasticache-cluster-client.so[7f45af302000+52000]

Let me know if there's any additional info I can provide to help debug this.

Thanks!

@QuChen88
Copy link
Contributor

Interesting. I launched an instance with Ubuntu 14.04 and installed PHP5.5 and the cluster client. I did the following and it went fine.

php -a
Interactive mode enabled

php > $m = new Memcached('persistence_pool');
php >

Are you still seeing this issue? I can try installing PHP 5.6 and try it out.

@QuChen88
Copy link
Contributor

Yes, worked for me on PHP 5.6 as well.

php -v
PHP 5.6.23-1+deprecated+dontuse+deb.sury.org~trusty+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

php -a
Interactive mode enabled

php > $m = new Memcached();
php > $m = new Memcached('persistence_pool');
php >

@jamesrwhite
Copy link
Author

Interesting. The only differences I can see is that I saw this issue via FPM, I didn't try from the CLI but I'll give that a go tomorrow. Also I think you're using a slightly different install source for PHP, perhaps the issue lies there? https://launchpad.net/~ondrej/+archive/ubuntu/php5-5.6 (yours) vs https://launchpad.net/~ondrej/+archive/ubuntu/php (mine).

@jamesrwhite
Copy link
Author

I can't reproduce it via the cli, our exact version is:

PHP 5.6.27-1+deb.sury.org~trusty+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with Suhosin v0.9.38, Copyright (c) 2007-2015, by SektionEins GmbH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants