Project

General

Profile

Actions

Bug #17875

closed

Segfault when reusing a closed Fiber scheduler inside a Thread

Added by rmosolgo (Robert Mosolgo) about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:103923]

Description

Hi! I've been trying to learn the new Fiber.scheduler API. I ran into this segfault when I was misusing scheduler instances in Minitest. I was able to reproduce the bug in isolation and I thought I'd share it here in case it's helpful to anyone.

I attached the program as scheduler_bug.rb and the output in bug_output.txt. I expected this program to terminate with an error, but not with a segfault.

If there's anything else I can do to help, please let me know! Thanks,

Robert


Files

scheduler_bug.rb (4.92 KB) scheduler_bug.rb rmosolgo (Robert Mosolgo), 05/20/2021 08:10 PM
bug_output.txt (24.1 KB) bug_output.txt rmosolgo (Robert Mosolgo), 05/20/2021 08:10 PM
Actions

Also available in: Atom PDF