From: Nate Westheimer <nate.westhei...@gmail.com>
Date: Tue, 10 Apr 2012 19:08:06 -0400
Local: Tues, Apr 10 2012 7:08 pm
Subject: Re: Ruby Tempfile can cause unexpected infinite loop in REE 1.8.7
Ahh, shoot. Thanks. Seems Google Groups had just appended a period to the On Tue, Apr 10, 2012 at 7:04 PM, Michael Chletsos <mpchl...@gmail.com>wrote: > take the period out of the link
> https://github.com/twitter/rubyenterpriseedition187-248/commit/83fc22 > On Tue, Apr 10, 2012 at 1:02 PM, Chehai WU <wuche...@gmail.com> wrote: > > On Tue, Apr 10, 2012 at 2:15 PM, Nate Westheimer < > >> Hey All, > >> That link to Twitter's GH is broken. Can anyone point me to a > >> Thanks, > >> On Thursday, August 25, 2011 1:25:03 AM UTC-4, WU Chehai wrote: > >>> Thanks very much! We are going to use your patch. > >>> On Jul 29, 11:03 am, Evan Weaver <ewea...@gmail.com> wrote: > >>> > It was causing a horrible fault for us where the readfds for the curr > >>> > REE also calls rb_gc_finalize_deferred() at the end of a collection, > >>> > Evan > >>> > On Tue, Jan 18, 2011 at 5:45 PM, WU Chehai <wuche...@gmail.com> > >>> > > The regular Ruby 1.8.7 finalizes objects every time a node is > >>> > > Therefore, this is a bug in current REE 1.8.7 > >>> > > On Jan 17, 4:34 pm, WU Chehai <wuche...@gmail.com> wrote: > >>> > >> The following code ends up an infinite loop > >>> > >> require "tempfile" > >>> > >> Our analysis shows that there is a race condition in REE 1.8.7: > >>> > >> - When a thread finishes running, REE/Ruby dequeues it > >>> > >> - rb_thread_schedule invokes rb_gc_finalize_deferred before > >>> > >> - rb_gc_finalize calls finalizer on Ruby Tempfile object. The > >>> > >> - rb_thread_fd_close has a loop to iterate over all threads. > >>> > >> - However, the current thread is already dequeued (it points to > >>> > >> We believe this issue also exists in regular Ruby 1.8.7, but we > >>> > >> Thanks > >>> > > -- > >> -- > >> To post to this group, send email to emm-ruby@googlegroups.com. > > -- > -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||