ports/36998: rsync requires -O2 on BSD to avoid segv?

Anders Nordby anders at fix.no
Sun Apr 21 09:03:03 EST 2002


Hello,

On Sun, Apr 21, 2002 at 08:29:36AM -0700, Martin Pool wrote:
>> # rsync -azv \
>> rsync://sunsite.dk/ftp//mirrors/mysql/Downloads/Contrib/MyAccess.mda .
> Works fine for me using rsync's upstream HEAD and 2.5.5 release.  So
> it seems like it must be either something in BSD's patches, or
> something about your compiler, or possibly something else.
> 
> Could you please try building from upstream source and let me know?

Did a checkout of HEAD, built with CFLAGS: -O -pipe on FreeBSD -STABLE
from 15th of april. Still segfaults:

# export CVSROOT=:pserver:cvs at pserver.samba.org:/cvsroot
# cvs co rsync
(..)
# cd rsync
# CFLAGS="-O -pipe" ./configure --disable-debug --enable-ipv6
(..)
# make
(..)
# ./rsync --version
rsync  version 2.5.6cvs  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, 
              IPv6, 32-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.
# ./rsync -azv
rsync://sunsite.dk/ftp//mirrors/mysql/Downloads/Contrib/MyAccess.mda .
(non-interesting text snipped..)
receiving file list ... done
MyAccess.mda
rsync: connection unexpectedly closed (930 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)

Compiler is gcc 2.95.3.

Cheers,

-- 
Anders.




More information about the rsync mailing list