Issue #8065 has been reported by kosaki (Motohiro KOSAKI).

----------------------------------------
Backport #8065: r39688 - test_queue.rb (test_thr_kill): reduce iterations from 2000 to 250. ???????????????
https://bugs.ruby-lang.org/issues/8065

Author: kosaki (Motohiro KOSAKI)
Status: Assigned
Priority: Normal
Assignee: nagachika (Tomoyuki Chikanaga)
Category: 
Target version: 


????uniprocessor??????? test_thr_kill???????????????????????失??????????????????????????????????????????????????
以????????????????????????????????

total_count.times do |i|
  open("test_thr_kill_count", "w") {|f| f.puts i }
  queue = Queue.new
  r, w = IO.pipe
  th = Thread.start {
    queue.push(nil)
    r.read 1
  }
  queue.pop
  th.kill
  th.join
end

???確?????

????Thread.start
??Queue.pop
???????????????????????????
??Queue.push
??r.read?????????中?? gvl_release()
?????????????????????????
??th.kill -> ubf_select -> pthread_kill(SIGVTALARM) ????????????
      ????????????????????????????????????????????????????
      ???????????????影?????
??th.join
?????????????????????????
???read(2) ???????
????????????????????????????????????????????
??????msec????timer thread???SIGVTALARM????????????read()???解?????????

???????????30????????300?????????????????????????????????

????証???????? [Bug #7521] ?????????????????????????確証??????????????????????????????????????



-- 
http://bugs.ruby-lang.org/