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

Memory leak when breadcrumbs contain worker thread references #12

Closed
mattbennett opened this Issue Apr 5, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@mattbennett
Copy link
Collaborator

mattbennett commented Apr 5, 2017

By default, Raven will monkey patch all loggers and transmit logged messages as breadcrumbs.

Breadcrumbs are stored in a thread-local buffer which should be released when the thread exits. But if you log anything inside the worker thread (e.g. a traceback object) that holds a reference to its thread, the thread's refcount never goes to zero and the thread-locals are not garbage collected.

@mattbennett

This comment has been minimized.

Copy link
Collaborator Author

mattbennett commented Apr 11, 2017

Fixed by #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment