Fix a use-after-free bug reported by ASAN If a fiber and thread are collected at the same time, the thread might get collected first and the pointer on the fiber will go bad. I don't think we need to check whether or not this is the main fiber in order to release its stack --- cont.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Related issues
Bug #17313: Backport 9fb60672d55162a92ab7e97b000a7e277458aab1 to Ruby 2.7
merge revision(s) 9fb60672d55162a92ab7e97b000a7e277458aab1: [Backport #17313]