|  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 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.
Block user comment
Status: Assign to:
Bug Type:
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
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  =>      /usr/lib32/      =>      /usr/lib32/     =>         /usr/lib32/internal/        =>    /usr/lib32/ 


Add a Patch

Pull Requests

Add a Pull Request


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]
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]
5.1 is the next release.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Sep 27 16:01:25 2023 UTC