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

From: Date: Thu, 23 Apr 2020 08:15:18 +0000
Subject: Bug #70951 [Opn]: Segmentation fault on invalid WSDL cache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226727@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70951&edit=1

 ID:                 70951
 Updated by:         nikic@php.net
 Reported by:        bostjan at teon dot si
 Summary:            Segmentation fault on invalid WSDL cache
 Status:             Open
 Type:               Bug
 Package:            SOAP related
 Operating System:   Linux
 PHP Version:        5.6.15
 Block user comment: N
 Private report:     N

 New Comment:

It should be possible to fix this by mixing in SIZEOF_ZEND_LONG in https://github.com/php/php-src/blob/c36b9e93fa06e48fdedb0260a8e5817902da0545/ext/soap/php_sdl.c#L3200-L3239.
Or more generally, take a look at how the opcache system ID is computed.


Previous Comments:
------------------------------------------------------------------------
[2020-04-23 08:07:37] cmb@php.net

> In my opinion this should not produce a segmentation fault, but
> cache file should be invalidated+deleted and recreated. Thoughts?

The alternative would be to document that the cache is system
dependent, and must not be reused after migration.

------------------------------------------------------------------------
[2020-04-23 07:50:09] cmb@php.net

Related To: Bug #79509

------------------------------------------------------------------------
[2017-10-13 20:56:41] alvaroguimaraes at gmail dot com

I just had this.

We had invalid cache files because of a full disk incident before.

+1 on invalidate+delete behaviour suggested.

PHP 5.6.31-6+ubuntu16.04.1+deb.sury.org+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

Kernel: 4.4.0-96-generic #119-Ubuntu SMP

------------------------------------------------------------------------
[2017-10-05 12:22:54] nikic@php.net

I'm not able to reproduce the segfault on master.

------------------------------------------------------------------------
[2015-11-20 23:19:02] bostjan at teon dot si

Additional info, just figured it out:
That wsdl cache file was left over when migration from 32bit to 64bit CentOS happened. It works on
32bit platforms.

In my opinion this should not produce a segmentation fault, but cache file should be
invalidated+deleted and recreated. Thoughts?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=70951


--
Edit this bug report at https://bugs.php.net/bug.php?id=70951&edit=1


Thread (6 messages)

« previous php.bugs (#226727) next »