Actions
Bug #7570
closedrb_fatal() in Fiber don't terminate process
Description
rb_fatal() (C function) should terminate whole script.
Thread.start{
rb_fatal() # a extension library method calling rb_fatal()
}.resume
p :ng # => never reached here
But rb_fatal() inside Fiber could be ignored.
Fiber.start{
rb_fatal()
}.resume
p :ng # => reached here!
I think it's because TAG_FATAL is ignored in rb_vm_make_jump_tag_but_local_jump().
I'll attach a patch with a testcase.
Files
Actions
Like0
Like0Like0