Skip to content

ext/opcache: Add tests for JIT state left by killed processes - #25974

Open
jorgsowa wants to merge 2 commits into
php:PHP-8.4from
jorgsowa:fix-jit-pcntl-001-assertion
Open

jorgsowa wants to merge 2 commits into
php:PHP-8.4from
jorgsowa:fix-jit-pcntl-001-assertion

Conversation

@jorgsowa

@jorgsowa jorgsowa commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Adds tests for #25842.

Each test kills a forked child with SIGTERM, then with SIGKILL, in the middle of a JIT compile (first exec, hot counters, profiling, root trace, side trace). The parent then compiles the same function, which crashed before #25842.

Covers the first-exec, hot counter, profiling, root trace and side trace
compiles fixed in phpGH-25842.
@jorgsowa
jorgsowa force-pushed the fix-jit-pcntl-001-assertion branch from f378f77 to 9126ecd Compare December 1, 2026 11:38
@jorgsowa jorgsowa changed the title ext/opcache: Defer signals while the JIT compiles ext/opcache: Add tests for JIT state left by killed processes Dec 1, 2026
SIGKILL cannot be deferred, so it covers the recovery path regardless of
signal handling.
@jorgsowa
jorgsowa marked this pull request as ready for review December 1, 2026 13:12
@jorgsowa
jorgsowa requested a review from dstogov as a code owner December 1, 2026 13:12
@jorgsowa
jorgsowa requested a review from arnaud-lb December 1, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant