ID: 40632
User updated by: phpbugs at thequod dot de
-Summary: setcookie() with huge lifetime causes segfault or
"zend_mm_heap corrupted"
Reported By: phpbugs at thequod dot de
Status: Open
Bug Type: Reproducible crash
Operating System: Ubuntu Linux
PHP Version: 5CVS-2007-02-25 (CVS)
New Comment:
changed "Summary"
Previous Comments:
------------------------------------------------------------------------
[2007-02-25 23:57:29] phpbugs at thequod dot de
This does not seem to be related to the lifetime alone
(which is time()+10 years), but I can reproduce it with:
setcookie( 'foo', '33_9Bm6MWngjfF745MSCgoqREt3umW7ttC6',
time() )
, too.
OTOH
setcookie( 'foo', 'bar', time() );
or
setcookie( 'foo', '33_9Bm6MWngjfF745MSCgoqREt3umW7ttC6' );
do not segfault.
------------------------------------------------------------------------
[2007-02-25 23:46:34] phpbugs at thequod dot de
Description:
------------
We use a quite huge cookie lifetime in our application
(b2evolution) which causes a segmentation fault with
current CVS.
When I rename the cookie name and value, it
becomes "zend_mm_heap corrupted" instead.
Reproduce code:
---------------
# "zend_mm_heap corrupted":
setcookie( 'foo', 'bar', 1487806696, '/blogs/', '.b2cvs18.local' );
# "Segmentation fault":
setcookie( 'cookieb2evosession', '33_9Bm6MWngjfF745MSCgoqREt3umW7ttC6',
1487806696, '/blogs/', '.b2cvs18.local' );
Expected result:
----------------
Nothing.
Actual result:
--------------
zend_mm_heap corrupted
or
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40632&edit=1