Skip to content

Conversation

@jbajic
Copy link
Contributor

@jbajic jbajic commented Sep 17, 2025

Scope & Purpose

The waitingFunToCoro function was capturing the function parameter F by reference, but not moving it into the coroutine frame. This caused a use-after-free when the coroutine continued executing after the calling function returned, leading to SIGSEGV crashes in debug builds.

  • 💩 Bugfix
  • 🍕 New feature
  • 🔥 Performance improvement
  • 🔨 Refactoring/simplification

Checklist

  • Tests
    • Regression tests
    • C++ Unit tests
    • integration tests
    • resilience tests
  • 📖 CHANGELOG entry made
  • 📚 documentation written (release notes, API changes, ...)
  • Backports
    • Backport for 3.12.0: (Please link PR)
    • Backport for 3.11: (Please link PR)
    • Backport for 3.10: (Please link PR)

Related Information

(Please reference tickets / specification / other PRs etc)

  • Docs PR:
  • Enterprise PR:
  • GitHub issue / Jira ticket:
  • Design document:

@cla-bot cla-bot bot added the cla-signed label Sep 17, 2025
@jbajic jbajic self-assigned this Sep 17, 2025
Copy link
Contributor

@jvolmer jvolmer left a comment

Choose a reason for hiding this comment

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

LGTM

@neunhoef neunhoef merged commit e3dca15 into devel Sep 17, 2025
6 checks passed
@neunhoef neunhoef deleted the bug-fix/fix-use-after-free branch September 17, 2025 09:28
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.

5 participants