ID:               36084
 User updated by:  clive at darkarts dot co dot za
 Reported By:      clive at darkarts dot co dot za
-Status:           Feedback
+Status:           Open
 Bug Type:         Apache2 related
 Operating System: FreeBSD
 PHP Version:      5.1.2
 New Comment:

after running it enough times i reproduced the segfault with --enable
debug, backtrace as follows:

(gdb) bt
#0  0x289a3bf0 in ?? ()
#1  0x2853735f in __cxa_finalize () from /lib/libc.so.6
#2  0x28536f9a in exit () from /lib/libc.so.6
#3  0x081d36c1 in main (argc=2, argv=0xbfbfe8a8) at
/usr/ports/lang/php5/work/php-5.1.2/sapi/cli/php_cli.c:1243


Previous Comments:
------------------------------------------------------------------------

[2006-01-19 13:56:52] [EMAIL PROTECTED]

And what was the full configure line used to configure PHP?

------------------------------------------------------------------------

[2006-01-19 13:56:22] [EMAIL PROTECTED]

Does it crash with something more stable than Apache 2.2 ?
Like 2.0 or 1.3.x ?


------------------------------------------------------------------------

[2006-01-19 13:49:42] clive at darkarts dot co dot za

backtrace is not possible.

when configured with "--enable-debug" it no longer segfaults.  It only
segfaults when built without this option

------------------------------------------------------------------------

[2006-01-19 13:19:55] [EMAIL PROTECTED]

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.



------------------------------------------------------------------------

[2006-01-19 13:09:03] 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 [EMAIL PROTECTED]
zsh: segmentation fault (core dumped)  php
/usr/local/www/apache22/data/index.php





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36084&edit=1

Reply via email to