rsync: --delete fails with multiple source directories
farrare at clcsmail.ksc.nasa.gov
Mon Jul 22 13:21:25 EST 2002
Thanks for the response. I'm not a programmer, so I'm struggling with your
request. But, I was able to produce the output below. Please let me know if
this helps. I tried to reproduce the problem on a smaller scale using tmp
files, but I was unsuccessful. I'll keep trying to come up with a small
Again, thanks for the help,
core file header read successfully
program terminated by signal SEGV (no mapping at the fault address)
Current function is flist_find
420 while (!flist->files[i]->basename) i++;
=> flist_find(flist = 0x570d0, f = 0x68e28), line 420 in "rsync.h"
 delete_files(flist = 0x570d0), line 148 in "receiver.c"
 do_recv(f_in = 0, f_out = 1, flist = 0x570d0, local_name = (nil)), line
371 in "main.c"
 do_server_recv(f_in = 0, f_out = 1, argc = 1, argv = 0xffbef9c4), line
491 in "main.c"
 start_server(f_in = 0, f_out = 1, argc = 2, argv = 0xffbef9c0), line 519
 local_child(argc = 2, argv = 0xffbef9c0, f_in = 0xffbefbc4, f_out =
0xffbefbc0), line 212 in "util.c"
 do_cmd(cmd = (nil), machine = (nil), user = (nil), path = 0x570b8
"/OS/2.6/FIRM", f_in = 0xffbefbc4, f_out = 0xffbefbc0), line 234 in "main.c"
 start_client(argc = 2, argv = 0x565f8), line 772 in "main.c"
 main(argc = 3, argv = 0x565f8), line 921 in "main.c"
Dave Dykstra wrote:
> That's not enough information for us to be able to do anything with.
> Can you at least find a stack backtrace in the core file? If you could
> boil it down into something that someone else could reproduce that would
> help a lot.
> - Dave Dykstra
> On Mon, Jul 22, 2002 at 07:19:26AM -0400, Edward Farrar wrote:
> > Hello,
> > Rsync 2.5.5 is producing this error message and a core file when executing the
> > command "/usr/local/bin/rsync -av --delete --force /net/OSCM/OS_ATLAS2/CONFIG/.
> > /net/OSCM/OS_TITAN1/2.6/CONFIG/. /OS/2.6/CONFIG"
> > building file list ... done
> > rsync: connection unexpectedly closed (8 bytes read so far)
> > rsync error: error in rsync protocol data stream (code 12) at io.c(150)
> > The /net/OSCM directory is an NFS mounted file system. The /OS directory is
> > local. From reading the man pacge for rsync, one of the syntax options is
> > "rsync [OPTION]... SRC [SRC]... DEST ". The two source directories contain
> > several files with the same name. I am unsure how rsync selects which file to
> > transfer, but it appears to be the file with the most recent date. Is that
> > correct?
> > My basic goal is to merge the two source directories, choosing the most recent
> > file in either directory if a duplicate name exists, and then deleting any
> > "extra" files in the destination directory.
> > Any insight and help is greatly appreciated. I have searched the web and as
> > much documentation I could find, but have been unsuccessful in finding a
> > solution. I have also tried versions 2.5.4 and 2.3.1 with the same results.
> > Thanks,
> > Ed Farrar
> > -----------
> > system names removed for security reasons......
> > # uname -a
> > SunOS XXXXXXXXXXXXXXXXXX 5.8 Generic_108528-11 sun4u sparc
> > SUNW,Ultra-Enterprise
> > # /usr/local/bin/rsync --version
> > rsync version 2.5.5 protocol version 26
> > Copyright (C) 1996-2002 by Andrew Tridgell and others
> > <http://rsync.samba.org/>
> > Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
> > no 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.
> > # df -k /net/OSCM /OS
> > Filesystem kbytes used avail capacity Mounted on
> > XXXXXXXXX:/sol/oscm 41943040 29256720 12650144 70% /net/OSCM
> > /dev/md/dsk/d0 17402262 14459697 2768543 84% /OS
> > # du -sk /net/OSCM/OS_ATLAS2/CONFIG/. /net/OSCM/OS_TITAN1/2.6/CONFIG/.
> > 320 /net/OSCM/OS_ATLAS2/CONFIG/.
> > 368 /net/OSCM/OS_TITAN1/2.6/CONFIG/.
> > --
> > To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
> > Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Edward T. Farrar, Sr. UNIX Systems Analyst/Security Administrator
CLCS Project, farrare at clcsmail.ksc.nasa.gov, 321-861-2298
"Above all else, guard your heart, for it is the wellspring of life."
- King Solomon, Proverbs 4:23
More information about the rsync