#36206 [Bgs]: LDAP in nsswitch.conf causes segfault when resolving hostnames in PHP
| From: | arnout at argeweb dot nl | Date: | Wed, 01 Feb 2006 15:27:39 +0000 |
| Subject: | #36206 [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-92778@lists.php.net to get a copy of this message | ||
ID: 36206
User updated by: arnout at argeweb dot nl
Reported By: arnout at argeweb dot nl
Status: Bogus
Bug Type: CGI related
Operating System: freeBSD 5.4
PHP Version: 5.1.2
New Comment:
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")
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2006-01-30 12:25:00] arnout at argeweb dot nl
This just in:
The script does not terminate. It ends like it's supposed to.
The segfault is put out when the scripts terminates. I don't know if
it's a child process that dies, or that the segfault resides in a
buffer untill termination or something.
root@host: / # echo "<? echo gethostbyname( 'php.net' ); ?>" | php
64.246.30.37Segmentation fault (core dumped)
I seem to have judged to fast before. But still: I can't surpress this
error. It's ugly!
------------------------------------------------------------------------
[2006-01-30 12:01:41] arnout at argeweb dot nl
status change
------------------------------------------------------------------------
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