ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:71668] [Ruby trunk - Bug #11738] [Open] ARGF.readpartial raises a wrong exception
       [not found] <redmine.issue-11738.20151125010718@ruby-lang.org>
@ 2015-11-25  1:07 ` shugo
  2015-11-25  1:15   ` [ruby-core:71669] " Eric Wong
  2015-11-25  2:00 ` [ruby-core:71671] [Ruby trunk - Bug #11738] " shugo
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 5+ messages in thread
From: shugo @ 2015-11-25  1:07 UTC (permalink / raw)
  To: ruby-core

Issue #11738 has been reported by Shugo Maeda.

----------------------------------------
Bug #11738: ARGF.readpartial raises a wrong exception
https://bugs.ruby-lang.org/issues/11738

* Author: Shugo Maeda
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.0dev (2015-11-09 trunk 52500) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
ARGF.readpartial raises a RuntimeError when EOF is detected more than twice:

```
lexington:ruby$ cat t.rb
p ARGF.readpartial(16) rescue nil
p ARGF.readpartial(16)
lexington:ruby$ ruby t.rb /dev/null
t.rb:2:in `readpartial': can't modify frozen NilClass (RuntimeError)
	from t.rb:2:in `<main>'
lexington:ruby$
```

An EOFError is expected.




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:71669] Re: [Ruby trunk - Bug #11738] [Open] ARGF.readpartial raises a wrong exception
  2015-11-25  1:07 ` [ruby-core:71668] [Ruby trunk - Bug #11738] [Open] ARGF.readpartial raises a wrong exception shugo
@ 2015-11-25  1:15   ` Eric Wong
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Wong @ 2015-11-25  1:15 UTC (permalink / raw)
  To: Ruby developers

1.9.3, 2.0.0, and 2.1 branches segfault for me, even.
Current bug is 2.2+

I might have time to look at this tomorrow if nobody beats me to it.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:71671] [Ruby trunk - Bug #11738] ARGF.readpartial raises a wrong exception
       [not found] <redmine.issue-11738.20151125010718@ruby-lang.org>
  2015-11-25  1:07 ` [ruby-core:71668] [Ruby trunk - Bug #11738] [Open] ARGF.readpartial raises a wrong exception shugo
@ 2015-11-25  2:00 ` shugo
  2015-11-29  9:10 ` [ruby-core:71734] " nagachika00
  2015-11-30 12:20 ` [ruby-core:71752] " usa
  3 siblings, 0 replies; 5+ messages in thread
From: shugo @ 2015-11-25  2:00 UTC (permalink / raw)
  To: ruby-core

Issue #11738 has been updated by Shugo Maeda.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED

Eric Wong wrote:
> 1.9.3, 2.0.0, and 2.1 branches segfault for me, even.
>  Current bug is 2.2+

Thanks for your check.

I've fixed the bug in trunk, and have set the Backport field of this ticket.


----------------------------------------
Bug #11738: ARGF.readpartial raises a wrong exception
https://bugs.ruby-lang.org/issues/11738#change-55074

* Author: Shugo Maeda
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.0dev (2015-11-09 trunk 52500) [x86_64-linux]
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED
----------------------------------------
ARGF.readpartial raises a RuntimeError when EOF is detected more than twice:

```
lexington:ruby$ cat t.rb
p ARGF.readpartial(16) rescue nil
p ARGF.readpartial(16)
lexington:ruby$ ruby t.rb /dev/null
t.rb:2:in `readpartial': can't modify frozen NilClass (RuntimeError)
	from t.rb:2:in `<main>'
lexington:ruby$
```

An EOFError is expected.




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:71734] [Ruby trunk - Bug #11738] ARGF.readpartial raises a wrong exception
       [not found] <redmine.issue-11738.20151125010718@ruby-lang.org>
  2015-11-25  1:07 ` [ruby-core:71668] [Ruby trunk - Bug #11738] [Open] ARGF.readpartial raises a wrong exception shugo
  2015-11-25  2:00 ` [ruby-core:71671] [Ruby trunk - Bug #11738] " shugo
@ 2015-11-29  9:10 ` nagachika00
  2015-11-30 12:20 ` [ruby-core:71752] " usa
  3 siblings, 0 replies; 5+ messages in thread
From: nagachika00 @ 2015-11-29  9:10 UTC (permalink / raw)
  To: ruby-core

Issue #11738 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE

Backported into `ruby_2_2` branch at r52788.

----------------------------------------
Bug #11738: ARGF.readpartial raises a wrong exception
https://bugs.ruby-lang.org/issues/11738#change-55139

* Author: Shugo Maeda
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.0dev (2015-11-09 trunk 52500) [x86_64-linux]
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE
----------------------------------------
ARGF.readpartial raises a RuntimeError when EOF is detected more than twice:

```
lexington:ruby$ cat t.rb
p ARGF.readpartial(16) rescue nil
p ARGF.readpartial(16)
lexington:ruby$ ruby t.rb /dev/null
t.rb:2:in `readpartial': can't modify frozen NilClass (RuntimeError)
	from t.rb:2:in `<main>'
lexington:ruby$
```

An EOFError is expected.




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:71752] [Ruby trunk - Bug #11738] ARGF.readpartial raises a wrong exception
       [not found] <redmine.issue-11738.20151125010718@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2015-11-29  9:10 ` [ruby-core:71734] " nagachika00
@ 2015-11-30 12:20 ` usa
  3 siblings, 0 replies; 5+ messages in thread
From: usa @ 2015-11-30 12:20 UTC (permalink / raw)
  To: ruby-core

Issue #11738 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE to 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE

ruby_2_1 r52800 merged revision(s) 52745.

----------------------------------------
Bug #11738: ARGF.readpartial raises a wrong exception
https://bugs.ruby-lang.org/issues/11738#change-55163

* Author: Shugo Maeda
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.0dev (2015-11-09 trunk 52500) [x86_64-linux]
* Backport: 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE
----------------------------------------
ARGF.readpartial raises a RuntimeError when EOF is detected more than twice:

```
lexington:ruby$ cat t.rb
p ARGF.readpartial(16) rescue nil
p ARGF.readpartial(16)
lexington:ruby$ ruby t.rb /dev/null
t.rb:2:in `readpartial': can't modify frozen NilClass (RuntimeError)
	from t.rb:2:in `<main>'
lexington:ruby$
```

An EOFError is expected.




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-30 11:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-11738.20151125010718@ruby-lang.org>
2015-11-25  1:07 ` [ruby-core:71668] [Ruby trunk - Bug #11738] [Open] ARGF.readpartial raises a wrong exception shugo
2015-11-25  1:15   ` [ruby-core:71669] " Eric Wong
2015-11-25  2:00 ` [ruby-core:71671] [Ruby trunk - Bug #11738] " shugo
2015-11-29  9:10 ` [ruby-core:71734] " nagachika00
2015-11-30 12:20 ` [ruby-core:71752] " usa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).