Process.daemon deadlock bug

Sam Kottler skottler at redhat.com
Fri Nov 22 19:37:52 UTC 2013



----- Original Message -----
> From: "Vít Ondruch" <vondruch at redhat.com>
> To: ruby-sig at lists.fedoraproject.org
> Sent: Thursday, November 21, 2013 5:43:32 AM
> Subject: Re: Process.daemon deadlock bug
> 
> Dne 21.11.2013 00:08, Sam Kottler napsal(a):
> > There is a pretty severe bug that's probably a good candidate for backport
> > to F20 and rawhide. The patch [1] reduces a potential deadlock with using
> > Process.daemon. I can commit the patch and build a new version for the
> > affected versions, just want to make sure people are on-board with pushing
> > this into our packages until 2.1 final is released.
> >
> > -Sam
> >
> > 1.
> > https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/41910/diff/process.c
> > _______________________________________________
> > ruby-sig mailing list
> > ruby-sig at lists.fedoraproject.org
> > https://admin.fedoraproject.org/mailman/listinfo/ruby-sig
> 
> Hi Sam,
> 
> What is the original upstream issue? Is it backported to Ruby 2.0.0 already?

https://bugs.ruby-lang.org/issues/8616

It is backported to 2.0 - http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=43142&view=revision. You can reproduce it really simply:

<code>
#!/usr/bin/env ruby
Thread.new { sleep }
Process.daemon
</code>

When that daemon is supposed to exit, it will actually require being `kill -9`'ed.

> 
> 
> Vít
> _______________________________________________
> ruby-sig mailing list
> ruby-sig at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/ruby-sig


More information about the ruby-sig mailing list