[#56965] [ruby-trunk - Bug #8852][Open] Synology build of ruby-2.0.0-p247 is failing — "barbecuesteve (Steve Sparks)" <sparks@...>

12 messages 2013/09/02

[#57051] [ruby-trunk - Bug #8872][Open] Case statements do not honor a refinement of the '===' method — "jconley88 (Jon Conley)" <schnozberries@...>

21 messages 2013/09/07

[#57058] [ruby-trunk - Bug #8875][Open] Select is not usable with SSLSocket — "headius (Charles Nutter)" <headius@...>

11 messages 2013/09/07

[#57074] [ruby-trunk - Bug #8879][Open] String#to_r fails after moving ruby to other OSX system — "mpapis (Michal Papis)" <mpapis@...>

12 messages 2013/09/08

[#57092] [ruby-trunk - Bug #8883][Open] Rational canonicalization unexpectedly converts to Fixnum — "melquiades (Paul Cantrell)" <cantrell@...>

16 messages 2013/09/09

[#57109] [ruby-trunk - Bug #8886][Open] TracePoint API inconsistence when raise used — deivid (David Rodríguez) <deivid.rodriguez@...>

14 messages 2013/09/10

[#57111] [ruby-trunk - Feature #8887][Open] min(n), max(n), min_by(n), max_by(n) — "akr (Akira Tanaka)" <akr@...>

13 messages 2013/09/10

[#57131] [ruby-trunk - Feature #8895][Open] Destructuring Assignment for Hash — "chendo (Jack Chen)" <ruby-lang@...>

19 messages 2013/09/11

[#57186] [ruby-trunk - Feature #8909][Open] Expand "f" frozen suffix to literal arrays and hashes — "headius (Charles Nutter)" <headius@...>

37 messages 2013/09/14

[#57262] [ruby-trunk - Feature #8921][Open] Allow select, reject, etc to accept a regex — "kyledecot (Kyle Decot)" <kyle.decot@...>

13 messages 2013/09/18

[#57273] [ruby-trunk - Feature #8923][Open] Frozen nil/true/false — "ko1 (Koichi Sasada)" <redmine@...>

13 messages 2013/09/19

[#57353] [ruby-trunk - Feature #8948][Open] Frozen regex — "sawa (Tsuyoshi Sawada)" <sawadatsuyoshi@...>

19 messages 2013/09/24

[#57385] [ruby-trunk - Bug #8953][Open] `str =~ /pattern/` does not call =~ method if (1) str is a String, (2) /pattern/ is a Regexp literal — "gfx (Goro Fuji)" <gfuji@...>

12 messages 2013/09/26

[#57396] [ruby-trunk - Feature #8956][Open] Allow hash members delimited by \n inside of {} — "adamdunson (Adam Dunson)" <adam@...>

20 messages 2013/09/26

[ruby-core:57184] [ruby-trunk - Bug #8907][Third Party's Issue] Application crashed while debugging with debugger gem.

From: "nobu (Nobuyoshi Nakada)" <nobu@...>
Date: 2013-09-14 01:44:08 UTC
List: ruby-core #57184
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/

In This Thread

Prev Next