[#109207] [Ruby master Feature#18915] New error class: NotImplementedYetError or scope change for NotImplementedYet — Quintasan <noreply@...>
Issue #18915 has been reported by Quintasan (Michał Zając).
18 messages
2022/07/14
[ruby-core:109171] [Ruby master Bug#18904] Mutex and Fiber: No live threads left. Deadlock? (fatal)
From:
dorianmariefr <noreply@...>
Date:
2022-07-09 12:43:54 UTC
List:
ruby-core #109171
Issue #18904 has been updated by dorianmariefr (Dorian Mari辿).
What would you suggest using instead?
----------------------------------------
Bug #18904: Mutex and Fiber: No live threads left. Deadlock? (fatal)
https://bugs.ruby-lang.org/issues/18904#change-98311
* Author: dorianmariefr (Dorian Mari辿)
* Status: Rejected
* Priority: Normal
* ruby -v: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Hi,
I was investigating an issue with the climate_control gem and minitest-around and it seems like the bug is coming from Ruby:
```ruby
def around(&block)
Fiber.new do |context, resume|
context.instance_exec(resume, &block)
end.resume
end
MUTEX = Mutex.new
around do
MUTEX.synchronize do
around do
MUTEX.synchronize do
end
end
end
end
```
```
test.rb:12:in `synchronize': No live threads left. Deadlock? (fatal)
1 threads, 1 sleeps current:0x0000000126804080 main thread:0x0000000126804080
* #<Thread:0x00000001043b8d50 sleep_forever>
rb_thread_t:0x0000000126804080 native:0x0000000104330580 int:0
from test.rb:12:in `block (3 levels) in <main>'
from test.rb:3:in `instance_exec'
from test.rb:3:in `block in around'
```
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>