From: "nobu (Nobuyoshi Nakada)" Date: 2013-09-14T10:44:08+09:00 Subject: [ruby-core:57184] [ruby-trunk - Bug #8907][Third Party's Issue] Application crashed while debugging with debugger gem. Issue #8907 has been updated by nobu (Nobuyoshi Nakada). Description updated Status changed from Open to Third Party's Issue Old 'debugger' gem doesn't support 2.0 or later. Use other tools. ---------------------------------------- Bug #8907: Application crashed while debugging with debugger gem. https://bugs.ruby-lang.org/issues/8907#change-41803 Author: indyarocks (Chandan Kumar) Status: Third Party's Issue Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin11.4.2] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN I had installed debugger gem on Rails 4 application, and had put "debugger" inside controller's private method(before_action method). Below is the code snippet from users_controller.rb. Rails 4.0.0 class UsersController < ApplicationController before_action :is_signed_in, only: [:new, :create] def new @user = User.new end def create @user = User.new(user_params) if @user.save sign_in @user flash[:success] = "Welcome to the Sample App!" redirect_to @user else render 'new' end end private def is_signed_in debugger redirect_to(root_url) if signed_in? end end Though I'm not able to reproduce it, still thought of sharing it here. I could find two crash reports in my Library.. Attaching both of them. Here is the trace: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin11.4.2] -- Crash Report log information -------------------------------------------- See Crash Report log file under the one of following: * ~/Library/Logs/CrashReporter * /Library/Logs/CrashReporter * ~/Library/Logs/DiagnosticReports * /Library/Logs/DiagnosticReports the more detail of. -- Control frame information ----------------------------------------------- c:0009 p:---- s:0038 e:000037 CFUNC :remove_breakpoint c:0008 p:0037 s:0034 e:000033 BLOCK /Users/Chandan/.rvm/gems/ruby-2.0.0-p247@rails4/gems/debugger-1.6.1/lib/ruby-debug/commands/breakpoints.rb:130 [FINISH] c:0007 p:---- s:0031 e:000030 CFUNC :each c:0006 p:0028 s:0028 e:000027 METHOD /Users/Chandan/.rvm/gems/ruby-2.0.0-p247@rails4/gems/debugger-1.6.1/lib/ruby-debug/commands/breakpoints.rb:127 c:0005 p:0040 s:0024 e:000023 BLOCK /Users/Chandan/.rvm/gems/ruby-2.0.0-p247@rails4/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/ide_processor.rb:89 [FINISH] c:0004 p:---- s:0021 e:000020 CFUNC :catch c:0003 p:0066 s:0017 e:000016 METHOD /Users/Chandan/.rvm/gems/ruby-2.0.0-p247@rails4/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/ide_processor.rb:86 c:0002 p:0303 s:0010 e:000009 BLOCK /Users/Chandan/.rvm/gems/ruby-2.0.0-p247@rails4/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide.rb:122 [FINISH] c:0001 p:---- s:0002 e:000001 TOP [FINISH] /Users/Chandan/.rvm/gems/ruby-2.0.0-p247@rails4/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide.rb:122:in `block in start_control' /Users/Chandan/.rvm/gems/ruby-2.0.0-p247@rails4/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/ide_processor.rb:86:in `process_commands' /Users/Chandan/.rvm/gems/ruby-2.0.0-p247@rails4/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/ide_processor.rb:86:in `catch' /Users/Chandan/.rvm/gems/ruby-2.0.0-p247@rails4/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/ide_processor.rb:89:in `block in process_commands' /Users/Chandan/.rvm/gems/ruby-2.0.0-p247@rails4/gems/debugger-1.6.1/lib/ruby-debug/commands/breakpoints.rb:127:in `execute' /Users/Chandan/.rvm/gems/ruby-2.0.0-p247@rails4/gems/debugger-1.6.1/lib/ruby-debug/commands/breakpoints.rb:127:in `each' /Users/Chandan/.rvm/gems/ruby-2.0.0-p247@rails4/gems/debugger-1.6.1/lib/ruby-debug/commands/breakpoints.rb:130:in `block in execute' /Users/Chandan/.rvm/gems/ruby-2.0.0-p247@rails4/gems/debugger-1.6.1/lib/ruby-debug/commands/breakpoints.rb:130:in `remove_breakpoint' -- C level backtrace information ------------------------------------------- -- Other runtime information ----------------------------------------------- * Loaded script: /Users/Chandan/Documents/experiments/sample_app/bin/rails * Loaded features: (snip because truncated by Redmine) Process finished with exit code 134 -- http://bugs.ruby-lang.org/