Skip to content

Conversation

@vpellan
Copy link
Contributor

@vpellan vpellan commented Nov 20, 2025

What does this PR do?

This fixes a segfault that happens when stable config returns an error. he error is free twice

Motivation:

https://github.com/DataDog/dd-trace-rb/actions/runs/19506133836/job/55832894119?pr=5062

Change log entry

Yes. Stable config: Fix potential segfault during configuration file parsing

Additional Notes:

How to test the change?

@vpellan vpellan requested review from a team as code owners November 20, 2025 11:48
@vpellan vpellan changed the title [NO-TICKET] Fix stable config segfault [NO-TICKET] Fix stable config segfault during error handling Nov 20, 2025
@datadog-datadog-prod-us1
Copy link
Contributor

datadog-datadog-prod-us1 bot commented Nov 20, 2025

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage
Patch Coverage: 100.00%
Total Coverage: 98.53% (+0.06%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 96fd814 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

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

Needs a couple of fixes but I think this makes sense overall!

@vpellan vpellan force-pushed the vpellan/fix-segfault-library-config branch from eb14b37 to 2c618e4 Compare November 20, 2025 13:34
@pr-commenter
Copy link

pr-commenter bot commented Nov 20, 2025

Benchmarks

Benchmark execution time: 2025-11-21 10:05:25

Comparing candidate commit 96fd814 in PR branch vpellan/fix-segfault-library-config with baseline commit 2c84fc0 in branch master.

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

Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@ivoanjo ivoanjo added this to the 2.23.0 milestone Nov 21, 2025
@vpellan vpellan changed the title [NO-TICKET] Fix stable config segfault during error handling [APMAPI-1774] Fix stable config segfault during error handling Nov 21, 2025
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