Project

General

Profile

Actions

Bug #2959

closed

IO#codepoints crashes MRI/mingw on Windows

Added by vvs (Vladimir Sizikov) about 12 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
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 #1

Updated by nobu (Nobuyoshi Nakada) about 12 years ago

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

=begin
This issue was solved with changeset r26926.
Vladimir, 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