Project

General

Profile

Actions

Bug #10061

closed

Segmentation fault

Bug #10061: Segmentation fault

Added by Anonymous over 11 years ago. Updated over 11 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
[ruby-core:63818]

Description

array = [] 100000.times { array = [array] } puts array 
bug.rb:4: [BUG] Segmentation fault at 0x007fffaa0e0ff8 ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux] -- Control frame information ----------------------------------------------- c:0004 p:---- s:0011 e:000010 CFUNC :puts c:0003 p:---- s:0009 e:000008 CFUNC :puts c:0002 p:0022 s:0005 E:0022c0 EVAL bug.rb:4 [FINISH] c:0001 p:0000 s:0002 E:0020c8 TOP [FINISH] -- Ruby level backtrace information ---------------------------------------- bug.rb:4:in `<main>' bug.rb:4:in `puts' bug.rb:4:in `puts' 

Updated by nobu (Nobuyoshi Nakada) over 11 years ago Actions #1 [ruby-core:63825]

  • Status changed from Open to Feedback
  • Priority changed from Normal to 3
  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED

It's a machine stack overflow, and should be fixed already.
Try recent versions.

Updated by Anonymous over 11 years ago Actions #2 [ruby-core:63884]

Nobuyoshi Nakada wrote:

It's a machine stack overflow, and should be fixed already.
Try recent versions.

ruby 2.2.0dev (2014-07-20 trunk 46879) [x86_64-linux]

Segmentation fault is fixed.

bug.rb:3:in `puts': stack level too deep (SystemStackError) from bug.rb:3:in `puts' from bug.rb:3:in `<main>' 

Updated by nobu (Nobuyoshi Nakada) over 11 years ago Actions #3 [ruby-core:63887]

  • Status changed from Feedback to Closed
Actions

Also available in: PDF Atom