7

I am manually migrating this question from drupal.stackexchange.com (has since been deleted).

I recently upgraded my local dev environment (Vagrant, Ubuntu 12.04) from PHP 5.3.X to 5.5.14 and Apache 2.2.X to 2.4.9. After the upgrade, whenever I the debug function dpm() is called it causes a segmentation fault. A snippet from the Apache logs:

[Wed Jul 09 14:33:11.474063 2014] [core:notice] [pid 6513] AH00051: child pid 6644 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jul 09 14:33:18.483516 2014] [core:notice] [pid 6513] AH00051: child pid 6640 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jul 09 14:33:25.494786 2014] [core:notice] [pid 6513] AH00051: child pid 6619 exit signal Segmentation fault (11), possible coredump in /etc/apache2

Note that after upgrading PHP and Apache, I later decided to upgrade Ubuntu to 14.04. The problem remains the same.

Drupal 7.30
Devel 7.x-1.5 (Drupal module)

Disabling OpCache did not solve the problem.

I installed gdb and got a core dump. Here are the results:

/vagrant/web [git::goomba *] [vagrant@dev] [9:04]
> gdb apache2 -core core
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from apache2...(no debugging symbols found)...done.
[New LWP 8265]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/apache2 -k start'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fd091fda437 in ?? () from /usr/lib/apache2/modules/libphp5.so

And when I run (gdb) backtrace full:

#0  0x00007fd091fda437 in ?? () from /usr/lib/apache2/modules/libphp5.so
No symbol table info available.
#1  0x00007fd091fdb044 in vspprintf () from /usr/lib/apache2/modules/libphp5.so
No symbol table info available.
#2  0x00007fd092038537 in zend_error_noreturn ()
   from /usr/lib/apache2/modules/libphp5.so
No symbol table info available.
#3  0x00007fd09205d7ff in zend_std_read_property ()
   from /usr/lib/apache2/modules/libphp5.so
No symbol table info available.
#4  0x00007fd0920633c7 in ?? () from /usr/lib/apache2/modules/libphp5.so
No symbol table info available.
#5  0x00007fd0920a7178 in execute_ex () from /usr/lib/apache2/modules/libphp5.so
No symbol table info available.
#6  0x00007fd092027e86 in dtrace_execute_ex ()
   from /usr/lib/apache2/modules/libphp5.so
No symbol table info available.
#7  0x00007fd0920e2f27 in ?? () from /usr/lib/apache2/modules/libphp5.so
No symbol table info available.
#8  0x00007fd0920a7178 in execute_ex () from /usr/lib/apache2/modules/libphp5.so
No symbol table info available.
#9  0x00007fd092027e86 in dtrace_execute_ex ()
   from /usr/lib/apache2/modules/libphp5.so
No symbol table info available.
#10 0x00007fd0920e2f27 in ?? () from /usr/lib/apache2/modules/libphp5.so
No symbol table info available.
#11 0x00007fd0920a7178 in execute_ex () from /usr/lib/apache2/modules/libphp5.so
No symbol table info available.
#12 0x00007fd092027e86 in dtrace_execute_ex ()

dpm() Details

This is a debug function that pretty-prints a PHP variable. Underneath the hood, it uses Krumo, specifically, it calls krumo::dump().

11
  • Drupal does not list a maximum version for php, however PHP has breaking changes between minor versions. 5.3 is the recommended version for Drupal 7. Have you confirmed your version can work with 5.5? Commented Sep 2, 2014 at 17:57
  • I have it working fine on other servers. It just seems to be something about my little vagrant VM. Also, I don't think "breaking changes" would imply segment faults. Commented Sep 2, 2014 at 18:16
  • 1
    This isn't an answer to your problem, but Kint might be a good alternative, if you cannot solve the issue: raveren.github.io/kint Commented Sep 3, 2014 at 19:16
  • 1
    Make sure all your php modules are up to date. These crashes often happen when one of the loaded modules is out of date. Commented Sep 4, 2014 at 11:05
  • 1
    Same issue here. Linux Mint 17. The only "solution" I found was to compile PHP 5.3 :\ Commented Sep 9, 2014 at 18:09

2 Answers 2

7

I had a very similar problem here Error (lots of it):

[core:notice] [pid 1550] AH00051: child pid 2226 exit signal Segmentation fault (11), possible coredump in /etc/apache2

the culprit was xcache removed by:

apt-get --purge remove php5-xcache

Using Apache 2.4.7

php -v output:

PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)

Sign up to request clarification or add additional context in comments.

4 Comments

I don't have php5-xcache installed. Thank you, though.
I get a similar problem, and not easy to debug, the only thing I get is a core dump and after read it an error on missing /build/buildd/php5-5.5.9+dfsg/Zend/zend_hash.c
this solved my issues as well, I had installed xcache in replacement of opcache which is now bundled with php5.5
In my case clam antivirus is causing this. And I can not uninstall it either :-(
0

I stopped pursuing this issue for a while and so stopped using the dpm() function that was triggering the problems. At some point, this problem went away for me. I'm not sure what fixed it. My guess is updates to PHP/Apache/Drupal, but I can't say for sure.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.