Bug #68273 [NEW]: Crash when throwing exception inside autoload
| From: | jesusthefrog at gmail dot com | Date: | Tue, 21 Oct 2014 01:04:53 +0000 |
| Subject: | Bug #68273 [NEW]: Crash when throwing exception inside autoload | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-188211@lists.php.net to get a copy of this message | ||
From: jesusthefrog at gmail dot com
Operating system: Linux 3.2.0-4-686-pae/Solaris 10
PHP version: 5.4.34
Package: Reproducible crash
Bug Type: Bug
Bug description:Crash when throwing exception inside autoload
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 bug report at https://bugs.php.net/bug.php?id=68273&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68273&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68273&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68273&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68273&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68273&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68273&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68273&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68273&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68273&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68273&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68273&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68273&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68273&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68273&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68273&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68273&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68273&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68273&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68273&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68273&r=mysqlcfg