Skip to content

Crashtracker: fix a use-after-free error#2843

Merged
bwoebi merged 2 commits intomasterfrom
luc/crashtracker-fix-use-after-free
Sep 10, 2024
Merged

Crashtracker: fix a use-after-free error#2843
bwoebi merged 2 commits intomasterfrom
luc/crashtracker-fix-use-after-free

Conversation

@iamluc
Copy link
Copy Markdown
Contributor

@iamluc iamluc commented Sep 10, 2024

Description

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 10, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.49%. Comparing base (98839cf) to head (72358cc).
⚠️ Report is 585 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2843      +/-   ##
============================================
- Coverage     81.06%   78.49%   -2.58%     
  Complexity     2516     2516              
============================================
  Files           146      173      +27     
  Lines         14653    18682    +4029     
  Branches          0      975     +975     
============================================
+ Hits          11879    14664    +2785     
- Misses         2774     3481     +707     
- Partials          0      537     +537     
Flag Coverage Δ
appsec-extension 69.12% <ø> (?)
tracer-extension 78.18% <ø> (ø)
tracer-php 82.27% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 27 files with indirect coverage changes


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 98839cf...72358cc. 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.

@iamluc iamluc force-pushed the luc/crashtracker-fix-use-after-free branch from ed07274 to 027445a Compare September 10, 2024 14:53
@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Sep 10, 2024

Benchmarks

Benchmark execution time: 2024-09-10 16:36:55

Comparing candidate commit 72358cc in PR branch luc/crashtracker-fix-use-after-free with baseline commit 98839cf in branch master.

Found 6 performance improvements and 1 performance regressions! Performance is the same for 171 metrics, 0 unstable metrics.

scenario:EmptyFileBench/benchEmptyFileBaseline-opcache

  • 🟩 execution_time [-194.913µs; -62.487µs] or [-6.427%; -2.060%]

scenario:LaravelBench/benchLaravelOverhead-opcache

  • 🟩 execution_time [-187.752µs; -79.208µs] or [-5.488%; -2.315%]

scenario:MessagePackSerializationBench/benchMessagePackSerialization-opcache

  • 🟥 execution_time [+5.059µs; +7.361µs] or [+3.536%; +5.145%]

scenario:PDOBench/benchPDOBaseline-opcache

  • 🟩 execution_time [-12.244µs; -7.576µs] or [-6.498%; -4.021%]

scenario:PDOBench/benchPDOOverhead-opcache

  • 🟩 execution_time [-12.508µs; -9.592µs] or [-4.185%; -3.210%]

scenario:PDOBench/benchPDOOverheadWithDBM-opcache

  • 🟩 execution_time [-13.513µs; -9.134µs] or [-4.032%; -2.726%]

scenario:WordPressBench/benchWordPressOverhead

  • 🟩 execution_time [-21.842ms; -21.618ms] or [-83.027%; -82.179%]

Copy link
Copy Markdown
Collaborator

@bwoebi bwoebi left a comment

Choose a reason for hiding this comment

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

Looks right.
Do you want to also toggle the default of the LOG_BACKTRACES setting if compiled with asan (via preprocessor directive)?

@iamluc
Copy link
Copy Markdown
Contributor Author

iamluc commented Sep 10, 2024

Do you want to also toggle the default of the LOG_BACKTRACES setting if compiled with asan (via preprocessor directive)?

I find it easier to disable the entire signal handling. WDYT?

@bwoebi
Copy link
Copy Markdown
Collaborator

bwoebi commented Sep 10, 2024

@iamluc Yeah, but then you can't run crashtracker tests with asan either and you'll have to disable tests via skipif too.
I'd rather just add a define in configuration.h around the default value.

@iamluc iamluc force-pushed the luc/crashtracker-fix-use-after-free branch from ddf87c8 to 72358cc Compare September 10, 2024 16:12
@iamluc iamluc marked this pull request as ready for review September 10, 2024 16:20
@iamluc iamluc requested a review from a team as a code owner September 10, 2024 16:20
@bwoebi bwoebi merged commit 459fe08 into master Sep 10, 2024
@bwoebi bwoebi deleted the luc/crashtracker-fix-use-after-free branch September 10, 2024 21:17
@github-actions github-actions Bot added this to the 1.4.0 milestone Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants