Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2006 10:18:51 GMT
From:      Chris van der Wel <chris_at_argeweb.nl@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/93274: nss_ldap & nss_mysql cause php to segfault
Message-ID:  <200602131018.k1DAIpUZ099226@www.freebsd.org>
Resent-Message-ID: <200602131020.k1DAK4au063114@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602131018.k1DAIpUZ099226>