Bug #79950 [NEW]: Segmentation fault (with the event extension)

From: Date: Mon, 10 Aug 2020 07:34:07 +0000
Subject: Bug #79950 [NEW]: Segmentation fault (with the event extension)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228475@lists.php.net to get a copy of this message
From: valera dot ymnik at gmail dot com Operating system: Debian 9 (stretch) PHP version: 7.4.9 Package: Reproducible crash Bug Type: Bug Bug description:Segmentation fault (with the event extension) Description: ------------ After upgrading from 7.4.8 to 7.4.9, a segfault occurs in this example. I was only able to reproduce the problem using an event extension (https://pecl.php.net/package/event). I'm not sure if this is not the event extension issue, but minor updates usually didn't break extensions. In addition, there is a dependence on a static properties of the class, which is loaded into set_exception_handler Test script: --------------- file segafult.php: <?php set_exception_handler(static function ($e) { include 'Test.php'; throw $e; }); $base = new EventBase(); $e = new Event($base, -1, Event::TIMEOUT, static function () { throw new \Exception; }); $e->addTimer(0); $base->loop(); file Test.php: <?php class Test { // public $foo = 'foo'; private function set() { // var_dump(self::$foo); // any use of a static property self::$foo = 'bar'; } } Expected result: ---------------- PHP Fatal error: Uncaught Exception Actual result: -------------- Segmentation fault -- Edit bug report at https://bugs.php.net/bug.php?id=79950&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79950&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79950&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79950&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79950&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79950&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79950&r=support Expected behavior: https://bugs.php.net/fix.php?id=79950&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79950&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79950&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79950&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79950&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79950&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79950&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79950&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79950&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79950&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79950&r=mysqlcfg

« previous php.bugs (#228475) next »