#36206 [Opn->Bgs]: LDAP in nsswitch.conf causes segfault when resolving hostnames in PHP

From: Date: Wed, 01 Feb 2006 15:45:06 +0000
Subject: #36206 [Opn->Bgs]: LDAP in nsswitch.conf causes segfault when resolving hostnames in PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92781@lists.php.net to get a copy of this message
ID: 36206 Updated by: tony2001@php.net Reported By: arnout at argeweb dot nl -Status: Open +Status: Bogus Bug Type: CGI related Operating System: freeBSD 5.4 PHP Version: 5.1.2 New Comment: Working Python doesn't make segfault in system libraries PHP problem. Please report it to FreeBSD developers. Previous Comments: ------------------------------------------------------------------------ [2006-02-01 16:28:05] arnout at argeweb dot nl No bogus yet :) ------------------------------------------------------------------------ [2006-02-01 16:27:37] arnout at argeweb dot nl Tried it. Python works great. No segfaults here. We tried python with AND without LDAP. It's a different problem that looks the same. root@host: ~ # python mysql.py Traceback (most recent call last): File "mysql.py", line 6, in ? db = "test") File "/usr/local/lib/python2.4/site-packages/MySQLdb/__init__.py", line 66, in Connect return Connection(*args, **kwargs) File "/usr/local/lib/python2.4/site-packages/MySQLdb/connections.py", line 134, in __init__ super(Connection, self).__init__(*args, **kwargs2) _mysql_exceptions.OperationalError: (2005, "Unknown MySQL server host 'dfgdfgdfg' (1)") root@host: ~ # python mysql.py Traceback (most recent call last): File "mysql.py", line 6, in ? db = "test") File "/usr/local/lib/python2.4/site-packages/MySQLdb/__init__.py", line 66, in Connect return Connection(*args, **kwargs) File "/usr/local/lib/python2.4/site-packages/MySQLdb/connections.py", line 134, in __init__ super(Connection, self).__init__(*args, **kwargs2) _mysql_exceptions.OperationalError: (1130, "Host 'nonexistenthost.nl' is not allowed to connect to this MySQL server") ------------------------------------------------------------------------ [2006-02-01 16:01:47] tony2001@php.net Here: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2005-11/0315.html you can find that this problem also happens with Python on FreeBSD (with the very same backtrace). So it's not PHP problem, but some FreeBSD issue. ------------------------------------------------------------------------ [2006-02-01 15:34:08] arnout at argeweb dot nl root@host: ~ $ host example.com example.com has address 192.0.34.166 top works fine ps aux works fine No segfaults there... ------------------------------------------------------------------------ [2006-02-01 12:33:42] tony2001@php.net Please try to run top, ps aux and host example.com. Do they work fine or segfault too? I'm asking because of this: http://lists.freebsd.org/pipermail/freebsd-bugs/2004-April/006201.html ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/36206 -- Edit this bug report at http://bugs.php.net/?id=36206&edit=1

« previous php.bugs (#92781) next »