Project

General

Profile

Bug #3283

SystemStackError Backtrace returns String not Array

Added by pwagenet (Peter Wagenet) over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 1.9.3dev (2010-05-12 trunk 27763) [x86_64-darwin10]
Backport:
[ruby-core:30196]

Description

=begin
In this commit http://github.com/shyouhei/ruby/commit/ecd11fb371b5f4a00d0b0006b325de3c5437b8d2 changes were introduced that affected how SystemStackError's backtrace was handled. The changes resulted in SystemStackError's backtrace returning a String instead of an Array. However, previously all backtraces have been Arrays. All available documentation supports this notion and numerous Ruby project, including Rails have relied on the backtrace being an Array. Even if the backtrace is going to be truncated as a single line, it should still be returned as a single element Array.
=end

History

#1

Updated by ernie (Ernie Miller) over 9 years ago

=begin
Seconded. Returning two different types of data in a backtrace needlessly complicates error handling code.
=end

#2

Updated by mame (Yusuke Endoh) over 9 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r27848.
Peter, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF