#36246 [Opn->Fbk]: Memory problem (double free)
| From: | rrichards@php.net | Date: | Wed, 01 Feb 2006 16:30:34 +0000 |
| Subject: | #36246 [Opn->Fbk]: Memory problem (double free) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92783@lists.php.net to get a copy of this message | ||
ID: 36246
Updated by: rrichards@php.net
Reported By: eustaquiorangel at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: XSLT related
Operating System: Linux, Slackware 10.2 (current)
PHP Version: 5.1.2
New Comment:
Can you get a backtrace? It's working fine for me on both win and linux
boxes. does it crash under cli too?
Previous Comments:
------------------------------------------------------------------------
[2006-02-01 17:24:14] eustaquiorangel at yahoo dot com
No way to avoid it with 5.1.1 +. :-(
I downloaded the snapshot you told me, installed (phpversion() gives me
"5.1.3-dev") and when running the sample, it shows me again the
error_log message:
*** glibc detected *** double free or corruption (fasttop): 0x082392a0
***
[Wed Feb 01 14:10:20 2006] [notice] child pid 11636 exit signal Aborted
(6)
I'm checking http://www.php.net/ChangeLog-5.php and seems that on
the
Windows version there were some changes:
# Updated to libxml2-2.6.22 and libxslt-1.1.15 in the win32 bundle.
(Rob)
It's exactly the same versions I'm running here on Linux.
And there were some little stuff like
# Added constants for libxslt and libexslt versions: LIBXSLT_VERSION,
LIBXSLT_DOTTED_VERSION, LIBEXSLT_VERSION and LIBEXSLT_DOTTED_VERSION.
(Pierre)
that would not affect this way the behaviour.
I did some diffs with the ext/xsl 5.1.1 and 5.1.2 files but didn't find
some relevant changes, just comment changes.
Now I downgraded again to 5.1.1 and it's working fine again, no errors.
Could you test the code on a Linux computer?
------------------------------------------------------------------------
[2006-02-01 16:19:43] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
Works fine here.
------------------------------------------------------------------------
[2006-02-01 14:05:47] eustaquiorangel at yahoo dot com
The test.xsl code is also there on the URL, on the end of the PHP
code.
One interesting thing: I installed right now PHP 5.1.1, and it's
working fine! Not so fast as PHP5 (the same speed as PHP4), but no more
double frees.
------------------------------------------------------------------------
[2006-02-01 13:54:03] tony2001@php.net
To reproduce it we need test.xsl either.
------------------------------------------------------------------------
[2006-02-01 13:36:22] eustaquiorangel at yahoo dot com
Description:
------------
After I use the XSLT extension to process a huge file, I got an error
on the Apache error_log and a blank page on the browser. The error is:
*** glibc detected *** double free or corruption (fasttop): 0x08236cc8
***
[Wed Feb 01 08:56:12 2006] [notice] child pid 7121 exit signal Aborted
(6)
Reproduce code:
---------------
http://pastebin.com/533629
Expected result:
----------------
A regular HTML page and no error on error_log.
Actual result:
--------------
Sometimes it becomes blank and after some realoading it works, but
*always* with an error message on error_log.
I tested the code on all the ways I could but the only solution was
downgrade PHP to 4.4.2 with Sablotron support.
Then everything run fine (same Apache version, same OS), the only
negavite thing is that it takes a lot of time to show the results on
the browser, while using PHP 5.1.2 it was very fast.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36246&edit=1