You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]Core dumped with `-d "variables_order=E" -d "auto_globals_jit=0"`[/-][+]Assertion failure with `-d "variables_order=E" -d "auto_globals_jit=0"`[/+]on Sep 16, 2024
However, with -d variables_order=E -d auto_globals_jit=0, PG(http_globals)[TRACK_VARS_SERVER]) is not properly initialized, so it looses the HASH_FLAG_ALLOW_COW_VIOLATION flag. A possible fix could be to initialize the hash table right away for this code path, i.e.:
changed the title [-]Assertion failure with `-d "variables_order=E" -d "auto_globals_jit=0"`[/-][+]Assertion failure for TRACK_VARS_SERVER[/+]on Sep 16, 2024
Activity
[-]Core dumped with `-d "variables_order=E" -d "auto_globals_jit=0"`[/-][+]Assertion failure with `-d "variables_order=E" -d "auto_globals_jit=0"`[/+]cmb69 commentedon Sep 16, 2024
Good finding, @YuanchengJiang!
Relevant:
php-src/main/php_variables.c
Lines 902 to 905 in c65e042
However, with
-d variables_order=E -d auto_globals_jit=0,PG(http_globals)[TRACK_VARS_SERVER])is not properly initialized, so it looses theHASH_FLAG_ALLOW_COW_VIOLATIONflag. A possible fix could be to initialize the hash table right away for this code path, i.e.:ndossche commentedon Sep 16, 2024
Reminds me of #13013 ...
Anyway, I think your patch is fine @cmb69
Fix phpGH-15905: Assertion failure for TRACK_VARS_SERVER
[-]Assertion failure with `-d "variables_order=E" -d "auto_globals_jit=0"`[/-][+]Assertion failure for TRACK_VARS_SERVER[/+]cmb69 commentedon Sep 16, 2024
Fascinating!
Merge branch 'PHP-8.2' into PHP-8.3
Merge branch 'PHP-8.3' into PHP-8.4
Merge branch 'PHP-8.4'
Fix GH-15905: Assertion failure for TRACK_VARS_SERVER