| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2005-10-20 11:17 UTC] tony2001@php.net
  [2005-10-28 01:00 UTC] php-bugs at lists dot php dot net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 03:00:01 2025 UTC | 
Description: ------------ PHP segfaults when trying to resolve a hostname internally. We encountered this with mysql_connect, gethostbyname, socket_connect in: - PHP 5.0.5 (cgi-fcgi AND cli) - PHP 4.4.0 All when run from shell. Reproduce code: --------------- <?php echo gethostbyname("www.google.com"); ?> Expected result: ---------------- 64.233.183.99 Actual result: -------------- Segmentation fault (core dumped) gdb backtrace: (gdb) bt #0 0x00000000 in ?? () #1 0x2955a5b9 in ?? () from /usr/local/lib/nss_ldap.so.1 #2 0x29565f40 in ?? () from /usr/local/lib/nss_ldap.so.1 #3 0x2819c760 in ?? () from /libexec/ld-elf.so.1 #4 0x2819c5d8 in ?? () from /libexec/ld-elf.so.1 #5 0x2955a554 in ?? () from /usr/local/lib/nss_ldap.so.1 #6 0x28181730 in _rtld_error () from /libexec/ld-elf.so.1 #7 0x29563d8d in _fini () from /usr/local/lib/nss_ldap.so.1 #8 0x2818280b in find_symdef () from /libexec/ld-elf.so.1 #9 0x28182e6a in dlclose () from /libexec/ld-elf.so.1 #10 0x2848953c in _nsdbtput () from /lib/libc.so.5 #11 0x28488ef0 in endhostent () from /lib/libc.so.5 #12 0x284895bb in _nsdbtput () from /lib/libc.so.5 #13 0x284ac1a5 in __cxa_finalize () from /lib/libc.so.5 #14 0x284abec6 in exit () from /lib/libc.so.5 #15 0x0815017b in main ()