Project

General

Profile

Actions

Bug #2959

closed

IO#codepoints crashes MRI/mingw on Windows

Added by vvs (Vladimir Sizikov) over 14 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2010-03-05 trunk 26821) [i386-mingw32]
Backport:
[ruby-core:28650]

Description

=begin
One earlier MRI 1.9.2 builds on Windows, IO#codepoints just didn't do anything.
With more recent versions, MRI crashes.

ruby -ve "File.open('TODO').codepoints{|c| p c}"

ruby 1.9.2dev (2010-03-05 trunk 26821) [i386-mingw32]
-e:1: [BUG] Segmentation fault
ruby 1.9.2dev (2010-03-05 trunk 26821) [i386-mingw32]

-- control frame ----------
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :codepoints
c:0003 p:0023 s:0006 b:0006 l:0010c4 d:000964 EVAL -e:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0010c4 d:0010c4 TOP

-- Ruby level backtrace information ----------------------------------------
-e:1:in <main>' -e:1:in codepoints'
=end

Actions

Also available in: Atom PDF

Like0
Like0