i386/93274: nss_ldap & nss_mysql cause php to segfault

Chris van der Wel chris_at_argeweb.nl at FreeBSD.org
Mon Feb 13 02:20:06 PST 2006


>Number:         93274
>Category:       i386
>Synopsis:       nss_ldap & nss_mysql cause php to segfault
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 13 10:20:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Chris van der Wel
>Release:        5.4-RELEASE-p8
>Organization:
>Environment:
FreeBSD hordeur.argewebhosting.nl 5.4-RELEASE-p8 FreeBSD 5.4-RELEASE-p8 #1: Fri Oct 21 13:16:58 CEST 2005     root at hordeur.argewebhosting.nl:/usr/obj/usr/src/sys/ARGEWEB  i386
>Description:
When PHP is resolving any hostname (valid or not) PHP is segfaulting. It only happens when nss_ldap or nss_mysql is enabled in /etc/nsswitch.conf

chris at hordeur: ~ $ cat /etc/nsswitch.conf
group: files ldap
group_compat: nis
hosts: files dns
networks: files
passwd: files ldap
passwd_compat: nis
shells: files

We reported this bug to PHP, but they say it'a a FreeBSD bug (see http://bugs.php.net/bug.php?id=36206)

Backtraces are available in the PHP bug report.
>How-To-Repeat:
Enable nss_ldap or nss_mysql and run something like

echo "<?php mysql_connect('bla','bla','bla'); ?>"|php
>Fix:
              
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-i386 mailing list