php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22168 Lots of "page / chunk is already free" errors after parsing
Submitted: 2003-02-11 08:57 UTC Modified: 2003-06-17 01:00 UTC
Votes:3
Avg. Score:4.0 ± 0.8
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: blizz at 0x03 dot net Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5CVS-2003-02-11 (dev) OS: NetBSD 1.6N
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: blizz at 0x03 dot net
New email:
PHP Version: OS:

 

 [2003-02-11 08:57 UTC] blizz at 0x03 dot net
$tree = new XML_Tree($item);
$tree = $tree->getTreeFromFile();

Well it's just the XML parser at the end.
If I don't call it in any way no error appears.
I downloaded the newest files from cvs repository.

anarchy% php -f todo.php
php in free(): warning: page is already free.
php in free(): warning: chunk is already free.
php in free(): warning: chunk is already free.
php in free(): warning: chunk is already free.
php in free(): warning: chunk is already free.
php in free(): warning: chunk is already free.
php in free(): warning: page is already free.
php in free(): warning: chunk is already free.
php in free(): warning: page is already free.
php in free(): warning: chunk is already free.
php in free(): warning: chunk is already free.

Here's my configure line:
'./configure' '--with-apxs2=/usr/local/sbin/apxs' '--with-openssl' '--with-mcrypt=/usr/local' '--with-dbx' '--with-zlib=/usr/local' '--with-bz2' '--enable-calendar' '--enable-ftp' '--with-gettext=/usr/local' '--with-mysql' '--enable-pcntl' '--enable-shmop' '--enable-sockets' '--with-regex=php' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-iconv=/usr/local' '--enable-bcompiler' '--enable-embed' '--with-imap' '--without-pear' '--with-gd'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-11 10:00 UTC] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2003-02-11 10:15 UTC] blizz at 0x03 dot net
Hm, expectet that ;)
I'll search and give more detailed information.
 [2003-02-11 12:40 UTC] sniper@php.net
Try come up with short and complete example script.

 [2003-02-12 16:41 UTC] blizz at 0x03 dot net
Tree + XML / XML_Tree is a part of pear.
If I just uncomment this line in XML/Parser.php :
(line 140) xml_set_object($this->parser, $this);
no errors appear later.
The error appers even if I do not use the parse function.

Maybe something's wrong with ZendEngine2 and ext/xml's
function xml_set_object.
 [2003-02-12 16:55 UTC] blizz at 0x03 dot net
Aw.. hm. That's maybe not the point..
Well, it's a combination of function calls
which causes the errors (i guess).
 [2003-02-12 18:30 UTC] sniper@php.net
Try come up with short and complete example script.
 [2003-02-13 00:00 UTC] blizz at 0x03 dot net
<?php

require_once 'XML/Parser.php';

$foo = new XML_Parser;

?>

That's all I do.

That's XML/Parser.php.
http://cvs.php.net/co.php/pear/XML_Parser/Parser.php
 [2003-02-13 00:38 UTC] sniper@php.net
I get this error with the given script:

/usr/src/web/php/php5/Zend/zend_hash.c(93) : Bailed out without a bailout address!


 [2003-02-13 06:28 UTC] blizz at 0x03 dot net
Well, at least there is an error.
And whatever it causes, it's there :]
 [2003-06-17 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Nov 28 11:05:53 2022 UTC