aasul

Results comments of aasul

i'd like to look into this i'll first try reproducing the crash on current PHP builds with tracing JIT enabled and compare the behavior with JIT disabled then i'll inspect...

quick update, i managed to reproduce this on php 8.5.13-dev with tracing jit enabled. the same input runs normally with jit disabled, but the tracing jit hits the `zval_get_long_func()` assertion....

another update, i've finished validating the candidate fix. the issue appears to come from the fallback type information used when a side trace starts with a live-in temporary. it doesn't...

i've opened a pr for this now: https://github.com/php/php-src/pull/24699 the issue appears to be caused by the side-trace fallback type mask missing `MAY_BE_INDIRECT`, which can prevent `zend_jit_send_ref()` from correctly handling an...

I looked into the two `Balloc()` failure paths in `zend_strtod.c` and have a small local patch replacing `zend_error_noreturn()` with `zend_mm_delayed_error_or_panic(false, ...)` from what I found, the current path goes through...

I looked further into the two `Balloc()` failure paths in `zend_strtod.c` and tested a small local patch using `zend_mm_delayed_error_or_panic(false, ...)` instead of `zend_error_noreturn()` with controlled libc allocation failures, the original...

@srayuth089 thanks for the detailed follow ups and for finding a way to reproduce this on stock PHP the distinction between string to float and float to string makes sense...

@srayuth-dna thanks for the additional testing, especially the comparison with 8.4.26 and the 236 conversion checks the fact that the worker survives on both versions and the results remain identical...

thanks for finding this, `zend_gcvt()` does look like a much better place to handle the excessive precision than adding checks across individual consumers i checked the PHP 8.4 implementation and...

@srayuth089 i'll try putting together a small experimental patch that caps `ndigit` at 770 in `zend_gcvt()` i'll first reproduce the original `Balloc()` failure on unmodified PHP 8.4 using `serialize_precision=4194304` and...