-
Notifications
You must be signed in to change notification settings - Fork 327
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
Segfaults with PHP 7.0.8 #265
Comments
any reproduce script? |
It was during running Drupal with memcached module and PHP sessions in memcached. In such configuration one on five requests caused segfault and 503 error. |
could you please try again with the latest snapshot in php7 branch? I fixed something recently, not sure whether it is related |
I'm on vacation now but will try find time for this, I will let you know about results. |
I tested current code from php7 branch and it crushed on every request. |
hmm, are you able to run php-fpm with valgrind? it may give us more infos, or you could grant me a ssh access to a reproduce able box? (my email is gmail) |
I've installed drupal 8 and memcached module for drupal too, but I can not see the segfault while doing benchmark. |
I will be able to run valgrind and whatever debug tools you need but now for 2 weeks I'm on vacation with limited access to internet. |
Here you have valgrind dump during failure: |
hmm, seems stackoverflow? hmm, could you show me how to reproduce it from a fresh start? thanks very much for the help! |
I asked programmer working with me on this project where we have problem to help separate code causing problems - I will inform you about progress. |
@tgagor any progress? :) thanks |
@laurence I'm back after vacation starting from today, I will push this further. I will try to prepare Vagrant environment so you could play with it. |
Hi again, I prepared test environment with clean version of Drupal (exact we use on production), same version of memcache module for Drupal and tried to get similar results. Sadly I wasn't be able to reproduce this stack overflow in this test env ;-( On production we have a lot more Drupal modules and a lot more article types with different snippets, etc. It's almost impossible to reproduce this in clean Drupal without a huge effort. I tried to debug things with Could we meet on IRC/Slack (or similar) so you could instruct me what more could I do to show where the problem is? |
hmm.....it's sad that we can not reproduce it easily, anyway, I am not available on IRC till weekend. |
I tried to debug it further (to extract what parameters cause segfault) but without success. We abandoned memcached in this project and switched to redis. |
Hi, We have segfaults with php 7.0.12 and latest memcached php7 branch. It's happening in some cases when a multiget returns values with special chars. In second call to multiget for other values in same request we have segfaults: exited on signal 11 (SIGSEGV - core dumped) The coredump shows: #0 0x000000314e889710 in memcpy () from /lib64/libc.so.6 |
@arielkung Could you recompile your libmemcached with debugging symbols, or if you're using system packages, install the debug package such as https://packages.debian.org/jessie/libmemcached-dbg ? That will fill-in the ??? lines in the backtrace and make it possible to see where the problem is more specifically. I'm unscheduling this from a fix target for now. |
I asked for help half a year ago. It was looking at that time, that solution won't arrive soon, so we decided to switch to Redis. It was working without problems and added some value with ex. no more empty cache after service restart. Thanks to this issue I learned Redis and now I prefer it over memcached. Right now I don't have access to this environment and can't help with that. It's not resolved but I don't see sense to keep this issue open. |
Thanks for your engagement. |
@arielkung If your crash continues to occur, please open a new ticket with the suggested packages for a more complete backtrace. It's likely that you had a separate issue from the OP. |
I have CentOS 7 based environment with PHP-FPM from IUS repo. I compiled manually memcached module and it was working but not so well - from time too time it cause segfaults:
Trying to debug it I've got:
I don't know what to do next with that so any help is appreciated :-)
The text was updated successfully, but these errors were encountered: