(fwd from flepied@mandrakesoft.com) rsync dead loop

Frederic Lepied flepied at mandrakesoft.com
Tue Mar 19 02:47:34 EST 2002


Martin Pool <mbp at samba.org> writes:

> On 16 Mar 2002, Martin Pool <mbp at samba.org> wrote:
> 
> > While testing a frontend to rsync, we have been bitten by rsync eating
> > all the memory of the host. We have found that it was due to rsync
> > trying to write an error and then failing to write the error and
> > trying to report that it fails to write the error and so on. I have
> > attached a patch which breaks the loop.
> 
> Thankyou for the patch.
> 
> I wonder if you can give more detailed instructions on how to
> reproduce the bug?  I suspect it happens when the network connection
> is abruptly closed.  I'd like to write a regression test for it if we
> can.

It happens when an expect script is reading the output of rsync and
closes the pipe before rsync completed its job.
-- 
Fred - May the source be with you




More information about the rsync mailing list