From nobody@FreeBSD.org  Thu Jan 18 14:49:28 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 2625816A415
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Jan 2007 14:49:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 15F3813C45E
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Jan 2007 14:49:28 +0000 (UTC)
	(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 l0IEnREu010387
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Jan 2007 14:49:27 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l0IEnRaq010386;
	Thu, 18 Jan 2007 14:49:27 GMT
	(envelope-from nobody)
Message-Id: <200701181449.l0IEnRaq010386@www.freebsd.org>
Date: Thu, 18 Jan 2007 14:49:27 GMT
From: Henri Witteveen<info@wm.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: several PHP5 extension modules in FreeBSD 6.2 generate a Segmentation fault: 11 (core dumped) or a Undefined symbol "ps_globals
X-Send-Pr-Version: www-3.0

>Number:         108096
>Category:       ports
>Synopsis:       several PHP5 extension modules in FreeBSD 6.2 generate a Segmentation fault: 11 (core dumped) or a Undefined symbol "ps_globals
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 18 14:50:15 GMT 2007
>Closed-Date:    Thu Jan 18 19:13:43 GMT 2007
>Last-Modified:  Sun Feb 18 14:20:05 GMT 2007
>Originator:     Henri Witteveen
>Release:        FreeBSD 6.2 Release
>Organization:
WhiteMoor Studio
>Environment:
FreeBSD vmbsd01.linbsd.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
After installing all the PHP5 extension I got a errors when running a simple PHP CLI program. The errors are:

Segmentation fault: 11 (core dumped) and

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/soap
.so' - /usr/local/lib/php/20060613/soap.so: Undefined symbol "ps_globals" in Unknown on line 0

I checked all the extensions and the problems arise when enabling the modules:

extension=recode.so -> Segmentation fault
extension=soap.so -> Undefined symbol "ps_globals"
extension=wddx.so -> Undefined symbol "ps_globals"
extension=yaz.so -> Segmentation fault
>How-To-Repeat:
The simple test used is:

#!/usr/local/bin/php
<?php
for ($i=0;$i<10 ;$i++) {
        print("\$i: $i\n");
}
?>

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ale 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jan 18 15:20:14 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108096 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Thu Jan 18 19:12:36 UTC 2007 
State-Changed-Why:  
These are well documented issues. Read php.net. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108096 

From: Lukasz Jaroszewski <vandal@nietykalni.org>
To: bug-followup@FreeBSD.org, info@wm.nl
Cc:  
Subject: Re: ports/108096: several PHP5 extension modules in FreeBSD 6.2
 generate a Segmentation fault: 11 (core dumped) or a Undefined symbol
 "ps_globals
Date: Sun, 18 Feb 2007 14:42:37 +0100 (CET)

 vandal@nietykalni.org~(0) uname -a
 Same on: 
 FreeBSD nietykalni.org 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sat Jul  8 
 13:56:58 CEST 2006     vandal@nietykalni.org:/usr/obj/usr/src/sys/GENERIC-NIETYKALNI3  i386
 
 vandal@nietykalni.org~(0) ./php5test.php
 PHP Warning:  PHP Startup: Unable to load dynamic library 
 '/usr/local/lib/php/20060613-debug/xsl.so' - /usr/local/lib/php/200
 60613-debug/xsl.so: Undefined symbol "dom_node_class_entry" in Unknown on 
 line 0
 PHP Warning:  PHP Startup: Unable to load dynamic library 
 '/usr/local/lib/php/20060613-debug/soap.so' - /usr/local/lib/php/20
 060613-debug/soap.so: Undefined symbol "ps_globals" in Unknown on line 0
 $i: 0
 $i: 1
 $i: 2
 $i: 3
 $i: 4
 $i: 5
 $i: 6
 $i: 7
 $i: 8
 $i: 9
 
 But w/o Segmentation fault.
>Unformatted:
