Skip to content

Segmentation fault Zend/zend_types.h:1382 #17066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
YuanchengJiang opened this issue Dec 6, 2024 · 3 comments
Closed

Segmentation fault Zend/zend_types.h:1382 #17066

YuanchengJiang opened this issue Dec 6, 2024 · 3 comments

Comments

@YuanchengJiang
Copy link

Description

The following code:

<?php
namespace foo\x;
const x = 2;
class x {
const x = 1;
}
var_dump(namespace\x,x::x,namespace\x::x);
max($fusion,$fusion);

Resulted in this output (JIT 1001):

/php-src/Zend/zend_types.h:1382:9: runtime error: member access within null pointer of type 'zend_refcounted' (aka 'struct _zend_refcounted')

PHP Version

nightly

Operating System

ubuntu 22.04

@nielsdos
Copy link
Member

nielsdos commented Dec 6, 2024

Another duplicate of #15981

@nielsdos nielsdos closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2024
@iluuu1994
Copy link
Member

@YuanchengJiang Maybe we should stop fuzzing with opcache.jit=1001 atm. I'm skeptical about whether somebody uses custom JIT settings in production, since these settings are quite cryptic from a users perspective. I'll try to have another look at this issue soon.

@YuanchengJiang
Copy link
Author

@iluuu1994 Sure. I guess it is more practical to fuzz with some common JIT options like tracing (1254) and function (1205).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants