Skip to content

fix(prof): Do not call zend_jit_status() on affected versions #3356

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

Merged
merged 2 commits into from
Jul 29, 2025

Conversation

realFlowControl
Copy link
Member

@realFlowControl realFlowControl commented Jul 24, 2025

Description

There is a use-after-free crash which we need to work around.
I've already prepared for the upstream fix to be merged and added some version checks that are all commented out at this point in time and should have the comment removed and version number fixed once the upstream PR has landed.

PROF-12148

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@realFlowControl realFlowControl changed the title Do not call zend_jit_status() on affected versions fix(profiler): Do not call zend_jit_status() on affected versions Jul 24, 2025
@realFlowControl realFlowControl changed the title fix(profiler): Do not call zend_jit_status() on affected versions fix(prof): Do not call zend_jit_status() on affected versions Jul 24, 2025
@github-actions github-actions bot added profiling Relates to the Continuous Profiler tracing labels Jul 24, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jul 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.92%. Comparing base (f30b862) to head (7d78a4d).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3356   +/-   ##
=======================================
  Coverage   61.92%   61.92%           
=======================================
  Files         140      140           
  Lines       12356    12356           
  Branches     1616     1616           
=======================================
  Hits         7651     7651           
  Misses       3995     3995           
  Partials      710      710           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f30b862...7d78a4d. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pr-commenter
Copy link

pr-commenter bot commented Jul 24, 2025

Benchmarks [ profiler ]

Benchmark execution time: 2025-07-28 14:27:25

Comparing candidate commit 7d78a4d in PR branch florian/fix-zend_jit_status-crash with baseline commit f30b862 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 29 metrics, 7 unstable metrics.

@realFlowControl realFlowControl force-pushed the florian/fix-zend_jit_status-crash branch from 1e4974c to e17191c Compare July 24, 2025 08:20
@realFlowControl realFlowControl self-assigned this Jul 24, 2025
@realFlowControl realFlowControl marked this pull request as ready for review July 25, 2025 19:13
@realFlowControl realFlowControl requested a review from a team as a code owner July 25, 2025 19:13
@realFlowControl realFlowControl force-pushed the florian/fix-zend_jit_status-crash branch from 65abe9e to 7cbc033 Compare July 28, 2025 06:23
@realFlowControl realFlowControl added this to the 1.11.0 milestone Jul 28, 2025
@realFlowControl realFlowControl force-pushed the florian/fix-zend_jit_status-crash branch from 7cbc033 to 7d78a4d Compare July 28, 2025 14:13
@github-actions github-actions bot removed this from the 1.11.0 milestone Jul 28, 2025
Copy link
Collaborator

@morrisonlevi morrisonlevi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. We don't parse units but in practice it probably works, since strcmp(str, "0") == 0 would also match 0M, 0K, etc.

@realFlowControl realFlowControl merged commit 2ea6424 into master Jul 29, 2025
1874 of 1881 checks passed
@realFlowControl realFlowControl deleted the florian/fix-zend_jit_status-crash branch July 29, 2025 05:45
@github-actions github-actions bot added this to the 1.11.0 milestone Jul 29, 2025
sydney-tung pushed a commit that referenced this pull request Jul 30, 2025
* do not call `zend_jit_status()` on affected versions

* upstream PR not yet merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
profiling Relates to the Continuous Profiler tracing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy