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

Revert work arounds for upstream Ruby 2.2.0 kwargs bug #19215

Merged

Conversation

gsamokovarov
Copy link
Contributor

The bug caused a segfault and you can find more info about it at:
https://bugs.ruby-lang.org/issues/10685.

We did a couple of work arounds, but 2.2.1 rolled out and those aren't
needed anymore.

Here are the reverted commits:

Poking @eileencodes and @jeremy.

@robin850
Copy link
Member

robin850 commented Mar 5, 2015

Maybe you can also update the ruby_version_check.rb file so this will make sure people aren't using a "segfaulting" version of Ruby ?

@gsamokovarov
Copy link
Contributor Author

Sure @robin850, that's a good idea.

# default_headers from being a keyword argument.
def initialize(status = 200, header = {}, body = [], default_headers = self.class.default_headers)
# Beware of Ruby 2.2.0 bug https://bugs.ruby-lang.org/issues/10685 as it
# causes a segfault.
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's just kill this comment, since the bug is fixed in 2.2.1

@gsamokovarov gsamokovarov force-pushed the revert-ruby-2-2-0-kwarg-crash-workarounds branch from fae84cc to 8ed0b89 Compare March 5, 2015 15:38
The bug caused a segfault and you can find more info about it at:
https://bugs.ruby-lang.org/issues/10685.

We did a couple of work arounds, but 2.2.1 rolled out and those aren't
needed anymore.

Here are the reverted commits:

- Revert "Work around for upstream Ruby bug rails#10685",
  commit 707a433.

- Revert "Fix segmentation fault in ActionPack tests",
  commit 22e0a22.

I'm also bumping the Ruby version check to 2.2.1 to prevent future
segfaults.
sgrif added a commit that referenced this pull request Mar 5, 2015
…rash-workarounds

Revert work arounds for upstream Ruby 2.2.0 kwargs bug
@sgrif sgrif merged commit f18b5fe into rails:master Mar 5, 2015
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.

None yet

3 participants