| Summary: | devel/php5-pcre can cause stack overflow in apache22 in normal use | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Thomas Sandford <freebsduser> |
| Component: | Individual Port(s) | Assignee: | Alex Dupre <ale> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-ports-bugs->ale Over to maintainer (via the GNATS Auto Assign Tool) State Changed From-To: open->feedback Have you reported the problem to php/pcre developers? This doesn't seem a FreeBSD specific problem. State Changed From-To: feedback->closed Feedback timeout. |
Problem manifests itself as occurence of messages like [Sat Dec 22 23:53:59 2007] [notice] child pid 71546 exit signal Illegal instruction (4) in the apache error log. Digging has revealed that this is really a stack overflow cause by excessive recursion in the pcre library. It is possible to tell pcre not to store data on the stack when recursing, but this is not enabled in the port or in php itself. Problem does not seem to be easily repeatable in the command line version of php, only the apache module (tested against apache22 only). How-To-Repeat: portinstall apache22 portinstall php5-pcre [configure building of apache module] install symfony sandbox from www.symfony-project.org and enable access attempt to access a symfony page in non-debug mode