Skip to content

Fix invalid memory accesses on exit #331

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
Mar 13, 2025
Merged

Conversation

jmakovicka
Copy link
Contributor

rtorrent now segfaults in Manager::remove_controller after adding a new magnet link when nothing is being downloaded yet.

@neheb
Copy link
Contributor

neheb commented Mar 12, 2025

would be great to transition to C++20 to get std::erase_if eventually.

DHT controller removes itself from the throttle list on destruction,
so it must be destroyed before the throttles.
@jmakovicka jmakovicka changed the title Fix the erase-remove-if idiom causing a SEGV Fix invalid memory accesses on exit Mar 13, 2025
@rakshasa rakshasa merged commit bfaef55 into rakshasa:master Mar 13, 2025
2 checks passed
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