#22993 [Fbk->NoF]: Bug #21131 but with Bus Error - Sparc64
| From: | sniper@php.net | Date: | Sun, 06 Apr 2003 12:01:33 +0000 |
| Subject: | #22993 [Fbk->NoF]: Bug #21131 but with Bus Error - Sparc64 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37212@lists.php.net to get a copy of this message | ||
ID: 22993
Updated by: sniper@php.net
Reported By: mlm at mm-network dot com
-Status: Feedback
+Status: No Feedback
Bug Type: Reproducible crash
Operating System: NetBSD 1.6
PHP Version: 4.3.2RC1
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2003-03-31 16:59:25] wez@php.net
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
------------------------------------------------------------------------
[2003-03-31 16:32:45] mlm at mm-network dot com
What I did:
Compiled 4.3.2RC1 with the following 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
Ran make test and one of the Bus Errors reported was the
following:
Bus error - core dumped
FAIL Bug #21131: fopen($filename, "a+") has broken position
[ext/standard/tests/
file/bug21131.phpt]
So, I ran gdb and got:
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/bug21131.phpt
Starting program: /usr/home/mlm/php-4.3.2RC1/sapi/cli/php
ext/standard/tests/fil
e/bug21131.phpt
--TEST--
Bug #21131: fopen($filename, "a+") has broken position
--FILE--
Program received signal SIGBUS, Bus error.
0x278478 in php_stdiop_cast (stream=0x450a40, castas=1,
ret=0xffffffffffff8e2c)
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=0x450a40, castas=1,
ret=0xffffffffffff8e2c) at
/usr/home/mlm/php-4.3.2RC1/main/streams.c:1535
#1 0x279a34 in _php_stream_cast (stream=0x450a40, castas=1,
ret=0xffffffffffff8e2c, show_err=0)
at /usr/home/mlm/php-4.3.2RC1/main/streams.c:2041
#2 0x2764f0 in _php_stream_passthru (stream=0x450a40,
__php_stream_call_depth=0,
__zend_filename=0x2f07b8
"/usr/home/mlm/php-4.3.2RC1/ext/standard/file.c",
__zend_lineno=1825, __zend_orig_filename=0x0,
__zend_orig_lineno=0)
at /usr/home/mlm/php-4.3.2RC1/main/streams.c:1031
#3 0x1a3eb0 in zif_fpassthru (ht=1, return_value=0x4b41c0,
this_ptr=0x0,
return_value_used=0) at
/usr/home/mlm/php-4.3.2RC1/ext/standard/file.c:1825
#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=0xffffffffffffd940)
at /usr/home/mlm/php-4.3.2RC1/main/main.c:1636
#7 0x2e3f00 in main (argc=2, argv=0xffffffffffffdad8)
at /usr/home/mlm/php-4.3.2RC1/sapi/cli/php_cli.c:753
#8 0x12429c in ___start ()
(gdb) quit
What do I do next?
Mike Marshall
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22993&edit=1