Project

General

Profile

Actions

Bug #3283

closed

SystemStackError Backtrace returns String not Array

Added by pwagenet (Peter Wagenet) about 12 years ago. Updated about 11 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

Actions #1

Updated by ernie (Ernie Miller) about 12 years ago

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

Actions #2

Updated by mame (Yusuke Endoh) about 12 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

Actions

Also available in: Atom PDF