[Bug 2766] New: rsync endless loop

samba-bugs at samba.org samba-bugs at samba.org
Thu Jun 2 15:28:00 GMT 2005


           Summary: rsync endless loop
           Product: rsync
           Version: 2.6.5
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: cs at emlix.com
         QAContact: rsync-qa at samba.org


for me rsync seems to get stuck in an endless loop (burning cpu cycles at 100%)
when syncing between two local directories. This hang only occurs once in a
while (every other week) while the same command succeeds many times daily. 

Here are the details I gathered so far:
backup # ps axf
24691 ?        S      0:00  |   |   \_ /bin/bash /root/bin/backup.external
 2226 ?        R    532:18  |   |       \_ /root/bin/rsync -v --archive --delete
/backup/zserv/ daily.0/zserv
 2227 ?        S      0:00  |   |           \_ /root/bin/rsync -v --archive
--delete /backup/zserv/ daily.0/zserv

The log-file (from the -v output) is stuck right after
 building file list ... 

backup # netstat -anp|grep rsync
unix  3      [ ]         STREAM     CONNECTED     5569523 2227/rsync          
unix  3      [ ]         STREAM     CONNECTED     5569522 2226/rsync          
unix  3      [ ]         STREAM     CONNECTED     5569521 2226/rsync          
unix  3      [ ]         STREAM     CONNECTED     5569520 2227/rsync          

backup # strace -p 2226
Process 2226 attached - interrupt to quit
Process 2226 detached

backup # strace -p 2227
Process 2227 attached - interrupt to quit
select(1, [0], [], NULL, {40, 118000})  = 0 (Timeout)
select(1, [0], [], NULL, {60, 0} <unfinished ...>
Process 2227 detached

backup # rsync --version
rsync  version 2.6.5cvs  protocol version 29
Copyright (C) 1996-2005 by Andrew Tridgell and others
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, 
              inplace, IPv6, 64-bit system inums, 64-bit internal inums

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.
(pulled from CVS on 2005-5-9)

But I experienced this behaviour also on older rsync versions.

Any further information I should gather?



Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the rsync mailing list