From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Oct 9 15:00:49 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30DC216A49E for ; Mon, 9 Oct 2006 15:00:49 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96CD643D64 for ; Mon, 9 Oct 2006 15:00:40 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k99F0e30097594 for ; Mon, 9 Oct 2006 15:00:40 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k99F0e01097593; Mon, 9 Oct 2006 15:00:40 GMT (envelope-from gnats) Resent-Date: Mon, 9 Oct 2006 15:00:40 GMT Resent-Message-Id: <200610091500.k99F0e01097593@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, Scott MacVicar Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CE2B16A403 for ; Mon, 9 Oct 2006 14:56:46 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1836343D45 for ; Mon, 9 Oct 2006 14:56:46 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k99Eujtm094918 for ; Mon, 9 Oct 2006 14:56:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k99EujNS094815; Mon, 9 Oct 2006 14:56:45 GMT (envelope-from nobody) Message-Id: <200610091456.k99EujNS094815@www.freebsd.org> Date: Mon, 9 Oct 2006 14:56:45 GMT From: Scott MacVicar To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/104215: Segfault with PHP function call when the tokenizer extension is built as an external module X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2006 15:00:49 -0000 >Number: 104215 >Category: ports >Synopsis: Segfault with PHP function call when the tokenizer extension is built as an external module >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 Oct 09 15:00:39 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Scott MacVicar >Release: 4.10-RELEASE-p5 / 4.11-RELEASE-p13 / FreeBSD 4.11-RELEASE-p19 >Organization: Jelsoft Enterprises Ltd >Environment: There are various machines customers are using, all of them are using 4.x. >Description: I've already reported this to the PHP bug list and they've decided its got nothing to do with them, I tend to disagree though. When using the token_get_all function there is a segfault, the back trace is as follows. Program received signal SIGSEGV, Segmentation fault. 0x80d216d in _efree () (gdb) bt #0 0x80d216d in _efree () #1 0x80de408 in _zval_dtor () #2 0x4861f8e6 in tokenize () from /usr/local/lib/php/20020429/tokenizer.so #3 0x48620041 in zif_token_get_all () from /usr/local/lib/php/20020429/tokenizer.so #4 0x80f14bb in execute () #5 0x80df699 in zend_execute_scripts () #6 0x80ba79f in php_execute_script () #7 0x80f8241 in main () #8 0x805cf86 in _start () Sorry its not very informative. To fix this I forced the tokenizer to be compiled into PHP by adding it to the configure line. PHP Bug report is: http://bugs.php.net/bug.php?id=38449 >How-To-Repeat: Place this in a file. '); var_dump($tokens); ?> run via command line php foo.php >Fix: >Release-Note: >Audit-Trail: >Unformatted: