ID: 35751
Updated by: derick@php.net
Reported By: lehmann at ans-netz dot de
-Status: Open
+Status: Feedback
Bug Type: Date/time related
Operating System: FreeBSD 6.0/alpha
PHP Version: 5.1.1
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
I can not reproduce this. Can you generate a *gdb* backtrace?
Previous Comments:
------------------------------------------------------------------------
[2005-12-20 19:14:45] lehmann at ans-netz dot de
i meant FreeBSD 6.0 as said in the header, _not_ 5 as stated in the
body.
------------------------------------------------------------------------
[2005-12-20 19:11:13] lehmann at ans-netz dot de
Description:
------------
Using date() in combination with a timestamp makes my httpd segfault on
FreeBSD 5.0/alpha - it worked with PHP 5.0.5 like a charm.
Using just date() with a format string, but w/o a timestamp works w/o
problems.
Reproduce code:
---------------
<?echo date('Y',10000)?>
Expected result:
----------------
it should work?
Actual result:
--------------
root@dill php5> ktrace httpd -X
pid 30132 (httpd): unaligned access: va=0x11ffc72c pc=0x160a59720
ra=0x160a59e44 op=stq
Segmentation fault
Exit 139
root@dill php5>
last part of the ktrace:
27732 httpd RET read 487/0x1e7
27732 httpd CALL stat(0x1605da495,0x11ffe658)
27732 httpd NAMI "/etc/nsswitch.conf"
27732 httpd RET stat 0
27732 httpd CALL stat(0x1605da495,0x11ffe658)
27732 httpd Events dropped.
27732 httpd RET stat 0
27732 httpd Events dropped.
27732 httpd CALL open(0x1202e43c0,0,0x1b6)
27732 httpd Events dropped.
27732 httpd RET lstat 0
27732 httpd Events dropped.
27732 httpd RET open 23/0x17
27732 httpd Events dropped.
27732 httpd RET open 23/0x17
27732 httpd Events dropped.
27732 httpd RET stat 0
27732 httpd Events dropped.
27732 httpd RET lstat 0
27732 httpd Events dropped.
27732 httpd RET lstat 0
27732 httpd Events dropped.
27732 httpd RET lstat 0
27732 httpd Events dropped.
27732 httpd RET lstat 0
27732 httpd Events dropped.
27732 httpd CALL gettimeofday(0x11ffc548,0)
root@dill php5>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35751&edit=1