From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 13 11:00:09 2007 Return-Path: Delivered-To: freebsd-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 8F20616A418 for ; Thu, 13 Sep 2007 11:00:09 +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 7353A13C428 for ; Thu, 13 Sep 2007 11:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l8DB09so082044 for ; Thu, 13 Sep 2007 11:00:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l8DB09GW082042; Thu, 13 Sep 2007 11:00:09 GMT (envelope-from gnats) Date: Thu, 13 Sep 2007 11:00:09 GMT Message-Id: <200709131100.l8DB09GW082042@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Simun Mikecin Cc: Subject: bin/115631: Re: PHP5 + oci8 consistently segfaults on script exit X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Simun Mikecin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2007 11:00:09 -0000 The following reply was made to PR bin/115631; it has been noted by GNATS. From: Simun Mikecin To: Gordon Stratton Cc: freebsd-database@freebsd.org, mi@aldan.algebra.com, bug-followup@freebsd.org Subject: bin/115631: Re: PHP5 + oci8 consistently segfaults on script exit Date: Thu, 13 Sep 2007 03:52:08 -0700 (PDT) --- Gordon Stratton wrote: > I did some testing, and the patch does seem to help. However, there seem > to be a couple cases where a segmentation fault still occurs. The first > is when I attempt to open a file with PHP that does not exist: > > $ php doesntexist > Could not open input file: doesntexist > Segmentation fault > > The second case involves a different PHP extension, pdo_dblib.so (the > OCI8 extensions seem to work OK now): > > (gdb) bt > #0 0x2912313c in ?? () > #1 0x285855c7 in pthread_mutex_lock () from /lib/libc.so.6 > #2 0x28f09bf3 in dbexit () from /usr/local/lib/libsybdb.so.5 > #3 0x28efb86b in zm_shutdown_pdo_dblib () from > /usr/local/lib/php/20060613-debug/pdo_dblib.so > #4 0x0816ceb0 in module_destructor (module=0x832a300) at > /usr/ports/lang/php5/work/php-5.2.3/Zend/zend_API.c:1894 > #5 0x0817171a in zend_hash_apply_deleter (ht=0x826c620, p=0x8330280) > at /usr/ports/lang/php5/work/php-5.2.3/Zend/zend_hash.c:611 > #6 0x08171873 in zend_hash_graceful_reverse_destroy (ht=0x826c620) at > /usr/ports/lang/php5/work/php-5.2.3/Zend/zend_hash.c:646 > #7 0x08166ca7 in zend_shutdown () at > /usr/ports/lang/php5/work/php-5.2.3/Zend/zend.c:733 > #8 0x081205f5 in php_module_shutdown () at > /usr/ports/lang/php5/work/php-5.2.3/main/main.c:1684 > #9 0x081ce73b in main (argc=20, argv=0xbfbfeca0) at > /usr/ports/lang/php5/work/php-5.2.3/sapi/cli/php_cli.c:1333 Have those two cases (doesntexist and pdo_dblib) segfaulted without this patch? ____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC