Bug #77313 [NEW]: instanceof_class segfault

From: Date: Mon, 17 Dec 2018 15:58:11 +0000
Subject: Bug #77313 [NEW]: instanceof_class segfault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218499@lists.php.net to get a copy of this message
From:             php-bugs at xpaw dot me
Operating system: Debian 9
PHP version:      7.3.0
Package:          *General Issues
Bug Type:         Bug
Bug description:instanceof_class segfault

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 bug report at https://bugs.php.net/bug.php?id=77313&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=77313&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=77313&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=77313&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=77313&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=77313&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=77313&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=77313&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=77313&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=77313&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=77313&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=77313&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=77313&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=77313&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77313&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=77313&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=77313&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=77313&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77313&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=77313&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=77313&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#218499) next »