Bug 439074 - rsync 3.0.1pre -H fails assertion
Summary: rsync 3.0.1pre -H fails assertion
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rsync
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Simo Sorce
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-26 20:12 UTC by Alexandre Oliva
Modified: 2008-03-27 19:57 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-03-27 19:57:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alexandre Oliva 2008-03-26 20:12:41 UTC
Description of problem:
rsync fails an assertion when using -H

Version-Release number of selected component (if applicable):
rsync-3.0.1-0.1.pre1.fc9.x86_64

How reproducible:
Every time

Steps to Reproduce:
1. .../fedora/linux/releases/test/9-Beta was rsynced from the web site
before the rsync update, with --exclude=/Fedora/*/iso/*.iso
--exclude=/Live/*/*.iso in case it matters (and to make the download much faster)

2. I took two copies of the beta

# cp -lR .../fedora/linux/releases/test/9-Beta/. .../somewhere
# cp -lR .../fedora/linux/releases/test/9-Beta/. .../elsewhere/9-Beta

3. Use rsync just to adjust the timestamps of the directories
# rsync -aH .../fedora/linux/releases/test/9-Beta/ .../elsewhere/9-Beta/

Actual results:
rsync: hlink.c:508: finish_hard_link: Assertion `(((unsigned char
*)(node->data))[0]) == 0' failed.

Expected results:
This works just fine with rsync-3.0.0-1.fc9

Additional info:

Comment 1 Alexandre Oliva 2008-03-26 20:59:44 UTC
Standalone minimal reproducer script (involves a 4M download, I couldn't shrink
it further):

# prepare works
rm -rf scratch1 scratch2
rsync -aH rsync://fedora.c3sl.ufpr.br/fedora/linux/releases/test/9-Beta/Fedora/
scratch1/ --include=/i386/os/repoview/[pswx]*.html --exclude=/i386/os/repoview/*
--include=/i386/os/repoview
--include={i386,x86_64}/os/Packages/Xaw3d-devel-1.5E-11.1.i386.rpm
--exclude={i386,x86_64}/os/Packages/* --include={i386,x86_64}/os/Packages
--exclude=/{i386,x86_64}/os/* --include=/{x86_64,i386}/os
--exclude=/{i386,x86_64}/* --include=/{i386,x86_64} --exclude=/* --progress

# first copy works, creates link
rsync -aH scratch1/ scratch2/

# second copy fails
rsync -aH scratch1/ scratch2/


Comment 2 Simo Sorce 2008-03-27 19:57:46 UTC
Wayne fixed it in 3.0.1pre2


Note You need to log in before you can comment on or make changes to this bug.