From: cole at ccdc dot cam dot ac dot uk Operating system: IRIX 6.5.18m PHP version: 5.0.5 PHP Bug Type: DOM XML related Bug description: apache module core dumps when DOM method loadXML is called
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 -- Edit bug report at http://bugs.php.net/?id=35088&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35088&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35088&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35088&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35088&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35088&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35088&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35088&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35088&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35088&r=support Expected behavior: http://bugs.php.net/fix.php?id=35088&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35088&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35088&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35088&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35088&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35088&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35088&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35088&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35088&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35088&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35088&r=mysqlcfg