dstogov
Repos
16
Followers
1193

Events

Force exit to VM

Created at 2 days ago

Force exit to VM

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Force exit to VM

Merge branch 'PHP-8.2'

  • PHP-8.2: Force exit to VM
Created at 2 days ago

Force exit to VM

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Force exit to VM
Created at 2 days ago

Keep original EG(jit_trace_num) value around __autoload()

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Keep original EG(jit_trace_num) value around __autoload()
Created at 2 days ago

Keep original EG(jit_trace_num) value around __autoload()

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Keep original EG(jit_trace_num) value around __autoload()

Merge branch 'PHP-8.2'

  • PHP-8.2: Keep original EG(jit_trace_num) value around __autoload()
Created at 2 days ago

Keep original EG(jit_trace_num) value around __autoload()

Created at 2 days ago
issue comment
JIT segmentation fault in PHP 8.1

@javer thanks for the help. @oleg-st thanks for the check if this is related to inheritance cache (I also suspected it).

Unfortunately, I can't find the reason of the crash yet. The backtraces are very different. Can you please check if the failures occurs after opcache restart. (See *_restats returned by opcache_get_status(false)). Also please check if you have any fatal PHP errors (especially memory overflow or execution timeout).

I tried your reproduction method with deleting cache on symfony_demo app and PHP-8.1 HEAD. I didn't see any crashes or assertions. Probably, the failures occur only with some specific PHP code.

It would be great, if you could check PHP-8.1 branch HEAD as well.

Created at 3 days ago

Wrap JIT compiler with zend_try to recover in case of memory overflow

Created at 4 days ago

Wrap JIT compiler with zend_try to recover in case of memory overflow

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Wrap JIT compiler with zend_try to recover in case of memory overflow
Created at 4 days ago

Wrap JIT compiler with zend_try to recover in case of memory overflow

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Wrap JIT compiler with zend_try to recover in case of memory overflow

Merge branch 'PHP-8.2'

  • PHP-8.2: Wrap JIT compiler with zend_try to recover in case of memory overflow
Created at 4 days ago

Uniform placing of init_fcall guards.

This fixes trcing JIT with opcache.jit=51

Created at 4 days ago

Uniform placing of init_fcall guards.

This fixes trcing JIT with opcache.jit=51

Merge branch 'PHP-8.2'

  • PHP-8.2: Uniform placing of init_fcall guards.
Created at 4 days ago

Fixed type inference

Fixes oss-fuzz #51640

Created at 5 days ago

Fixed type inference

Fixes oss-fuzz #51640

Merge branch 'PHP-8.2'

  • PHP-8.2: Fixed type inference
Created at 5 days ago

Fix memory leak

Fixes oss-fuzz #51622

Merge branch 'PHP-8.0' into PHP-8.1

  • PHP-8.0: Fix memory leak

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Fix memory leak

Merge branch 'PHP-8.2'

  • PHP-8.2: Fix memory leak
Created at 5 days ago

Fix memory leak

Fixes oss-fuzz #51622

Merge branch 'PHP-8.0' into PHP-8.1

  • PHP-8.0: Fix memory leak

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Fix memory leak
Created at 5 days ago

Fix memory leak

Fixes oss-fuzz #51622

Merge branch 'PHP-8.0' into PHP-8.1

  • PHP-8.0: Fix memory leak
Created at 5 days ago

Fix memory leak

Fixes oss-fuzz #51622

Created at 5 days ago

Fix memory leak

Fixes oss-fuzz #51622

Merge branch 'PHP-8.0' into PHP-8.1

  • PHP-8.0: Fix memory leak

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Fix memory leak
Created at 5 days ago

Fix memory leak

Fixes oss-fuzz #51622

Merge branch 'PHP-8.0' into PHP-8.1

  • PHP-8.0: Fix memory leak

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Fix memory leak

Merge branch 'PHP-8.2'

  • PHP-8.2: Fix memory leak
Created at 5 days ago

Fix memory leak

Fixes oss-fuzz #51622

Merge branch 'PHP-8.0' into PHP-8.1

  • PHP-8.0: Fix memory leak
Created at 5 days ago

Check "ssa_op" before dereference (it may be NULL for opcache.jit=51)

Merge branch 'PHP-8.2'

  • PHP-8.2: Check "ssa_op" before dereference (it may be NULL for opcache.jit=51)
Created at 1 week ago

Check "ssa_op" before dereference (it may be NULL for opcache.jit=51)

Created at 1 week ago
issue comment
Fix use-after-free with nested FFI::addr() calls

@iluuu1994 thanks for looking into this.

See https://www.php.net/manual/en/ffi.addr.php

  1. FFI::addr() creates unmanaged pointer. PHP/FFI won't try to keep the pointed data alive.
  2. I suspect FFI::addr(FFI::addr($var)) was used to get ptr_ptr to the var, but its equivalent in C is &(&var). This C code doesn't make sense at all, why should it work in PHP :)

I don't think this should be fixed, may be it's better to throw a error. I may be wrong. You are welcome for discussion. I hope, I'll be able to look into this deeper on Monday.

Created at 1 week ago