Skip to content
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

filters/thread_filter: don't serialise IO objects #206

Merged
merged 1 commit into from
May 4, 2017
Merged

Conversation

kyrylo
Copy link
Contributor

@kyrylo kyrylo commented May 4, 2017

Fixes #204 (Airbrake gem segfaults on Circle CI)

I stumbled upon an edge case while running the thread filter against a
Rails app. The app would stuck because io_obj.to_json would never
return. The io_obj was open. Closed IO objects raise IOError, which
we already handle.

To make sure we avoid any kind of segfaults, we ignore
:__recursive_key__, which holds data for PrettyPrint.

@kyrylo kyrylo force-pushed the 204-segfault-fix branch from c17d018 to 975b31e Compare May 4, 2017 15:03
kyrylo added a commit that referenced this pull request May 4, 2017
@kyrylo kyrylo force-pushed the 204-segfault-fix branch 2 times, most recently from dffe657 to 73cca98 Compare May 4, 2017 16:10
Fixes #204 (Airbrake gem segfaults on Circle CI)

I stumbled upon an edge case while running the thread filter against a
Rails app. The app would stuck because `io_obj.to_json` would never
return. The `io_obj` was open. Closed IO objects raise IOError, which
we already handle.

To make sure we avoid any kind of segfaults, we ignore
`:__recursive_key__`, which holds data for PrettyPrint.
@kyrylo kyrylo force-pushed the 204-segfault-fix branch from 73cca98 to b7c554f Compare May 4, 2017 16:16
@kyrylo kyrylo merged commit 6b17911 into master May 4, 2017
@kyrylo kyrylo deleted the 204-segfault-fix branch May 4, 2017 16:23
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.

1 participant