php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46228 gethostbyname Segmentation fault on CLI when pspell is enabled
Submitted: 2008-10-04 17:15 UTC Modified: 2008-10-25 13:02 UTC
From: daniel at morante dot net Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.2.6 OS: FreeBSD 6.2-RELEASE-p11
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: daniel at morante dot net
New email:
PHP Version: OS:

 

 [2008-10-04 17:15 UTC] daniel at morante dot net
Description:
------------
gethostbyname() on CLI will cause "Segmentation fault: 11 (core dumped)' when pspell extension is enabled.

Reproduce code:
---------------
1) "test.php" Contains

<?php echo gethostbyname('www.google.com'); ?>

2) run "/usr/local/bin/php test.php"

Expected result:
----------------
74.125.45.103

Actual result:
--------------
74.125.45.103Segmentation fault: 11 (core dumped)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-04 17:50 UTC] felipe@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

I can't reproduce on FreeBSD 6.3
 [2008-10-05 00:19 UTC] daniel at morante dot net
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /lib/libz.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/lib/nss_winbind.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/nss_winbind.so.1
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x29319630 in ?? () from /usr/local/lib/nss_winbind.so.1
#2  0x2931e360 in winbindd_fd () from /usr/local/lib/nss_winbind.so.1
#3  0x28251558 in ?? () from /libexec/ld-elf.so.1
#4  0xbfbfeaf8 in ?? ()
#5  0x28232266 in _rtld_error () from /libexec/ld-elf.so.1
#6  0x2931cd5c in _fini () from /usr/local/lib/nss_winbind.so.1
#7  0x2824f558 in tls_dtv_generation () from /libexec/ld-elf.so.1
#8  0x28251558 in ?? () from /libexec/ld-elf.so.1
#9  0xbfbfeb08 in ?? ()
#10 0x282327b6 in elf_hash () from /libexec/ld-elf.so.1
#11 0x282350a0 in dlclose () from /libexec/ld-elf.so.1
#12 0x2853b59c in _nsdbtaddsrc () from /lib/libc.so.6
#13 0x2853b15f in endhostent () from /lib/libc.so.6
#14 0x2853b61c in _nsdbtaddsrc () from /lib/libc.so.6
#15 0x2855b30b in __cxa_finalize () from /lib/libc.so.6
#16 0x2855af46 in exit () from /lib/libc.so.6
#17 0x081aa80a in main ()
 [2008-10-25 13:02 UTC] jani@php.net
How is a conflict between some libraries a PHP bug? Not PHP bug bug.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 07:01:28 2025 UTC