Wind River Support Network


LIN6-8984 : CLONE - rsync may hung if time jumps backwards

Created: Dec 3, 2014    Updated: Dec 3, 2018
Resolved Date: Dec 24, 2014
Previous ID: LIN4-32057
Found In Version: 6.0
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace


If we change system time backwards, rsync daemon may hung. The defect have been fixed in rsync 3.1.0. The change log is 'Fix an issue in the msleep() function if time jumps backwards' on

Steps to Reproduce

1. create and build a project:/home/james/WindRiver-4.3/wrlinux-4/wrlinux/../ldat/configure --enable-board=common_pc_64 --enable-kernel=standard --enable-rootfs=glibc_std --with-product-dir=/home/james/WindRiver-4.3/wrlinux-4/wrlinux

2. configure and startup rsync service
copy attached 'rsyncd.conf' to /etc
echo '"root:123456" > /etc/backserver.pas
chmod 600 /etc/backserver.pas
change 'disable = yes' to 'disable = no' in '/etc/xinetd.d/rsync'
/etc/init.d/xinetd restart
echo "123456" > /root/my.secrets
chmod 600  /root/my.secrets
mkdir /root/a
mkdir /root/b
dd if=/dev/zero of=/root/b/1 bs=1M count=1
dd if=/dev/zero of=/root/b/2 bs=1M count=1
dd if=/dev/zero of=/root/b/3 bs=1M count=1
dd if=/dev/zero of=/root/b/4 bs=1M count=1
dd if=/dev/zero of=/root/b/5 bs=1M count=1

3. start testcase
./ > /dev/null &

4. after while there will print error info as below, and we can see that rsync deamon hung by 'ps'
rsync error: error starting client-server protocol (code 5) at main.c(1383) [sender=2.6.9]
@ERROR: max connections (4) reached -- try again later

Other Downloads

Live chat