Skip to content

Segmentation fault zend_vm_execute.h:30190 #17027

@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
namespace foo;
var_dump(class_exists('foo\bar'));

Resulted in this output:

Zend/zend_vm_execute.h:30190:8: runtime error: shift exponent 326 is too large for 32-bit type 'uint32_t' (aka 'unsigned int')
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Zend/zend_vm_execute.h:30190:8

To reproduce:

-d "zend_extension=/php-src/modules/opcache.so" -d "opcache.enable_cli=1" -d "opcache.jit=1011"

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions