#36206 [Opn->Bgs]: LDAP in nsswitch.conf causes segfault when resolving hostnames in PHP
| From: | tony2001@php.net | Date: | Wed, 01 Feb 2006 15:01:48 +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-92775@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:
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.
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2006-01-30 12:00:33] oersoep at gmail dot com
#0 0x00000000 in ?? ()
#1 0x292ff7a5 in ?? () from /usr/local/lib/nss_ldap.so.1
#2 0x2930a4c0 in ?? () from /usr/local/lib/nss_ldap.so.1
#3 0x2817d760 in ?? () from /libexec/ld-elf.so.1
#4 0x2817d5d8 in ?? () from /libexec/ld-elf.so.1
#5 0x292ff740 in ?? () from /usr/local/lib/nss_ldap.so.1
#6 0x28162730 in _rtld_error () from /libexec/ld-elf.so.1
#7 0x293086c9 in _fini () from /usr/local/lib/nss_ldap.so.1
#8 0x2816380b in find_symdef () from /libexec/ld-elf.so.1
#9 0x28163e6a in dlclose () from /libexec/ld-elf.so.1
#10 0x2845b53c in _nsdbtput () from /lib/libc.so.5
#11 0x2845aef0 in endhostent () from /lib/libc.so.5
#12 0x2845b5bb in _nsdbtput () from /lib/libc.so.5
#13 0x2847e1a5 in __cxa_finalize () from /lib/libc.so.5
#14 0x2847dec6 in exit () from /lib/libc.so.5
#15 0x08130cc5 in main ()
------------------------------------------------------------------------
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