From: [EMAIL PROTECTED]
Operating system: Debian Linux/Sparc
PHP version: 6CVS-2007-01-22 (CVS)
PHP Bug Type: *General Issues
Bug description: PHP crashes on start on Sparc
Description:
------------
Just php -v on Sparc crashed php (this is HEAD).
gcc 4.1
Reproduce code:
---------------
php -v
Expected result:
----------------
no crash
Actual result:
--------------
[EMAIL PROTECTED]:~/dev/6$ gdb ./php
GNU gdb 6.4.90-debian
Copyright (C) 2006 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 "sparc-linux-gnu"...Using host libthread_db
library "/lib/libthread_db.so.1".
(gdb) run -v
Starting program: /home/andrey/dev/php6.0-200701212330/php -v
warning: Lowest section in /usr/lib/libicudata.so.36 is .hash at 000000b4
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 3856)]
Program received signal SIGBUS, Bus error.
[Switching to Thread 16384 (LWP 3856)]
0x00315678 in _zend_mm_alloc_int (heap=0x507588, size=5,
__zend_filename=0x4c9b38 "/home/andrey/dev/6/Zend/zend_operators.c",
__zend_lineno=2392, __zend_orig_filename=0x0,
__zend_orig_lineno=0) at /home/andrey/dev/6/Zend/zend_alloc.c:1499
1499 ZEND_MM_SET_DEBUG_INFO(best_fit, size, 1, 1);
(gdb) bt
#0 0x00315678 in _zend_mm_alloc_int (heap=0x507588, size=5,
__zend_filename=0x4c9b38 "/home/andrey/dev/6/Zend/zend_operators.c",
__zend_lineno=2392, __zend_orig_filename=0x0,
__zend_orig_lineno=0) at /home/andrey/dev/6/Zend/zend_alloc.c:1499
#1 0x00316f78 in _emalloc (size=5, __zend_filename=0x4c9b38
"/home/andrey/dev/6/Zend/zend_operators.c", __zend_lineno=2392,
__zend_orig_filename=0x0, __zend_orig_lineno=0)
at /home/andrey/dev/6/Zend/zend_alloc.c:1864
#2 0x0034f7d0 in zend_str_tolower_dup (source=0x50e108 "TRUE", length=4)
at /home/andrey/dev/6/Zend/zend_operators.c:2392
#3 0x0034fd3c in zend_u_str_case_fold (type=6 '\006', source=
/build/buildd/gdb-6.4.90.dfsg/gdb/regcache.c:175: internal-error:
register_size: Assertion `regnum >= 0 && regnum < (NUM_REGS +
NUM_PSEUDO_REGS)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
/build/buildd/gdb-6.4.90.dfsg/gdb/regcache.c:175: internal-error:
register_size: Assertion `regnum >= 0 && regnum < (NUM_REGS +
NUM_PSEUDO_REGS)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
) at /home/andrey/dev/6/Zend/zend_operators.c:2479
#4 0x003325ec in zend_u_register_constant (type=6 '\006', c=0xffca35f8,
tsrm_ls=0x506060) at /home/andrey/dev/6/Zend/zend_constants.c:383
#5 0x003329e0 in zend_register_constant (c=0xffca35f8, tsrm_ls=0x506060)
at /home/andrey/dev/6/Zend/zend_constants.c:425
#6 0x00331468 in zend_register_standard_constants (tsrm_ls=0x506060) at
/home/andrey/dev/6/Zend/zend_constants.c:143
#7 0x00357378 in zend_startup (utility_functions=0xffca3724,
extensions=0x0, start_builtin_functions=1) at
/home/andrey/dev/6/Zend/zend.c:1105
#8 0x002a61b0 in php_module_startup (sf=0x503b84, additional_modules=0x0,
num_additional_modules=0) at /home/andrey/dev/6/main/main.c:1598
#9 0x0042d07c in main (argc=2, argv=0xffca3a84) at
/home/andrey/dev/6/sapi/cli/php_cli.c:709
--
Edit bug report at http://bugs.php.net/?id=40193&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40193&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40193&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40193&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40193&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40193&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40193&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40193&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40193&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40193&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40193&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40193&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40193&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40193&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40193&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40193&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40193&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40193&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40193&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40193&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40193&r=mysqlcfg