Bug #77313 [Com]: instanceof_class segfault
| From: | php-bugs at xpaw dot me | Date: | Mon, 17 Dec 2018 18:22:26 +0000 |
| Subject: | Bug #77313 [Com]: instanceof_class segfault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-218503@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77313&edit=1
ID: 77313
Comment by: php-bugs at xpaw dot me
Reported by: php-bugs at xpaw dot me
Summary: instanceof_class segfault
Status: Open
Type: Bug
Package: *General Issues
Operating System: Debian 9
PHP Version: 7.3.0
Block user comment: N
Private report: N
New Comment:
I looked at that crash with php's gdbinit and zbacktrace lead back to this code:
public static function SetDatabase( \PDO $Database )
{
self::$Database = $Database;
}
and SetDatabase got called with a PDO object.
Previous Comments:
------------------------------------------------------------------------
[2018-12-17 15:58:11] php-bugs at xpaw dot me
Description:
------------
After upgrading to PHP 7.3.0 (from 7.2), I've been experiencing random segfaults, which I can
not point to any specific code, here's one of the traces:
#0 instanceof_class (ce=<optimized out>, instance_ce=0x6e75722f7261762f) at
./Zend/zend_operators.c:2296
#1 instanceof_function (instance_ce=<optimized out>, ce=0x56300b0a7bb0) at
./Zend/zend_operators.c:2338
#2 0x0000563009843a69 in zend_check_type (is_return_type=<optimized out>, scope=<optimized
out>, default_value=<optimized out>, cache_slot=<optimized out>, ce=<optimized
out>, arg=0x7fed8001d490, type=<optimized out>) at ./Zend/zend_execute.c:906
#3 zend_verify_arg_type (cache_slot=<optimized out>, default_value=<optimized out>,
arg=<optimized out>, arg_num=<optimized out>, zf=<optimized out>) at
./Zend/zend_execute.c:948
#4 ZEND_RECV_SPEC_UNUSED_HANDLER () at ./Zend/zend_vm_execute.h:2352
#5 execute_ex (ex=0x6e75722f7261762f) at ./Zend/zend_vm_execute.h:55566
#6 0x00005630098469fa in zend_execute (op_array=op_array@entry=0x7fed80071000,
return_value=return_value@entry=0x7fed6c6bd8e0) at ./Zend/zend_vm_execute.h:60834
#7 0x00005630097b7bd3 in zend_execute_scripts (type=0x8001d440, type@entry=0x8,
retval=0x7fed6c6bd8e0, retval@entry=0x0, file_count=file_count@entry=0x3) at ./Zend/zend.c:1568
#8 0x0000563009756678 in php_execute_script (primary_file=0x7ffcd8854b90) at ./main/main.c:2630
#9 0x0000563009612a9a in main (argc=<optimized out>, argv=<optimized out>) at
./sapi/fpm/fpm/fpm_main.c:1950
Sadly I can't provide a test script because this crash doesn't happen very often and I
don't know what code triggers it (on a rather popular site).
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77313&edit=1