#35751 [NEW]: using date with a timestamp makes httpd segfault
From: lehmann at ans-netz dot de
Operating system: FreeBSD 6.0/alpha
PHP version: 5.1.1
PHP Bug Type: Date/time related
Bug description: using date with a timestamp makes httpd segfault
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 bug report at http://bugs.php.net/?id=35751&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35751&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35751&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35751&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35751&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35751&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35751&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35751&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35751&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35751&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35751&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35751&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35751&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35751&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35751&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35751&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35751&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35751&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35751&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35751&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35751&r=mysqlcfg
Thread (18 messages)
- lehmann at ans-netz dot de
- lehmann at ans-netz dot de#35751 [Opn]: using date with a timestamp makes httpd segfault
- derick@php.net#35751 [Opn->Fbk]: using date with a timestamp makes httpd segfault
- lehmann at ans-netz dot de#35751 [Fbk->Opn]: using date with a timestamp makes httpd segfault
- derick@php.net#35751 [Opn->Fbk]: using date with a timestamp makes httpd segfault
- lehmann at ans-netz dot de#35751 [Fbk->Opn]: using date with a timestamp makes httpd segfault
- sniper@php.net#35751 [Opn->Fbk]: using date with a timestamp makes httpd segfault
- lehmann at ans-netz dot de#35751 [Fbk->Opn]: using date with a timestamp makes httpd segfault
- tony2001@php.net#35751 [Opn->Fbk]: using date with a timestamp makes httpd segfault
- lehmann at ans-netz dot de#35751 [Fbk->Opn]: using date with a timestamp makes httpd segfault
- tony2001@php.net#35751 [Opn->Fbk]: using date with a timestamp makes httpd segfault
- pablomh at gmail dot com#35751 [Com]: using date with a timestamp makes httpd segfault
- derick@php.net#35751 [Fbk]: using date with a timestamp makes httpd segfault
- pablomh at gmail dot com#35751 [Com]: using date with a timestamp makes httpd segfault
- derick@php.net#35751 [Fbk]: using date with a timestamp makes httpd segfault
- lehmann at ans-netz dot de#35751 [Fbk->Opn]: using date with a timestamp makes httpd segfault
- tony2001@php.net#35751 [Opn->Asn]: using date with a timestamp makes httpd segfault
- derick@php.net#35751 [Asn->Csd]: using date with a timestamp makes httpd segfault