8000 fix: crash when trace-logging in tests by mvadari · Pull Request #5529 · XRPLF/rippled · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: crash when trace-logging in tests #5529

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 3 commits into from
Jul 2, 2025
Merged

Conversation

mvadari
Copy link
Collaborator
@mvadari mvadari commented Jul 2, 2025

High Level Overview of Change

This PR fixes a crash in tests when the test `Env is run at trace/debug log level.

This issue only affects tests, and only if logging at trace/debug level, so really only relevant during rippled development, and does not affect production servers.

Note: I think the logs run a bit slower with this fix, due to the lock, but IMO that's not a big deal since this is only relevant for development

h/t @sublimator for the fix in the issue

Context of Change

Fixes #5388

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

API Impact

N/A

Test Plan

Worked locally.

Repro instructions are in the issue.

@bthomee bthomee requested a review from vlntb July 2, 2025 17:29
Copy link
codecov bot commented Jul 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.1%. Comparing base (e18f27f) to head (930d882).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #5529     +/-   ##
=========================================
- Coverage     79.1%   79.1%   -0.0%     
=========================================
  Files          816     816             
  Lines        71605   71605             
  Branches      8237    8240      +3     
=========================================
- Hits         56625   56619      -6     
- Misses       14980   14986      +6     

see 4 files with indirect coverage changes

Impacted file tree graph

🚀 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.

Copy link
Collaborator
@vlntb vlntb left a comment

Choose a reason for hiding this comment

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

LGTM. One little nit.

Co-authored-by: Valentin Balaschenko <13349202+vlntb@users.noreply.github.com>
@bthomee bthomee added the Trivial Simple change with minimal effect, or already tested. Only needs one approval. label Jul 2, 2025
Co-authored-by: Valentin Balaschenko <13349202+vlntb@users.noreply.github.com>
@mvadari mvadari added the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label Jul 2, 2025
@bthomee bthomee enabled auto-merge (squash) July 2, 2025 19:10
@bthomee bthomee merged commit c2f3e2e into XRPLF:develop Jul 2, 2025
24 checks passed
mvadari added a commit to mvadari/rippled that referenced this pull request Jul 3, 2025
This PR fixes a crash in tests when the test `Env is run at trace/debug log level.

This issue only affects tests, and only if logging at trace/debug level, so really only relevant during rippled development, and does not affect production servers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. Trivial Simple change with minimal effect, or already tested. Only needs one approval.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double free of object malloc error when running beast::severities::kTrace
3 participants
0