Bug #68273 [Opn->Csd]: Crash when throwing exception inside autoload

From: Date: Thu, 27 Aug 2015 20:17:14 +0000
Subject: Bug #68273 [Opn->Csd]: Crash when throwing exception inside autoload
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195568@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68273&edit=1 ID: 68273 Updated by: nikic@php.net Reported by: jesusthefrog at gmail dot com Summary: Crash when throwing exception inside autoload -Status: Open +Status: Closed Type: Bug Package: Reproducible crash Operating System: Linux 3.2.0-4-686-pae/Solaris 10 PHP Version: 5.4.34 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: Looks like this was fixed in PHP 5.5: https://3v4l.org/AuFoT Previous Comments: ------------------------------------------------------------------------ [2014-10-21 01:04:52] jesusthefrog at gmail dot com Description: ------------ If a static function call on an as-yet-undefined class is made and the result is passed directly into a method on a different object (not $this) and the registered autoload function then throws an exception, a segfault results. Test script: --------------- http://pastebin.com/W6vHq4qt Expected result: ---------------- An exception. Actual result: -------------- PHP 5.4.34 (cli) (built: Oct 20 2014 20:38:26) Starting program: /usr/local/bin/php crash.php [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x0830341f in gc_zval_possible_root (zv=zv@entry=0xb7c15ce4) at /var/tmp/php-5.4.34/Zend/zend_gc.c:143 143 GC_ZOBJ_CHECK_POSSIBLE_ROOT(zv); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68273&edit=1

« previous php.bugs (#195568) next »