Project

General

Profile

Actions

Bug #19611

closed

Ruby hangs up with `while true && true`

Added by tompng (tomoya ishida) about 1 year ago. Updated 12 months ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.2.0 (2022-12-25 revision a528908271) +YJIT [x86_64-darwin20]
[ruby-core:113308]

Description

Fails to run this code. It hangs up. Ctrl+C does not work.

def hoge
  while true && true
  end
end

Compiling while true && true; end will also hangs up

irb(main):001:0> RubyVM::InstructionSequence.compile 'while true && true; end'; puts :done
(no response)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0