Project

General

Profile

Bug #3100

Updated by jeremyevans0 (Jeremy Evans) over 2 years ago

=begin 
  
  I was using PTY.spawn and found a bug. I'm attaching a small testcase that at least on 2 my machines gives quite probable ruby process lockup in child. 
 
  I'm also attaching gdb backtrace of locked up child. It can be seen that we're stuck in NTPL's low-level lock that protects timer thread condition variable. So it looks like I'm doing fork at 'right' time, when this condition is being signaled in parent. 
 
  P.S. I'm categorizing it as core even though I can reproduce this only via PTY.spawn, 'cause pty.c looks very much innocent. 
 
 =end 
 

Back