Edit report at https://bugs.php.net/bug.php?id=61472&edit=1
ID: 61472
User updated by:jonathanbj at qq dot com
Reported by:jonathanbj at qq dot com
Summary:cannot use date function in mips64
Status: Open
Type: Bug
Package:Reproducible crash
Operating System: linux 2.6
PHP Version:5.4.0
Block user comment: N
Private report: N
New Comment:
(gdb) bt
#0 0x00e4ba38 in memcpy () at
../ports/sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h:195
#1 0x00012007ef18 in timelib_parse_tzfile (timezone=,
tzdb=)
at /home/ck/trunk/dongda/apps/php-5.4.0/ext/date/lib/parse_tz.c:124
#2 0x0001200540f0 in php_date_parse_tzfile (formal_tzname=0x55565496b0 "",
tzdb=0x120795ffe)
at /home/ck/trunk/dongda/apps/php-5.4.0/ext/date/php_date.c:831
#3 0x000120056c9c in get_timezone_info () at
/home/ck/trunk/dongda/apps/php-5.4.0/ext/date/php_date.c:877
#4 0x000120059964 in php_format_date (format=0x555614b0c0 "l",
format_len=1, ts=4839792638, localtime=1)
at /home/ck/trunk/dongda/apps/php-5.4.0/ext/date/php_date.c:1126
#5 0x00012005a40c in php_date (ht=1, return_value=0x5ab368,
return_value_ptr=,
this_ptr=, return_value_used=,
localtime=1)
at /home/ck/trunk/dongda/apps/php-5.4.0/ext/date/php_date.c:
#6 0x0001203a0bc0 in zend_do_fcall_common_helper_SPEC
(execute_data=0x579060)
at /home/ck/trunk/dongda/apps/php-5.4.0/Zend/zend_vm_execute.h:642
#7 0x0001203a8d0c in execute (op_array=)
at /home/ck/trunk/dongda/apps/php-5.4.0/Zend/zend_vm_execute.h:410
#8 0x000120369180 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /home/ck/trunk/dongda/apps/php-5.4.0/Zend/zend.c:1272
#9 0x0001202f92f4 in php_execute_script (primary_file=0xaec568)
at /home/ck/trunk/dongda/apps/php-5.4.0/main/main.c:2473
#10 0x00012043d328 in do_cli (argc=0, argv=0xaecbe8) at
/home/ck/trunk/dongda/apps/php-5.4.0/sapi/cli/php_cli.c:983
#11 0x00012043daa0 in main (argc=0, argv=0xaecbe8) at
/home/ck/trunk/dongda/apps/php-5.4.0/sapi/cli/php_cli.c:1356
(gdb)
Previous Comments:
----
[2012-03-22 12:31:48] jonathanbj at qq dot com
Description:
1) get the source of php 5.4.0 or 5.3.6:
./configure --host=mips64-unkown-linux
make
2) do the test
./php 3.php
Result with date()Segmentation fault (core dumped)
Test script:
---
--
Edit this bug report at https://bugs.php.net/bug.php?id=61472&edit=1