ID:               32494
 Comment by:       nick at prioritycolo dot com
 Reported By:      evert at rooftopsolutions dot nl
 Status:           Verified
 Bug Type:         XML related
 Operating System: Linux glibc 2.3.4
 PHP Version:      4CVS-2005-07-30
 New Comment:

Still seeing this same issue in PHP 4.4.7 (two years later?!) with the
CPanel build of Apache and PHP on Centos "4.5". Seeing core dumps with
vBulletin's cron job, upgrading to PHP 5.x not a short-term option on
the shared box in question.
--------------------------------------------------------
Back trace from the vBulletin cron.php throws me:
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x4a2137a5 in raise () from /lib/tls/libc.so.6
#2  0x4a215209 in abort () from /lib/tls/libc.so.6
#3  0x4a247a1a in __libc_message () from /lib/tls/libc.so.6
#4  0x4a24e2bf in _int_free () from /lib/tls/libc.so.6
#5  0x4a24e63a in free () from /lib/tls/libc.so.6
#6  0x08148414 in poolDestroy (pool=0x4a315840)
    at
/home/cpapachebuild/buildapache/php-4.4.7/ext/xml/expat/xmlparse.c:5425
#7  0x0814a38b in php_XML_ParserFree (parser=0x86844d0)
    at
/home/cpapachebuild/buildapache/php-4.4.7/ext/xml/expat/xmlparse.c:1055

etc etc etc
--------------------------------------------------------
Instant "*** glibc detected *** double free or corruption" occurs:
class test {
    function test() {
        // initialize parser
        $this->parser = xml_parser_create();
        xml_set_element_handler( $this->parser,
                                 array( & $this, "startTag" ),
                                 array( & $this, "endTag" )
                               );
    }
}
$parser = new test();
--------------------------------------------------------
Sigh, I'm guessing we may be SoL on this one...


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

[2005-10-31 11:22:04] troels at kyberfabrikken dot dk

Does anybody know for how long this problem have existed ? Will it be
fixed with next release for php4 ?
xml_set_object does btw. not have the same problem.

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

[2005-08-18 10:54:43] [EMAIL PROTECTED]

See also bug #34150

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

[2005-05-17 10:46:57] [EMAIL PROTECTED]

Does NOT happen with PHP 5 (using libxml instead of expat)


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

[2005-05-05 01:01:03] evert at rooftopsolutions dot nl

Thank you rmartins!!!

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

[2005-05-05 00:10:43] rmartins at dcc dot online dot pt

Try freeing the parser via xml_parser_free()

Ricardo Martins

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

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
    http://bugs.php.net/32494

-- 
Edit this bug report at http://bugs.php.net/?id=32494&edit=1

Reply via email to