title: php5-fpm segfault error 6 in libpcre.so.3.13.1
body: <p>I have installed Ubuntu 14.04 server with PHP 5.5.9, Apache 2.4, varnish, php-fpm and mod_proxy_fcgi.</p>
  
  <p>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.</p>
  
  <p>So, documentation say try change pcre.backtrack_limit and pcre.recursion_limit, so i try it small, middle, extreme value (1000000000) but without efect.</p>
  
  <p>System is up-to-date, is there possible howto increase stack size per proces od thread?</p>
  
  <p>Can anyone help? (sorry for my bad english) F.</p>