← Back to team overview

ius-community team mailing list archive

Re: php56u-pecl-memcache coredumps httpd

 

On 08/17/2015 03:57 PM, Ben Harper wrote:
You mentioned that you are rebuilding your php packages against httpd24.
  Can you reproduce this issue with stock IUS php packages?

Hi Ben,

sorry for the late answer, but I finally got some spare time and I found a reason for this segfault.

Problem was within opcache module, and actually, problem was that I had two files:

/etc/php.d/10-opcache.ini

and

/etc/php.d/opcache.ini


Both files had same content, which is ok. Reason I had these two files was that I use puppet as CM, and in 5.6 you guys changed names of the ini files by adding enumeration in front of them, and puppet deployed this file as usual.


Actually, to reproduce it, it is enough to have:

zend_extension=opcache.so
zend_extension=opcache.so

in /etc/php.ini.


While this is my mistake, I still am puzzled as to why does php segfault in this case. IMHO, php should handle multiple .so loading same as Apache does, by printing warning and ignoring the second 'zend_extension=' line...

I already filed a bug upstream, so I'll just update the bug description, or open a new bug...

What puzzles me though is that I remember having this problem with early 5.6.x versions (5.6.3) even with opcache disabled, so I'm kinda really lost.

I'll give it a little bit more testing to see if it's stable enough to move prod to 5.6.x now.


Follow ups

References