Actions
Bug #4251
closedSegmentation fault when using ruby-prof and Ruby 1.9.2
Bug #4251:
Segmentation fault when using ruby-prof and Ruby 1.9.2
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:
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
Actions