Project

General

Profile

Actions

Bug #4251

closed

Segmentation fault when using ruby-prof and Ruby 1.9.2

Added by evanchaney (Evan Chaney) over 13 years ago. Updated almost 13 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
Backport:
[ruby-core:34244]

Description

=begin
ISSUE

Segmentation faults occur when profiling Rails 3 controller actions that add new objects to the database using Ruby 1.9.2 and ruby-prof.

EXPECTED BEHAVIOR

  • ruby-prof profile of controller action produced without issue.

ACTUAL BEHAVIOR

  • Ruby terminates with a segmentation fault during execution of controller action.

TROUBLESHOOTING/REDUCTION

  • Created new, empty Rails 3.0.3 project. Added one resource with no attributes, methods. Added profiling of 1000 creates of the resource in ItemsController#index action.
  • Ran "rails server" using Ruby 1.9.2 p0. Loaded http://localhost:3000/items in browser. Server crashed with segmentation fault.
  • Ran "rails server" using Ruby 1.8.7 p302. Loaded same URI. Action executed without issue.
  • Repeated this test under different OS using same project files and Ruby 1.9.2 p0. Issue persisted.

SYSTEM CONFIGURATION

  • Ruby 1.9.2 p0
  • Rails 3.0.3
  • ruby-prof 0.9.2
  • Mac OS X 10.6.6
    =end

Files

segfaulter.zip (118 KB) segfaulter.zip Test case referred to in troubleshooting description evanchaney (Evan Chaney), 01/08/2011 12:33 PM
segfaulter_backtrace.txt (21.4 KB) segfaulter_backtrace.txt Backtrace from segmentation fault evanchaney (Evan Chaney), 01/08/2011 12:33 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0