Comments (7)
Hi,
unfortunately, I can't reproduce the bug. Installed PHP 7.1 on CentOS 7.7 from REMI's repository and all seems to be working fine.
Could you please provide code that crashes PHP?
Could you please provide "php -i"?
Thanks,
Tomas
from pecl-memcache.
@tomassrnka Thanks for your reply.
This error occurs occasionally,It is more likely to occur when memcache restarting.
Debugging with gdb can find that the variable address taken out on line 1751 is unreadable.
Sorry, till now I haven't found the conditions to reproduce this error.
from pecl-memcache.
Hi. I have the conditions to reproduce.
I have at least 10 fpms with some kind of load(100-200rps prob) on them. I have at least 2 servers in configuration. I restart one of them and get SEGFAULT.
from pecl-memcache.
@shmel1k awesome!
from pecl-memcache.
I have such kind of stacktrace by the way
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f4345fc7d93 in mmc_value_handler_single () from /usr/lib/php/20170718/memcache.so
(gdb) bt
#0 0x00007f4345fc7d93 in mmc_value_handler_single () from /usr/lib/php/20170718/memcache.so
#1 0x00007f4345fcce8d in mmc_unpack_value () from /usr/lib/php/20170718/memcache.so
#2 0x00007f4345fd2c9c in ?? () from /usr/lib/php/20170718/memcache.so
#3 0x00007f4345fced04 in mmc_pool_select () from /usr/lib/php/20170718/memcache.so
#4 0x00007f4345fcf7a8 in mmc_pool_run () from /usr/lib/php/20170718/memcache.so
#5 0x00007f4345fc97a2 in ?? () from /usr/lib/php/20170718/memcache.so
Looks like all resources are freed in another C(not php) thread, but idk.
Checks like
if (!result) { return -1; }
do not work. If they dont, I think, that it is some kind of race issue
from pecl-memcache.
@shmel1k Hi, Could you please provide code that crashes PHP?
from pecl-memcache.
Hi!
Nothing diffucult, something like
Init script
$m = new Memcache();
$m->addServer($host1, $port1); // persistent
$m->addServer($host2, $port2); // persistent
Somewhere in php-fpm logic
$m->set('some_key', 'some_value', 42);
$m->get('some_key');
from pecl-memcache.
Related Issues (20)
- Memory Leak with 4.0.5.3 (PHP 7.4)
- get() can return invalid values after a PHP OOM HOT 1
- Using repcached for session slows down php module loading with version 8.2. (PHP 8.2)
- Creation of dynamic property Memcache::$connection is deprecated (in PHP 8.2)
- DLL available to download HOT 1
- Provide a getResultCode() to check if the most recent memcache operation had an error?
- Allow overriding the hardcoded retry timeout of 15 in php.ini for connect, as well as for connect/memcache_pconnect calls? HOT 5
- PHP 8 HOT 11
- php8 windows build HOT 4
- Session Redundancy with Failover doesn't work on PHP7 HOT 7
- Idea: Support alternate serializers such as igbinary, msgpack, etc for arrays/objects
- PECL install not receiving -D --with-zlib-dir=/path/ option
- Test 035 fails after update to PHP 8.1 HOT 1
- Why is 3.x beta?
- Tag 3.0.7
- 3.0.8 tests fail because connect.inc is missing
- Unable to compile on Freebsd / PHP 7.4
- v8.0 on php8.1 showing as 4.0.5.2 on phpinfo() HOT 2
- 4.0.5.3 and 8.0.1 missing on pecl HOT 3
- cpu high load with php8 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pecl-memcache.