Project

General

Profile

Actions

Bug #18444

open

Trapped TSTP causes a locking deadlock in 3.0.3 onward

Bug #18444: Trapped TSTP causes a locking deadlock in 3.0.3 onward

Added by why-el (Mohamed Wael Khobalatte) over 4 years ago. Updated 4 days ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:106867]

Description

A curious case:

ruby -e 'Signal.trap("TSTP") { puts "Received a terminal stop signal, but i will sleep instead."; sleep 10 }; loop {puts 1}'

this fails with deadlock; recursive locking (ThreadError) when I send the SIGTSTP via my terminal. This is on Mac OS Monterey (M1). It only happens in 3.0.3 and onward (I tried 3.1.0-preview1 as well, fails there too), when I try 3.0.2, the signal is handled properly.


Files

18444.log (11.8 KB) 18444.log wanabe (_ wanabe), 08/13/2026 05:05 AM

Related issues 1 (1 open0 closed)

Related to Ruby - Bug #19557: Deadlock on STDOUT(ERR) lock on signal handlerOpenActions
Actions

Also available in: PDF Atom