php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35088 crash with DOMDocument->loadXML()
Submitted: 2005-11-03 17:34 UTC Modified: 2005-11-15 23:02 UTC
From: cole at ccdc dot cam dot ac dot uk Assigned:
Status: Closed Package: DOM XML related
PHP Version: 5CVS-2005-11-07 (snap) OS: IRIX 6.5.18m
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cole at ccdc dot cam dot ac dot uk
New email:
PHP Version: OS:

 

 [2005-11-03 17:34 UTC] cole at ccdc dot cam dot ac dot uk
Description:
------------
php child process core dumps while trying to execute DOMDocument->loadXML() from within apache2

 

 

Reproduce code:
---------------
$doc = new DOMDocument();
$doc->formatOutput = true;
$doc->preserveWhiteSpace = false;

// Calling loadXML here causes the core dump
$doc->loadXML( "<hello></hello>");




Expected result:
----------------
Not to core dump!

Actual result:
--------------
It crashes.

Other possibly relevant things: The compilation of php and apache used the native mips-pro compiler (rather than gcc).

Here's some data about the system, and the php shared object

We configured with 

./configure --with-apxs2=/local/cole/apache2/bin/apxs --prefix=/local/cole/php-5.0.5

From the server log
[Thu Nov 03 16:16:08 2005] [notice] child pid 1749448 exit signal Segmentation fault (11), possible coredump in /home/cole/not-backed-up/relibase_clean_build/relibase_irix_build/relibase

From ldd:

ldd libphp5.so
        libm.so  =>      /usr/lib32/libm.so     
        libz.so  =>      /usr/lib32/libz.so     
        libxml2.so.3 =>         /usr/lib32/internal/libxml2.so.3       
        libc.so.1  =>    /usr/lib32/libc.so.1 



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-07 17:53 UTC] cole at ccdc dot cam dot ac dot uk
Ok - so here goes:

Good news ... the latest snapshot works if I copy the ".so" across manually (rather than using make install).

Bad news ... I was still getting "Output line too long." during the build, even though configure claims it has found a good version of sed. I will get our systems guys to install a newer sed to see if that goes away.

So - it only happens in php 5.0.5 (and, 5.0.4 for that matter - I tried both out of interest).
 [2005-11-07 18:10 UTC] sniper@php.net
Please open separate report for the compile problems.

 [2005-11-07 18:13 UTC] cole at ccdc dot cam dot ac dot uk
Sorry to ask - as you have closed this, does this mean there will be no fix applied to the 5.0 branch?
 [2005-11-14 16:30 UTC] cole at ccdc dot cam dot ac dot uk
Hi - Sorry, but I have to reopen this since I've had no response to the previous point:

I think you need to confirm the intent on this bug. 

Will this be fixed only in the latest release branch, or do you intend fixing the issue in, say, php 5.0.6?
 [2005-11-15 23:02 UTC] sniper@php.net
5.1 is the next release.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 01:01:30 2024 UTC