Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193243 - net-misc/rsync-2.6.9-r3 hangs with the --remove-source-files --dry-run options when the source directory is sufficiently large
Summary: net-misc/rsync-2.6.9-r3 hangs with the --remove-source-files --dry-run option...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://bugzilla.samba.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-20 20:14 UTC by David Leverton
Modified: 2008-03-17 03:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Leverton 2007-09-20 20:14:45 UTC
cd /tmp
mkdir foo bar
for i in `seq -w 0 99`; do touch foo/$i; done
rsync --recursive --remove-source-files --dry-run --verbose foo/ bar/

After executing the above commands, rsync prints the numbers 00 to 49 and then hangs, requiring Ctrl-C.  Both --remove-source-files and --dry-run are required to make it hang; either one on its own behaves correctly.  This occurs whether it was built with Portage or Paludis, with or without the acl USE-flag.

Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r5 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-50
Timestamp of tree: Thu, 20 Sep 2007 13:00:09 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
!!! Invalid db entry: /var/db/pkg/sys-apps/paludis-scm
sys-apps/baselayout: 1.12.9-r2
!!! Invalid db entry: /var/db/pkg/sys-apps/paludis-scm
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -pipe -fomit-frame-pointer -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/games/angband/lib/apex /var/games"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -msse3 -pipe -fomit-frame-pointer -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy ccache collision-protect distlocks sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://ftp.heanet.ie/pub/gentoo/ http://gentoo.virginmedia.com/"
LANG="en_GB.UTF-8"
LINGUAS="en_GB en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/paludis/repositories/gentoo"
PORTDIR_OVERLAY="/var/paludis/repositories/local /var/paludis/repositories/catalystframework /var/paludis/repositories/emacs /var/paludis/repositories/enlightenment /var/paludis/repositories/gentoo-haskell /var/paludis/repositories/gentoo-lisp-overlay /var/paludis/repositories/java-experimental /var/paludis/repositories/java-overlay /var/paludis/repositories/science /var/paludis/repositories/sunrise /var/paludis/repositories/texlive-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amd64 apache2 audiofile bash-completion bzip2 cairo cdr css curl dbus dri dvd dvdr dvdread emacs encode fam ffmpeg fftw ftp gif gmp gstreamer hal iconv id3 imagemagick jpeg kde kdehiddenvisibility lame lcms libcaca logrotate mad mbox midi mmx mmxext mng mp3 mpeg musicbrainz ncurses nls nptl nvidia ogg openal opengl pam png pulseaudio quicktime readline resolvconf rtsp samba sndfile speex sse sse2 ssl svg test theora timidity truetype unicode utempter vorbis x264 xattr xcb xml xpm xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2008-03-17 03:46:47 UTC
just dont use the --dry-run option and it'll work fine ;)

the fix from upstream is in rsync-3.0.0-r2