#40632 [NEW]: setcookie() with huge lifetime causes segfault or "zend_mm_heap corrupted"

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #40632 [NEW]: setcookie() with huge lifetime causes segfault or "zend_mm_heap corrupted"

    From: phpbugs at thequod dot de
    Operating system: Ubuntu Linux
    PHP version: 5CVS-2007-02-25 (CVS)
    PHP Bug Type: Reproducible crash
    Bug description: setcookie() with huge lifetime causes segfault or "zend_mm_heap corrupted"

    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 bug report at [url]http://bugs.php.net/?id=40632&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40632&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40632&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40632&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40632&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40632&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40632&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40632&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40632&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40632&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40632&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40632&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40632&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40632&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40632&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40632&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40632&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40632&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40632&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40632&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40632&r=mysqlcfg[/url]
    phpbugs at thequod dot de Guest

  2. Similar Questions and Discussions

    1. #40479 [NEW]: zend_mm_heap corrupted
      From: rrossi at maggioli dot it Operating system: Suse Linux 9.0 PHP version: 5.2.1 PHP Bug Type: Reproducible crash Bug...
    2. #40449 [NEW]: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"
      From: dg at artegic dot de Operating system: SunsOS 5.9 PHP version: 5.2.1 PHP Bug Type: Reproducible crash Bug description:...
    3. Upload huge file size: "The page cannot be displayed" browser error
      I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. ...
    4. Why Adobe Illustrator creates "huge" .eps files?
      Hello to all. I'm trying Adobe Illustrator CS.. i just draw two rectangles.. and i try to save it as an ".eps" file in order to include (after)...
    5. Huge "shmmax" & tiny "shared_memory_size"
      We are running Oracle 8 or Solaris 7. In the /etc/system I have shmsys:shminfo_shmmax=4294967295, which is the amount of memory we have. However...
  3. #2

    Default #40632 [Opn]: setcookie() with huge lifetime causes segfault or "zend_mm_heap corrupted"

    ID: 40632
    User updated by: phpbugs at thequod dot de
    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:

    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.


    Previous Comments:
    ------------------------------------------------------------------------

    [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 [url]http://bugs.php.net/?id=40632&edit=1[/url]
    phpbugs at thequod dot de Guest

  4. #3

    Default #40632 [Opn]: setcookie() causes segfault or "zend_mm_heap corrupted"

    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 [url]http://bugs.php.net/?id=40632&edit=1[/url]
    phpbugs at thequod dot de Guest

  5. #4

    Default #40632 [Opn->Csd]: setcookie() causes segfault or "zend_mm_heap corrupted"

    ID: 40632
    Updated by: [email]iliaa@php.net[/email]
    Reported By: phpbugs at thequod dot de
    -Status: Open
    +Status: Closed
    Bug Type: Reproducible crash
    Operating System: Ubuntu Linux
    PHP Version: 5CVS-2007-02-25 (CVS)
    New Comment:

    This bug has been fixed in CVS.

    Snapshots of the sources are packaged every three hours; this change
    will be in the next snapshot. You can grab the snapshot at
    [url]http://snaps.php.net/[/url].

    Thank you for the report, and for helping us make PHP better.




    Previous Comments:
    ------------------------------------------------------------------------

    [2007-02-25 23:59:43] phpbugs at thequod dot de

    changed "Summary"

    ------------------------------------------------------------------------

    [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 [url]http://bugs.php.net/?id=40632&edit=1[/url]
    iliaa@php.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139