php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22993 Bug #21131 but with Bus Error - Sparc64
Submitted: 2003-03-31 16:32 UTC Modified: 2003-04-06 07:01 UTC
From: mlm at mm-network dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 4.3.2RC1 OS: NetBSD 1.6
Private report: No CVE-ID: None
 [2003-03-31 16:32 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-06 07:01 UTC] sniper@php.net
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.


 [2003-04-07 08:08 UTC] pengyu at crypto dot ee dot ncku dot edu dot tw
I try the version of
http://snaps.php.net/php4-200304070530.tar.gz
The same error still occurs.
I report the Bug as Bug #23085
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC