Project

General

Profile

Actions

Bug #9230

closed

Segmentation fault in Ruby trunk

Added by hsbt (Hiroshi SHIBATA) almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.1.0dev (2013-12-09 trunk 44085) [x86_64-darwin13.0]
[ruby-core:58991]

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


Files

ruby_2013-12-09-122429_pmac021s.crash (19.9 KB) ruby_2013-12-09-122429_pmac021s.crash hsbt (Hiroshi SHIBATA), 12/09/2013 06:20 PM
rails-with-newrelic-segv.txt (235 KB) rails-with-newrelic-segv.txt hsbt (Hiroshi SHIBATA), 12/09/2013 06:20 PM
Actions #1

Updated by tmm1 (Aman Karmani) almost 11 years 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] [ruby-core:58991]
  • test/ruby/test_hash.rb: regression test for above

Updated by hsbt (Hiroshi SHIBATA) almost 11 years ago

Thank you! I confirmed to fix this issue at r44096

Actions

Also available in: Atom PDF

Like0
Like0Like0