Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle segfault in Ruby 2.6.6 on thread-locals (#2567)
When you're trying to access a thread-local variable on Ruby < 2.7, and you call `thread_variable_get` on a `Process::Waiter` (a subclass of `Thread`), it will segfault. This adds a check for which Ruby version you're on to make it safe for Ruby 2.6. Fixes #2566.
- Loading branch information
Kevin Newton
committed
Apr 19, 2021
1 parent
28a4cb2
commit 366496b
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters