Project

General

Profile

Bug #6406

Ruby crashes with Segmentation fault

Added by shmeltex (Shmel de Tex) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
Backport:
[ruby-core:44900]

Description

Ruby consistently crashes with Segmentation fault. Gem newrelic in development mode has a link "List Threads", every time I click the link - Ruby crashes.

Steps to reproduce:

  • generate rails app
  • add gem 'newrelic' to Gemfile
  • run bundler
  • start application
  • go to localhost:3000/newrelic and click on "List Threads"

Files

ruby_2012-05-05-190111_shmeltex-mac.crash (19.6 KB) ruby_2012-05-05-190111_shmeltex-mac.crash shmeltex (Shmel de Tex), 05/06/2012 11:35 AM
crash_details.txt (128 KB) crash_details.txt shmeltex (Shmel de Tex), 05/06/2012 11:35 AM
newrelic.yml (456 Bytes) newrelic.yml shmeltex (Shmel de Tex), 05/07/2012 02:23 AM

Related issues

Is duplicate of Ruby master - Bug #5647: Possible use of uninitialized value in Init_bigdecimalClosed11/18/2011Actions

Associated revisions

Revision 0fce0545
Added by naruse (Yui NARUSE) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): define IDs before they are used. [ruby-core:44900] [Bug #6406]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 35555
Added by naruse (Yui NARUSE) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): define IDs before they are used. [ruby-core:44900] [Bug #6406]

Revision 35555
Added by naruse (Yui NARUSE) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): define IDs before they are used. [ruby-core:44900] [Bug #6406]

Revision 35555
Added by naruse (Yui NARUSE) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): define IDs before they are used. [ruby-core:44900] [Bug #6406]

Revision 35555
Added by naruse (Yui NARUSE) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): define IDs before they are used. [ruby-core:44900] [Bug #6406]

Revision 35555
Added by naruse (Yui NARUSE) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): define IDs before they are used. [ruby-core:44900] [Bug #6406]

Revision 35555
Added by naruse (Yui NARUSE) over 7 years ago

  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): define IDs before they are used. [ruby-core:44900] [Bug #6406]

Revision f4be1257
Added by naruse (Yui NARUSE) over 7 years ago

merge revision(s) 35555:

    * ext/bigdecimal/bigdecimal.c (Init_bigdecimal): define IDs before
      they are used. [ruby-core:44900] [Bug #6406]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

History

Updated by shmeltex (Shmel de Tex) over 7 years ago

Tried with ruby 1.9.3p203 (2012-05-04 revision 35536) [x86_64-darwin11.3.0] and got the same result.

Updated by naruse (Yui NARUSE) over 7 years ago

  • Status changed from Open to Feedback

Please write procedure in commands, like

  • rails g foo
  • cd foo
  • echo 'gem "newrelic"' >> Gemfile

And I failed the produce in "run bundler" as following:

% bundle
Fetching gem metadata from https://rubygems.org/.........
Could not find gem 'newrelic (>= 0) ruby' in the gems available on this machine.

Updated by shmeltex (Shmel de Tex) over 7 years ago

Sorry, made mistake in gem name, should be newrelic_rpm.

Updated step by step instruction assuming rails 3.2.x:

  • rails new foo
  • cd foo
  • echo 'gem "newrelic_rpm"' >> Gemfile
  • bundle install
  • printf "development:\n monitor_mode: false\n developer_mode: true\n" > config/newrelic.yml
  • script/rails s
  • navigate to http://localhost:3000/newrelic
  • click on "List Threads"
#4

Updated by naruse (Yui NARUSE) over 7 years ago

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

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


  • ext/bigdecimal/bigdecimal.c (Init_bigdecimal): define IDs before they are used. [ruby-core:44900] [Bug #6406]

Also available in: Atom PDF