Bug #8907

Application crashed while debugging with debugger gem.

Added by Chandan Kumar 7 months ago. Updated 7 months ago.

[ruby-core:57181]
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

Description

I had installed debugger gem on Rails 4 application, and had put "debugger" inside controller's private method(beforeaction method). Below is the code snippet from userscontroller.rb.

Rails 4.0.0

class UsersController < ApplicationController
beforeaction :issigned_in, only: [:new, :create]

def new
@user = User.new

end

def create
@user = User.new(userparams)
if @user.save
sign
in @user
flash[:success] = "Welcome to the Sample App!"
redirect_to @user
else
render 'new'
end
end

private
def issignedin
debugger
redirectto(rooturl) 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 :removebreakpoint
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
processcommands'
/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 processcommands'
/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

ruby_2013-09-14-040405_Chandans-MacBook-Pro.crash (15.9 KB) Chandan Kumar, 09/14/2013 08:01 AM

ruby_2013-09-14-040504_Chandans-MacBook-Pro.crash (31.4 KB) Chandan Kumar, 09/14/2013 08:01 AM

History

#1 Updated by Nobuyoshi Nakada 7 months ago

  • Description updated (diff)
  • Status changed from Open to Third Party's Issue

Old 'debugger' gem doesn't support 2.0 or later.
Use other tools.

Also available in: Atom PDF