Bug #70951 [NEW]: Segmentation fault on invalid WSDL cache

From: Date: Fri, 20 Nov 2015 22:57:04 +0000
Subject: Bug #70951 [NEW]: Segmentation fault on invalid WSDL cache
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197357@lists.php.net to get a copy of this message
From: bostjan at teon dot si Operating system: Linux PHP version: 5.6.15 Package: SOAP related Bug Type: Bug Bug description:Segmentation fault on invalid WSDL cache Description: ------------ When instantiating SOAP client, if WSDL cache exists and is "inappropriate" (either corrupted, or sth similar), PHP crashes. This was tested with: - php 5.6.15 (remi's CentOS repos) - php 5.6.13 (custom built) - php 5.5.9 (ubuntu default) - php 5.3.3 (centos 6 - I think it was originally created with this one) Test script: --------------- git clone https://github.com/bostjan/php-bug-soap-segfault.git cd php-bug-soap-segfault ./run.sh /* * Essentialy what script does: * 1. runs the soap-client.php for the first time, to create wsdl cache file * 2. replaces OK cache file with corrupted one * 3. reruns soap-client.php which now segfaults * * Content of soap-client.php: * ---------------------------------- * <?php * ini_set('soap.wsdl_cache_enabled', true); * ini_set('soap.wsdl_cache_dir', __DIR__); * $soap = new SoapClient ("./services.wsdl"); * echo "no segfault"; * ?> * ---------------------------------- */ Expected result: ---------------- ### Now the output will be 'no segfault': no segfault ### Installing 'inappropriate' cache file...done. ### Now there will be segmentation fault: no segfault /* Essentially no segmentation fault. */ Actual result: -------------- ### Now the output will be 'no segfault': no segfault ### Installing 'inappropriate' cache file...done. ### Now there will be segmentation fault: ./run.sh: line 23: 19892 Segmentation fault php ./soap-client.php -- Edit bug report at https://bugs.php.net/bug.php?id=70951&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70951&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70951&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70951&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70951&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70951&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70951&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70951&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70951&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70951&r=support Expected behavior: https://bugs.php.net/fix.php?id=70951&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70951&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70951&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70951&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70951&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70951&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70951&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70951&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70951&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70951&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70951&r=mysqlcfg

« previous php.bugs (#197357) next »