Project

General

Profile

Actions

Bug #8749

closed

Readline.readline stops STDOUT?

Added by no6v (Nobuhiro IMAI) over 11 years ago. Updated about 11 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.1.0dev (2013-08-06 trunk 42402) [x86_64-linux]
[ruby-dev:<unknown>]

Description

=begin
r42402 で、以下のようなスクリプトの挙動が変わっています。
(Enter を押すかどうかは関係なくて、)Readline.readline を実行中に標準出力への出力が出来なくなっているように見えます。

$ cat rl.rb
require "readline"

th = Thread.new do
p Readline.readline("> ")
end

loop do
p :hi
sleep 2
break unless th.alive?
end
$ ruby -v rl.rb
ruby 2.1.0dev (2013-08-06 trunk 42401) [x86_64-linux]
:hi

:hi
:hi
:hi
:hi
# しばらく放置してここで Enter
""
$ ruby -v rl.rb
$ /tmp/ruby/bin/ruby -v /tmp/r.rb
ruby 2.1.0dev (2013-08-06 trunk 42402) [x86_64-linux]
:hi
# しばらく放置してここで Enter
""
$
=end


Files

readline-release-gvl.patch (4.11 KB) readline-release-gvl.patch akr (Akira Tanaka), 08/12/2013 09:21 PM
readline-release-gvl-2.patch (4.12 KB) readline-release-gvl-2.patch akr (Akira Tanaka), 08/15/2013 01:42 PM

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #12950: irb: 'input-method.rb:151: [BUG] Segmentation fault' / 'malloc(): smallbin double linked list corrupted'Third Party's IssueActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0