#40449 [NEW]: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"

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

  1. #1

    Default #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: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"

    Description:
    ------------
    Script produces error message: "zend_mm_heap corrupted"


    Configure Command => './configure' '--disable-all' '--
    disable-cgi' '--disable-ipv6' '--enable-static' '--enable-
    shared' '--enable-thread-safety' '--enable-mbstring' '--
    enable-mbregex' '--with-pcre-regex' '--with-zlib' '--with-
    iconv' '--enable-libxml' '--enable-xml' '--with-libxml-dir=/
    usr/local/lib' '--with-tidy' '--enable-zend-multibyte' '--
    with-curlwrappers' '--with-dom' '--with-curl' '--without-
    sqlite' '--without-pdo-sqlite' '--with-mysql=/usr/local/
    mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config'


    tidy
    Extension Version => 2.0 ($Id: tidy.c,v 1.66.2.8.2.21
    2007/01/23 19:23:29 nlopess Exp $)
    tidy.clean_output => no value => no value
    tidy.default_config => no value => no value


    Reproduce code:
    ---------------
    <?php
    ob_start();
    ?>
    <html>a html document</html>
    <?
    $html = ob_get_clean();
    $config = array(
    'indent' => true,
    'output-xhtml' => true,
    'wrap' => 200);
    $tidy = new tidy;
    $tidy->parseString($html, $config, 'utf8');
    $tidy->cleanRepair();
    echo $tidy;
    ?>

    Actual result:
    --------------
    Sorry - no GDB backtrace on this machine...


    --
    Edit bug report at [url]http://bugs.php.net/?id=40449&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40449&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40449&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40449&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40449&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40449&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40449&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40449&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40449&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40449&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40449&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40449&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40449&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40449&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40449&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40449&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40449&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40449&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40449&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40449&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40449&r=mysqlcfg[/url]
    dg at artegic 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. #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...
    3. A (dirty) solution to the "corrupted database" issue
      Hi, I just wanted to mention I found a quick and dirty solution for the issue that some of you may have met when: - InDesign quits with an error...
    4. "viewstate is invalid for this page and might be corrupted" - why does worker process recycling cause this?
      Hi There, I have posted something previously regarding this issue, but I think I have some more concise questions to ask, and would like to get...
    5. "Start" "Program" "Menu" list is empty
      For what ever reason my list of installed programs in my "Start" "Programs" menu is empty. Anyone know how to restore the list. Thanks for your...
  3. #2

    Default #40449 [Opn->Fbk]: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"

    ID: 40449
    Updated by: [email]tony2001@php.net[/email]
    Reported By: dg at artegic dot de
    -Status: Open
    +Status: Feedback
    Bug Type: Reproducible crash
    Operating System: SunsOS 5.9
    PHP Version: 5.2.1
    New Comment:

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]




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

    [2007-02-12 18:10:53] dg at artegic dot de

    Description:
    ------------
    Script produces error message: "zend_mm_heap corrupted"


    Configure Command => './configure' '--disable-all' '--
    disable-cgi' '--disable-ipv6' '--enable-static' '--enable-
    shared' '--enable-thread-safety' '--enable-mbstring' '--
    enable-mbregex' '--with-pcre-regex' '--with-zlib' '--with-
    iconv' '--enable-libxml' '--enable-xml' '--with-libxml-dir=/
    usr/local/lib' '--with-tidy' '--enable-zend-multibyte' '--
    with-curlwrappers' '--with-dom' '--with-curl' '--without-
    sqlite' '--without-pdo-sqlite' '--with-mysql=/usr/local/
    mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config'


    tidy
    Extension Version => 2.0 ($Id: tidy.c,v 1.66.2.8.2.21
    2007/01/23 19:23:29 nlopess Exp $)
    tidy.clean_output => no value => no value
    tidy.default_config => no value => no value


    Reproduce code:
    ---------------
    <?php
    ob_start();
    ?>
    <html>a html document</html>
    <?
    $html = ob_get_clean();
    $config = array(
    'indent' => true,
    'output-xhtml' => true,
    'wrap' => 200);
    $tidy = new tidy;
    $tidy->parseString($html, $config, 'utf8');
    $tidy->cleanRepair();
    echo $tidy;
    ?>

    Actual result:
    --------------
    Sorry - no GDB backtrace on this machine...



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40449&edit=1[/url]
    tony2001@php.net Guest

  4. #3

    Default #40449 [Fbk->Opn]: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"

    ID: 40449
    User updated by: dg at artegic dot de
    Reported By: dg at artegic dot de
    -Status: Feedback
    +Status: Open
    Bug Type: Reproducible crash
    Operating System: SunsOS 5.9
    PHP Version: 5.2.1
    New Comment:

    Tried the CVS snapshot PHP 5.2.2-dev 200702121730 - same
    result...


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

    [2007-02-12 18:15:14] [email]tony2001@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



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

    [2007-02-12 18:10:53] dg at artegic dot de

    Description:
    ------------
    Script produces error message: "zend_mm_heap corrupted"


    Configure Command => './configure' '--disable-all' '--
    disable-cgi' '--disable-ipv6' '--enable-static' '--enable-
    shared' '--enable-thread-safety' '--enable-mbstring' '--
    enable-mbregex' '--with-pcre-regex' '--with-zlib' '--with-
    iconv' '--enable-libxml' '--enable-xml' '--with-libxml-dir=/
    usr/local/lib' '--with-tidy' '--enable-zend-multibyte' '--
    with-curlwrappers' '--with-dom' '--with-curl' '--without-
    sqlite' '--without-pdo-sqlite' '--with-mysql=/usr/local/
    mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config'


    tidy
    Extension Version => 2.0 ($Id: tidy.c,v 1.66.2.8.2.21
    2007/01/23 19:23:29 nlopess Exp $)
    tidy.clean_output => no value => no value
    tidy.default_config => no value => no value


    Reproduce code:
    ---------------
    <?php
    ob_start();
    ?>
    <html>a html document</html>
    <?
    $html = ob_get_clean();
    $config = array(
    'indent' => true,
    'output-xhtml' => true,
    'wrap' => 200);
    $tidy = new tidy;
    $tidy->parseString($html, $config, 'utf8');
    $tidy->cleanRepair();
    echo $tidy;
    ?>

    Actual result:
    --------------
    Sorry - no GDB backtrace on this machine...



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40449&edit=1[/url]
    dg at artegic dot de Guest

  5. #4

    Default #40449 [Opn->Fbk]: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"

    ID: 40449
    Updated by: [email]tony2001@php.net[/email]
    Reported By: dg at artegic dot de
    -Status: Open
    +Status: Feedback
    Bug Type: Reproducible crash
    Operating System: SunsOS 5.9
    PHP Version: 5.2.1
    New Comment:

    Works perfectly fine on Linux.


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

    [2007-02-12 19:17:33] dg at artegic dot de

    Tried the CVS snapshot PHP 5.2.2-dev 200702121730 - same
    result...

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

    [2007-02-12 18:15:14] [email]tony2001@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



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

    [2007-02-12 18:10:53] dg at artegic dot de

    Description:
    ------------
    Script produces error message: "zend_mm_heap corrupted"


    Configure Command => './configure' '--disable-all' '--
    disable-cgi' '--disable-ipv6' '--enable-static' '--enable-
    shared' '--enable-thread-safety' '--enable-mbstring' '--
    enable-mbregex' '--with-pcre-regex' '--with-zlib' '--with-
    iconv' '--enable-libxml' '--enable-xml' '--with-libxml-dir=/
    usr/local/lib' '--with-tidy' '--enable-zend-multibyte' '--
    with-curlwrappers' '--with-dom' '--with-curl' '--without-
    sqlite' '--without-pdo-sqlite' '--with-mysql=/usr/local/
    mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config'


    tidy
    Extension Version => 2.0 ($Id: tidy.c,v 1.66.2.8.2.21
    2007/01/23 19:23:29 nlopess Exp $)
    tidy.clean_output => no value => no value
    tidy.default_config => no value => no value


    Reproduce code:
    ---------------
    <?php
    ob_start();
    ?>
    <html>a html document</html>
    <?
    $html = ob_get_clean();
    $config = array(
    'indent' => true,
    'output-xhtml' => true,
    'wrap' => 200);
    $tidy = new tidy;
    $tidy->parseString($html, $config, 'utf8');
    $tidy->cleanRepair();
    echo $tidy;
    ?>

    Actual result:
    --------------
    Sorry - no GDB backtrace on this machine...



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40449&edit=1[/url]
    tony2001@php.net Guest

  6. #5

    Default #40449 [Fbk]: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"

    ID: 40449
    Updated by: [email]nlopess@php.net[/email]
    Reported By: dg at artegic dot de
    Status: Feedback
    Bug Type: Reproducible crash
    Operating System: SunsOS 5.9
    PHP Version: 5.2.1
    New Comment:

    can you please try with libtidy from cvs
    ([url]http://sf.net/cvs/?group_id=27659[/url]) please? libtidy uses php emalloc
    calls, so it is probable that the error is in tidy itself.
    (I couldn't try myself yet, because my other pc is not on-line..)


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

    [2007-02-12 19:34:03] [email]tony2001@php.net[/email]

    Works perfectly fine on Linux.

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

    [2007-02-12 19:17:33] dg at artegic dot de

    Tried the CVS snapshot PHP 5.2.2-dev 200702121730 - same
    result...

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

    [2007-02-12 18:15:14] [email]tony2001@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



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

    [2007-02-12 18:10:53] dg at artegic dot de

    Description:
    ------------
    Script produces error message: "zend_mm_heap corrupted"


    Configure Command => './configure' '--disable-all' '--
    disable-cgi' '--disable-ipv6' '--enable-static' '--enable-
    shared' '--enable-thread-safety' '--enable-mbstring' '--
    enable-mbregex' '--with-pcre-regex' '--with-zlib' '--with-
    iconv' '--enable-libxml' '--enable-xml' '--with-libxml-dir=/
    usr/local/lib' '--with-tidy' '--enable-zend-multibyte' '--
    with-curlwrappers' '--with-dom' '--with-curl' '--without-
    sqlite' '--without-pdo-sqlite' '--with-mysql=/usr/local/
    mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config'


    tidy
    Extension Version => 2.0 ($Id: tidy.c,v 1.66.2.8.2.21
    2007/01/23 19:23:29 nlopess Exp $)
    tidy.clean_output => no value => no value
    tidy.default_config => no value => no value


    Reproduce code:
    ---------------
    <?php
    ob_start();
    ?>
    <html>a html document</html>
    <?
    $html = ob_get_clean();
    $config = array(
    'indent' => true,
    'output-xhtml' => true,
    'wrap' => 200);
    $tidy = new tidy;
    $tidy->parseString($html, $config, 'utf8');
    $tidy->cleanRepair();
    echo $tidy;
    ?>

    Actual result:
    --------------
    Sorry - no GDB backtrace on this machine...



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40449&edit=1[/url]
    nlopess@php.net Guest

  7. #6

    Default #40449 [Fbk]: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"

    ID: 40449
    Updated by: [email]tony2001@php.net[/email]
    Reported By: dg at artegic dot de
    Status: Feedback
    Bug Type: Reproducible crash
    Operating System: SunsOS 5.9
    PHP Version: 5.2.1
    New Comment:

    Also cannot reproduce on Solaris 8 (using libtidy from CVS).


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

    [2007-02-12 23:10:54] [email]nlopess@php.net[/email]

    can you please try with libtidy from cvs
    ([url]http://sf.net/cvs/?group_id=27659[/url]) please? libtidy uses php emalloc
    calls, so it is probable that the error is in tidy itself.
    (I couldn't try myself yet, because my other pc is not on-line..)

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

    [2007-02-12 19:34:03] [email]tony2001@php.net[/email]

    Works perfectly fine on Linux.

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

    [2007-02-12 19:17:33] dg at artegic dot de

    Tried the CVS snapshot PHP 5.2.2-dev 200702121730 - same
    result...

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

    [2007-02-12 18:15:14] [email]tony2001@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



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

    [2007-02-12 18:10:53] dg at artegic dot de

    Description:
    ------------
    Script produces error message: "zend_mm_heap corrupted"


    Configure Command => './configure' '--disable-all' '--
    disable-cgi' '--disable-ipv6' '--enable-static' '--enable-
    shared' '--enable-thread-safety' '--enable-mbstring' '--
    enable-mbregex' '--with-pcre-regex' '--with-zlib' '--with-
    iconv' '--enable-libxml' '--enable-xml' '--with-libxml-dir=/
    usr/local/lib' '--with-tidy' '--enable-zend-multibyte' '--
    with-curlwrappers' '--with-dom' '--with-curl' '--without-
    sqlite' '--without-pdo-sqlite' '--with-mysql=/usr/local/
    mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config'


    tidy
    Extension Version => 2.0 ($Id: tidy.c,v 1.66.2.8.2.21
    2007/01/23 19:23:29 nlopess Exp $)
    tidy.clean_output => no value => no value
    tidy.default_config => no value => no value


    Reproduce code:
    ---------------
    <?php
    ob_start();
    ?>
    <html>a html document</html>
    <?
    $html = ob_get_clean();
    $config = array(
    'indent' => true,
    'output-xhtml' => true,
    'wrap' => 200);
    $tidy = new tidy;
    $tidy->parseString($html, $config, 'utf8');
    $tidy->cleanRepair();
    echo $tidy;
    ?>

    Actual result:
    --------------
    Sorry - no GDB backtrace on this machine...



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40449&edit=1[/url]
    tony2001@php.net Guest

  8. #7

    Default #40449 [Fbk->Csd]: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"

    ID: 40449
    User updated by: dg at artegic dot de
    Reported By: dg at artegic dot de
    -Status: Feedback
    +Status: Closed
    Bug Type: Reproducible crash
    Operating System: SunsOS 5.9
    PHP Version: 5.2.1
    New Comment:

    The error is libtidy related. Thanks for your help!


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

    [2007-02-13 09:49:04] [email]tony2001@php.net[/email]

    Also cannot reproduce on Solaris 8 (using libtidy from CVS).

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

    [2007-02-12 23:10:54] [email]nlopess@php.net[/email]

    can you please try with libtidy from cvs
    ([url]http://sf.net/cvs/?group_id=27659[/url]) please? libtidy uses php emalloc
    calls, so it is probable that the error is in tidy itself.
    (I couldn't try myself yet, because my other pc is not on-line..)

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

    [2007-02-12 19:34:03] [email]tony2001@php.net[/email]

    Works perfectly fine on Linux.

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

    [2007-02-12 19:17:33] dg at artegic dot de

    Tried the CVS snapshot PHP 5.2.2-dev 200702121730 - same
    result...

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

    [2007-02-12 18:15:14] [email]tony2001@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/40449[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=40449&edit=1[/url]
    dg at artegic dot de Guest

  9. #8

    Default #40449 [Csd->Bgs]: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"

    ID: 40449
    Updated by: [email]tony2001@php.net[/email]
    Reported By: dg at artegic dot de
    -Status: Closed
    +Status: Bogus
    Bug Type: Reproducible crash
    Operating System: SunsOS 5.9
    PHP Version: 5.2.1


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

    [2007-02-13 12:57:29] dg at artegic dot de

    The error is libtidy related. Thanks for your help!

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

    [2007-02-13 09:49:04] [email]tony2001@php.net[/email]

    Also cannot reproduce on Solaris 8 (using libtidy from CVS).

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

    [2007-02-12 23:10:54] [email]nlopess@php.net[/email]

    can you please try with libtidy from cvs
    ([url]http://sf.net/cvs/?group_id=27659[/url]) please? libtidy uses php emalloc
    calls, so it is probable that the error is in tidy itself.
    (I couldn't try myself yet, because my other pc is not on-line..)

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

    [2007-02-12 19:34:03] [email]tony2001@php.net[/email]

    Works perfectly fine on Linux.

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

    [2007-02-12 19:17:33] dg at artegic dot de

    Tried the CVS snapshot PHP 5.2.2-dev 200702121730 - same
    result...

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/40449[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=40449&edit=1[/url]
    tony2001@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