|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-01-19 13:09 UTC] clive at darkarts dot co dot za
Description:
------------
segfault from within apache2, or also if run from the CLI.
Reproduce code:
---------------
<?php
phpinfo();
?>
Expected result:
----------------
The phpinfo output
Actual result:
--------------
it get's to the 'Apache Environment' section, and within there it gets up to 'SERVER_ADDR' which it displays.
tail snippet of html generated:
<tr><td class="e">SERVER_SOFTWARE </td><td class="v">Apache/2.2.0 (FreeBSD) mod_ssl/2.2.0 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.1.2 </td></tr>
<tr><td class="e">SERVER_NAME </td><td class="v">subzero2 </td></tr>
<tr><td class="e">SERVER_ADDR </td><td class="v">192.168.2.15
It then segfaults. apache2 log message:
[Thu Jan 19 13:56:48 2006] [notice] child pid 32499 exit signal Abort trap (6)
httpd in free(): error: junk pointer, too high to make sense
If run from the CLI it also seg faults, here is the tail of the command line output of the same:
_ENV["SSH_AUTH_SOCK"] => /tmp/ssh-YxlQmP5Url/agent.32515
_ENV["SHLVL"] => 2
_ENV["PWD"] => /home/users/clive
_ENV["OLDPWD"] => /home/users/clive
_ENV["_"] => /usr/local/bin/php
PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file: LICENSE
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact license@php.net.
zsh: segmentation fault (core dumped) php /usr/local/www/apache22/data/index.php
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 28 21:00:01 2025 UTC |
Yes, and I have said many times already that I am using CLI version too *WITHOUT APACHE*, but, I will give you the info in full again: ldd ./php ./php: libcrypt.so.3 => /lib/libcrypt.so.3 (0x2823a000) libm.so.4 => /lib/libm.so.4 (0x28252000) libxml2.so.5 => /usr/local/lib/libxml2.so.5 (0x28268000) libz.so.3 => /lib/libz.so.3 (0x28385000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28395000) libc.so.6 => /lib/libc.so.6 (0x28484000) ./php phpinfo.php <<*snip*>> report_memleaks => On => On report_zend_debug => Off => Off safe_mode => Off => Off safe_mode_exec_dir => /usr/local/php/bin => /usr/local/php/bin safe_mode_gid => Off => Off safe_mode_include_dir => no value => no value sendmail_from => no value => no value sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i serialize_precision => 100 => 100 short_open_tag => On => On SMTP => localhost => localhost smtp_port => 25 => 25 sql.safe_modephp in free(): error: junk pointer, too high to make sense zsh: abort (core dumped) ./php index.php gdb ./php php.core (gdb) bt #0 0x284c64b3 in kill () from /lib/libc.so.6 #1 0x284bb4f0 in raise () from /lib/libc.so.6 #2 0x28535c5c in abort () from /lib/libc.so.6 #3 0x284dccb3 in _UTF8_init () from /lib/libc.so.6 #4 0xbfbfe91e in ?? () #5 0x2853c653 in sys_nsig () from /lib/libc.so.6 #6 0x2853c553 in sys_nsig () from /lib/libc.so.6 #7 0x2853c670 in sys_nsig () from /lib/libc.so.6 #8 0x00000000 in ?? () #9 0x285464e4 in ?? () from /lib/libc.so.6 #10 0xbfbfb998 in ?? () #11 0x284dcce1 in _UTF8_init () from /lib/libc.so.6 #12 0x285464e4 in ?? () from /lib/libc.so.6 #13 0x0825d928 in _CurrentRuneLocale () Previous frame inner to this frame (corrupt stack?) and just for fun, it's a different segfault this time :(