php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40449 libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"
Submitted: 2007-02-12 18:10 UTC Modified: 2007-02-13 13:01 UTC
From: dg at artegic dot de Assigned:
Status: Not a bug Package: Tidy (PECL)
PHP Version: 5.2.1 OS: SunsOS 5.9
Private report: No CVE-ID: None
 [2007-02-12 18:10 UTC] 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...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-12 18:15 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2007-02-12 19:17 UTC] dg at artegic dot de
Tried the CVS snapshot PHP 5.2.2-dev 200702121730 - same 
result...
 [2007-02-12 19:34 UTC] tony2001@php.net
Works perfectly fine on Linux.
 [2007-02-12 23:10 UTC] nlopess@php.net
can you please try with libtidy from cvs (http://sf.net/cvs/?group_id=27659) 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-13 09:49 UTC] tony2001@php.net
Also cannot reproduce on Solaris 8 (using libtidy from CVS).
 [2007-02-13 12:57 UTC] dg at artegic dot de
The error is libtidy related. Thanks for your help!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 08:01:32 2024 UTC