Project

General

Profile

Bug #13688

Thread overflow hangs ruby (not responding ^C)

Added by shyouhei (Shyouhei Urabe) about 2 years ago. Updated about 12 hours ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-06-27 trunk 59183) [x86_64-darwin15]
[ruby-core:81801]

Description

Passing the attached file makes hang.


Files

hang.rb (33 Bytes) hang.rb shyouhei (Shyouhei Urabe), 06/28/2017 03:50 AM
thread-hang-13688.patch (2.24 KB) thread-hang-13688.patch jeremyevans0 (Jeremy Evans), 08/25/2019 07:17 PM

History

Updated by jeremyevans0 (Jeremy Evans) about 12 hours ago

This bug still occurs in the master branch. Attached is a patch that fixes it by checking for interrupts before calling the thread's proc.

Also available in: Atom PDF