[#62904] [ruby-trunk - Feature #9894] [Open] [RFC] README.EXT: document rb_gc_register_mark_object — normalperson@...
Issue #9894 has been reported by Eric Wong.
3 messages
2014/06/02
[#63321] [ANN] ElixirConf 2014 - Don't Miss Jos辿 Valim and Dave Thomas — Jim Freeze <jimfreeze@...>
Just a few more weeks until ElixirConf 2014!
6 messages
2014/06/24
[ruby-core:63279] [ruby-trunk - Feature #9805] [Closed] Backtrace for SystemStackError
From:
nobu@...
Date:
2014-06-23 02:35:26 UTC
List:
ruby-core #63279
Issue #9805 has been updated by Nobuyoshi Nakada.
Status changed from Open to Closed
Applied in changeset r46502.
----------
Backtrace for SystemStackError
* eval.c (setup_exception): set backtrace in system stack error
other than the pre-allocated sysstack_error. [Feature #6216]
* proc.c (Init_Proc): freeze the pre-allocated sysstack_error.
* vm_insnhelper.c (vm_stackoverflow): raise new instance for each
times without calling any methods to keep the backtrace with no
further stack overflow.
----------------------------------------
Feature #9805: Backtrace for SystemStackError
https://bugs.ruby-lang.org/issues/9805#change-47327
* Author: Tsuyoshi Sawada
* Status: Closed
* Priority: Normal
* Assignee:
* Category:
* Target version:
----------------------------------------
The following code:
def a; a end
begin
a
rescue => e
puts e.backtrace.inspect
end
only returns a single line of backtrace like:
/tmp/scratch:3:in `a'
but this is not helpful when debugging. It would be better if some limit be set by configuration, and the backtrace is displayed as far as possible within the limit, so the case above would become:
/tmp/scratch:3:in `a'
/tmp/scratch:3:in `a'
/tmp/scratch:3:in `a'
... # repeated as many times as the limit set
/tmp/scratch:3:in `a'
I believe the same question was asked here: https://bugs.ruby-lang.org/issues/6216, but the code posted by the poster was unnecessarily long and complex that the intent was not clear to many people.
--
https://bugs.ruby-lang.org/