Bug 118980

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   

Description Thomas Sandford 2007-12-24 01:30:01 UTC
	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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-12-24 03:29:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2007-12-27 06:55:43 UTC
State Changed
From-To: open->feedback

Have you reported the problem to php/pcre developers? 
This doesn't seem a FreeBSD specific problem.
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2008-01-24 13:23:17 UTC
State Changed
From-To: feedback->closed

Feedback timeout.