From: lance dot lovette at gmail dot com Operating system: CentOS release 6.2 (Final) PHP version: 5.4Git-2012-06-08 (snap) Package: XML related Bug Type: Bug Bug description:Custom extension segfaults during xmlParseFile with FPM SAPI
Description: ------------ I have a custom extension that has been in use since 2001. When I upgraded to PHP 5.4 it caused php-fpm to segfault. The extension uses xmlParseFile to load an XML configuration file in MINIT. The CLI build of PHP does NOT segfault and functions as expected. Test script: --------------- I created a trivial extension that calls xmlParseFile in MINIT: https://gist.github.com/2896852 Expected result: ---------------- I expect xmlParseFile to succeed. Actual result: -------------- Output from configure, a gdb backtrace and a list of modules and phpinfo when the crashing extension is disabled: https://gist.github.com/2896980 -- Edit bug report at https://bugs.php.net/bug.php?id=62266&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62266&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62266&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62266&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62266&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62266&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62266&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62266&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62266&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62266&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62266&r=support Expected behavior: https://bugs.php.net/fix.php?id=62266&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62266&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62266&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62266&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62266&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62266&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62266&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62266&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62266&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62266&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62266&r=mysqlcfg