Bug #9230

Segmentation fault in Ruby trunk

Added by Hiroshi SHIBATA over 1 year ago. Updated over 1 year ago.

[ruby-core:58991]
Status:Closed
Priority:High
Assignee:Aman Gupta
ruby -v:ruby 2.1.0dev (2013-12-09 trunk 44085) [x86_64-darwin13.0] Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

I always got Segmentation fault in trunk. I can reproduce follow situation:

$ rails new foo

add 'newrelic_rpm' to Gemfile on Foo Application.

$ bundle exec rails console

crash log is attached.

I investigate this issue, it is caused by r44060

ruby_2013-12-09-122429_pmac021s.crash (19.9 KB) Hiroshi SHIBATA, 12/09/2013 06:20 PM

rails-with-newrelic-segv.txt Magnifier (235 KB) Hiroshi SHIBATA, 12/09/2013 06:20 PM

Associated revisions

Revision 44096
Added by Aman Gupta over 1 year ago

hash.c: fix segv in Hash#replace

  • hash.c (rb_hash_replace): fix segv on {}.replace({}) introduced in r44060 [Bug #9230]
  • test/ruby/test_hash.rb: regression test for above

Revision 44096
Added by Aman Gupta over 1 year ago

hash.c: fix segv in Hash#replace

  • hash.c (rb_hash_replace): fix segv on {}.replace({}) introduced in r44060 [Bug #9230]
  • test/ruby/test_hash.rb: regression test for above

History

#1 Updated by Aman Gupta over 1 year ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r44096.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


hash.c: fix segv in Hash#replace

  • hash.c (rb_hash_replace): fix segv on {}.replace({}) introduced in r44060 [Bug #9230]
  • test/ruby/test_hash.rb: regression test for above

#2 Updated by Hiroshi SHIBATA over 1 year ago

Thank you! I confirmed to fix this issue at r44096

Also available in: Atom PDF