From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 24 01:30:01 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA36416A418 for ; Mon, 24 Dec 2007 01:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B46E713C458 for ; Mon, 24 Dec 2007 01:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lBO1U1Oi016728 for ; Mon, 24 Dec 2007 01:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lBO1U11h016725; Mon, 24 Dec 2007 01:30:01 GMT (envelope-from gnats) Resent-Date: Mon, 24 Dec 2007 01:30:01 GMT Resent-Message-Id: <200712240130.lBO1U11h016725@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thomas Sandford Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69D4016A419 for ; Mon, 24 Dec 2007 01:24:27 +0000 (UTC) (envelope-from tdgsandf@miriam.paradisegreen.co.uk) Received: from miriam.paradisegreen.co.uk (miriam.paradisegreen.co.uk [81.187.228.6]) by mx1.freebsd.org (Postfix) with ESMTP id 00D0A13C4E1 for ; Mon, 24 Dec 2007 01:24:26 +0000 (UTC) (envelope-from tdgsandf@miriam.paradisegreen.co.uk) Received: from miriam.paradisegreen.co.uk (localhost [127.0.0.1]) by miriam.paradisegreen.co.uk (8.14.2/8.14.2) with ESMTP id lBO1SEph057894 for ; Mon, 24 Dec 2007 01:28:14 GMT (envelope-from tdgsandf@miriam.paradisegreen.co.uk) Received: (from tdgsandf@localhost) by miriam.paradisegreen.co.uk (8.14.2/8.14.2/Submit) id lBO1SEHM057893; Mon, 24 Dec 2007 01:28:14 GMT (envelope-from tdgsandf) Message-Id: <200712240128.lBO1SEHM057893@miriam.paradisegreen.co.uk> Date: Mon, 24 Dec 2007 01:28:14 GMT From: Thomas Sandford To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/118980: php5-pcre can cause stack overflow in apache22 in normal use X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Thomas Sandford List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Dec 2007 01:30:01 -0000 >Number: 118980 >Category: ports >Synopsis: php5-pcre can cause stack overflow in apache22 in normal use >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 24 01:30:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Thomas Sandford >Release: FreeBSD 7.0-BETA4 i386 >Organization: >Environment: System: FreeBSD miriam.paradisegreen.co.uk 7.0-BETA4 FreeBSD 7.0-BETA4 #0: Sun Dec 2 19:19:04 UTC 2007 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: 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 >Fix: >Release-Note: >Audit-Trail: >Unformatted: