fahacz
fahacz

Reputation: 21

php5-fpm segfault error 6 in libpcre.so.3.13.1

I have installed Ubuntu 14.04 server with PHP 5.5.9, Apache 2.4, varnish, php-fpm and mod_proxy_fcgi.

I have own small template language written in PHP, after migrate from old php 5.2 to php 5.5 everything seems to be ok, but in some cases i have this bug, when a i try render (preg_replace_callback function) template with size 9691 bytes or more php crash. (dmesg output php5-fpm segfault error 6 in libpcre.so.3.13.1). Small template size is ok.

So, documentation say try change pcre.backtrack_limit and pcre.recursion_limit, so i try it small, middle, extreme value (1000000000) but without efect.

System is up-to-date, is there possible howto increase stack size per proces od thread?

Can anyone help? (sorry for my bad english) F.

Upvotes: 2

Views: 3770

Answers (1)

Leonardo Pedretti
Leonardo Pedretti

Reputation: 31

I also found this same problem, and I solved it setting

pcre.recursion_limit=1000

in /etc/php5/fpm/php.ini

Then restarting php5-fpm

Hope it helps!

Upvotes: 3

Related Questions