ID:               22992
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mlm at mm-network dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: NetBSD 1.6
 PHP Version:      4.3.2RC1
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

This should have already been fixed in the stable snapshot.  Please
give it a try.


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

[2003-03-31 16:23:57] mlm at mm-network dot com

I have been fighting to get ANY release of PHP4 to compile and work
properly on my Ultra10 Sparc64 platform.  So,
I have decided to debug the latest release.  I am willing to be a
testbed for the developers and run whatever tests you want.  

I downloaded 4.3.2RC1 and compiled it on NetBSD 1.6 sparc64 
with the following config line:

./configure --enable-debug --with-apxs
--with-session=shared,/usr/pkg/lib/php/20020429 
--with-gettext=shared,/usr/pkg/lib/php/20020429
--with-pcre=shared,/usr/pkg/lib/php/20020429

When I ran make test, one of the tests that failed produced the
following output:

Bus error - core dumped
FAIL File/Stream functions [ext/standard/tests/file/002.phpt]

I did the same thing using gdb and produced the followng backtrace:

squirrel# gdb
GNU gdb 5.0nb1
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "sparc64--netbsd".
(gdb) file sapi/cli/php
Reading symbols from sapi/cli/php...done.
(gdb) r ext/standard/tests/file/002.phpt
Starting program: /usr/home/mlm/php-4.3.2RC1/sapi/cli/php
ext/standard/tests/fil
e/002.phpt
--TEST--
File/Stream functions
--POST--
--GET--
--FILE--

Program received signal SIGBUS, Bus error.
0x278478 in php_stdiop_cast (stream=0x450c40, castas=1,
ret=0xffffffffffffaf74)
    at /usr/home/mlm/php-4.3.2RC1/main/streams.c:1535
1535                                    *ret = (void*)fd;
(gdb) bt
#0  0x278478 in php_stdiop_cast (stream=0x450c40, castas=1, 
    ret=0xffffffffffffaf74) at
/usr/home/mlm/php-4.3.2RC1/main/streams.c:1535
#1  0x279a34 in _php_stream_cast (stream=0x450c40, castas=1, 
    ret=0xffffffffffffaf74, show_err=0)
    at /usr/home/mlm/php-4.3.2RC1/main/streams.c:2041
#2  0x276928 in _php_stream_copy_to_mem (src=0x450c40,
buf=0xffffffffffffb0a8, 
    maxlen=0, persistent=0, __php_stream_call_depth=0, 
    __zend_filename=0x2f07b8
"/usr/home/mlm/php-4.3.2RC1/ext/standard/file.c", 
    __zend_lineno=432, __zend_orig_filename=0x0, __zend_orig_lineno=0)
    at /usr/home/mlm/php-4.3.2RC1/main/streams.c:1096
#3  0x19d85c in zif_file_get_contents (ht=1, return_value=0x4b41c0, 
    this_ptr=0x0, return_value_used=1)
    at /usr/home/mlm/php-4.3.2RC1/ext/standard/file.c:432
#4  0x2daabc in execute (op_array=0x4b7040)
    at /usr/home/mlm/php-4.3.2RC1/Zend/zend_execute.c:1606
#5  0x2be5dc in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
    at /usr/home/mlm/php-4.3.2RC1/Zend/zend.c:864
#6  0x261a14 in php_execute_script (primary_file=0xffffffffffffd950)
    at /usr/home/mlm/php-4.3.2RC1/main/main.c:1636
#7  0x2e3f00 in main (argc=2, argv=0xffffffffffffdae8)
    at /usr/home/mlm/php-4.3.2RC1/sapi/cli/php_cli.c:753
#8  0x12429c in ___start ()
(gdb) exit

Tell me what to do next,

Thank You,
Mike Marshall



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


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

Reply via email to