Project

General

Profile

Actions

Backport #1916

closed

File.open crashes when flags File::RDONLY | File::APPEND are passed

Added by tmat (Tomas Matousek) over 14 years ago. Updated almost 13 years ago.


Description

=begin
File.open("x.txt", File::RDONLY | File::APPEND) { |f|
p f.read(1)
}

a.rb:15: [BUG] rb_sys_fail(x.txt) - errno == 0

content of x.txt is
fooxxzzzqqqzqq
=end

Actions #1

Updated by usa (Usaku NAKAMURA) over 14 years ago

  • Assignee set to usa (Usaku NAKAMURA)

=begin

=end

Actions #2

Updated by usa (Usaku NAKAMURA) over 14 years ago

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

=begin
Applied in changeset r24496.
=end

Actions #3

Updated by shyouhei (Shyouhei Urabe) over 14 years ago

=begin
Applied in changeset r24824.
=end

Actions #4

Updated by shyouhei (Shyouhei Urabe) over 14 years ago

  • Status changed from Closed to Assigned
  • Assignee changed from usa (Usaku NAKAMURA) to wyhaines (Kirk Haines)

=begin

=end

Actions #5

Updated by wyhaines (Kirk Haines) about 14 years ago

  • Status changed from Assigned to Closed

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

Like0
Like0Like0Like0Like0Like0