#22993 [NEW]: Bug #21131 but with Bus Error - Sparc64

From: Date: Mon, 31 Mar 2003 22:32:45 +0000
Subject: #22993 [NEW]: Bug #21131 but with Bus Error - Sparc64
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-36858@lists.php.net to get a copy of this message
From: mlm at mm-network dot com Operating system: NetBSD 1.6 PHP version: 4.3.2RC1 PHP Bug Type: Reproducible crash Bug description: Bug #21131 but with Bus Error - Sparc64 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 bug report at http://bugs.php.net/?id=22993&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22993&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22993&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22993&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22993&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22993&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22993&r=support Expected behavior: http://bugs.php.net/fix.php?id=22993&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22993&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22993&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22993&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22993&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22993&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22993&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22993&r=gnused

« previous php.bugs (#36858) next »