Hey folks, I sent this to MAINTAINER, but never heard back, I'm sure he's busy as hell.
The backups of my personal server at a remote colocation have finally gotten larger than my DLT tapes, so I'm working on building a "mirror" server to use rsync to keep a copy of everything. It's a helluva lot cheaper than upgrading to larger tapes and tape drive. I've created a passphraseless DSA key on my backups server, and I've noticed some strange behavior with rsync... If I use the passphraseless key and 'rlpte ssh' as the options given to rsync, it works fine. If I add the -o and/or -g to transfer owner and group, I get: [EMAIL PROTECTED] /mirror]# rsync -rlptoge "ssh -i /root/.ssh/id_dsa_nopass" [EMAIL PROTECTED]:/home fusion/ overflow: xflags=0x61 l1=0 l2=1006632964 lastname=home/benny [receiver] ERROR: buffer overflow in recv_file_entry [receiver] rsync error: error allocating core memory buffers (code 22) at util.c(122) [receiver=3.0.2] Hmmm. That's odd. So, I set up a DSA key with a passphrase: [EMAIL PROTECTED] /mirror]# rsync -rlptoge ssh [EMAIL PROTECTED]:/home fusion/ Enter passphrase for key '/root/.ssh/id_dsa': [EMAIL PROTECTED] /mirror]# That was successful. I tried some more configurations, such as archive mode (which is what I'm shooting for): [EMAIL PROTECTED] /mirror]# rsync -aze "ssh -i /root/.ssh/id_dsa_nopass" [EMAIL PROTECTED]:/home fusion/ overflow: xflags=0x61 l1=0 l2=1006632964 lastname=home/benny [receiver] ERROR: buffer overflow in recv_file_entry [receiver] rsync error: error allocating core memory buffers (code 22) at util.c(122) [receiver=3.0.2] [EMAIL PROTECTED] /mirror]# And again without specifying the passphraseless key, which picks up my normal key: [EMAIL PROTECTED] /mirror]# rsync -aze ssh [EMAIL PROTECTED]:/home fusion/ Enter passphrase for key '/root/.ssh/id_dsa': [EMAIL PROTECTED] /mirror]# Another success. So why, using the May 23 -CURRENT snapshot and package version of rsync, does it hit a buffer overflow when using a passphraseless key? I'd normally think it was hitting a chain of symlinks or directories or something that was throwing it for a loop, but just reverting back to ssh transport *with* a passphrase makes it work as I would expect it to. Can you help me figure out what's going wrong? Thanks much! Benny ps: Just in case: OpenBSD 4.3-current (GENERIC) #871: Fri May 23 09:05:27 MDT 2008 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: AMD Athlon(tm) XP 2800+ ("AuthenticAMD" 686-class, 512KB L2 cache) 2.08 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MM X,FXSR,SSE real mem = 1073246208 (1023MB) avail mem = 1029685248 (981MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/21/03, BIOS32 rev. 0 @ 0xfb3f0, SMBIOS rev. 2.2 @ 0xf0800 (37 entries) bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 11/21/2003 bios0: http://www.abit.com.tw/ NF7-S/NF7 (nVidia-nForce2) apm0 at bios0: Power Management spec V1.2 (slowidle) apm0: AC on, battery charge unknown acpi at bios0 function 0x0 not configured pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdf84 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdeb0/208 (11 entries) pcibios0: PCI Exclusive IRQs: 5 10 11 pcibios0: no compatible PCI ICU found pcibios0: Warning, unable to fix up PCI interrupt routing pcibios0: PCI bus #2 is the last bus bios0: ROM list: 0xc0000/0xd000 0xd0000/0x5400 0xd6000/0x4800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "NVIDIA nForce2 PCI" rev 0xc1 "NVIDIA nForce2" rev 0xc1 at pci0 dev 0 function 1 not configured "NVIDIA nForce2" rev 0xc1 at pci0 dev 0 function 2 not configured "NVIDIA nForce2" rev 0xc1 at pci0 dev 0 function 3 not configured "NVIDIA nForce2" rev 0xc1 at pci0 dev 0 function 4 not configured "NVIDIA nForce2" rev 0xc1 at pci0 dev 0 function 5 not configured pcib0 at pci0 dev 1 function 0 "NVIDIA nForce2 ISA" rev 0xa4 nviic0 at pci0 dev 1 function 1 "NVIDIA nForce2 SMBus" rev 0xa2 iic0 at nviic0 iic0: addr 0x4e 01=08 02=03 03=03 04=03 05=80 06=08 07=00 08=00 09=00 0a=eb 0b=0 0 0c=00 0d=00 0e=00 0f=00 3e=08 48=08 4a=08 4e=08 df=08 e0=08 e1=08 e2=08 e3=08 e4=08 e5=08 e6=08 e7=08 e8=08 e9=08 ea=08 eb=08 ec=08 ed=08 ee=08 ef=08 f0=00 f1 =00 f2=00 f3=00 f4=00 f5=00 f6=00 f7=00 f8=00 f9=00 fa=00 fb=00 fc=00 fd=00 fe=0 8 ff=00 words 00=28ff 01=08ff 02=03ff 03=03ff 04=03ff 05=80ff 06=08ff 07=00ff spdmem0 at iic0 addr 0x51: 512MB DDR SDRAM non-parity PC2700CL2.5 spdmem1 at iic0 addr 0x52: 512MB DDR SDRAM non-parity PC2700CL2.5 iic1 at nviic0 ohci0 at pci0 dev 2 function 0 "NVIDIA nForce2 USB" rev 0xa4: irq 11, version 1. 0, legacy support ohci1 at pci0 dev 2 function 1 "NVIDIA nForce2 USB" rev 0xa4: irq 5, version 1.0 , legacy support ehci0 at pci0 dev 2 function 2 "NVIDIA nForce2 USB" rev 0xa4: irq 10 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1 "NVIDIA nForce2 Audio" rev 0xa2 at pci0 dev 5 function 0 not configured auich0 at pci0 dev 6 function 0 "NVIDIA nForce2 AC97" rev 0xa1: irq 11, nForce2 AC97 ac97: codec id 0x414c4720 (Avance Logic ALC650) ac97: codec features 20 bit DAC, 18 bit ADC, Realtek 3D audio0 at auich0 ppb0 at pci0 dev 8 function 0 "NVIDIA nForce2 PCI-PCI" rev 0xa3 pci1 at ppb0 bus 1 dc0 at pci1 dev 6 function 0 "Lite-On PNIC" rev 0x20: irq 10, address 00:a0:cc:4 1:87:d3 bmtphy0 at dc0 phy 1: BCM5201 10/100 PHY, rev. 2 ahc0 at pci1 dev 7 function 0 "Adaptec AHA-29160 U160" rev 0x02: irq 11 scsibus0 at ahc0: 16 targets sd0 at scsibus0 targ 8 lun 0: <FUJITSU, MAP3735NP, 0106> SCSI3 0/direct fixed sd0: 70103MB, 47996 cyl, 4 head, 747 sec, 512 bytes/sec, 143571316 sec total emu0 at pci1 dev 8 function 0 "Creative Labs SoundBlaster Live" rev 0x08: irq 10 ac97: codec id 0x54524123 (TriTech Microelectronics TR28602) audio1 at emu0 "Creative Labs PCI Gameport Joystick" rev 0x08 at pci1 dev 8 function 1 not conf igured "AT&T/Lucent FW322 1394" rev 0x04 at pci1 dev 9 function 0 not configured skc0 at pci1 dev 10 function 0 "D-Link Systems DGE-530T B1" rev 0x11, Yukon Lite (0x9): irq 10 sk0 at skc0 port A: address 00:19:5b:fa:ba:08 eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5 pciide0 at pci1 dev 11 function 0 "CMD Technology SiI3112 SATA" rev 0x02: DMA pciide0: using irq 10 for native-PCI interrupt pciide0: port 0: device present, speed: 1.5Gb/s wd0 at pciide0 channel 0 drive 0: <ST3500320AS> wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6 pciide1 at pci0 dev 9 function 0 "NVIDIA nForce2 IDE" rev 0xa2: DMA, channel 0 c onfigured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide1 channel 0 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: <SONY, DVD-ROM DDU1621, S3.5> ATAPI 5/cdrom remova ble cd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide1: channel 1 disabled (no drives) "NVIDIA nForce2 FireWire" rev 0xa3 at pci0 dev 13 function 0 not configured ppb1 at pci0 dev 30 function 0 "NVIDIA nForce2 AGP" rev 0xc1 pci2 at ppb1 bus 2 vga1 at pci2 dev 0 function 0 "ATI Radeon 9600 Pro" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) agp at vga1 not configured "ATI Radeon 9600 Pro Sec" rev 0x00 at pci2 dev 0 function 1 not configured isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 wbsio0 at isa0 port 0x2e/2: W83627HF rev 0x17 lm1 at wbsio0 port 0x290/8: W83627HF npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec usb1 at ohci0: USB revision 1.0 uhub1 at usb1 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1 usb2 at ohci1: USB revision 1.0 uhub2 at usb2 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1 biomask ef65 netmask ef65 ttymask ffff mtrr: Pentium Pro MTRR support softraid0 at root ahc0: target 8 using 16bit transfers ahc0: target 8 synchronous at 80.0MHz DT, offset = 0x7f root on sd0a swap on sd0b dump on sd0b -- "Stupidity, if left untreated, is self-correcting." -- Robert A. Heinlein