Bug 123708
Summary: | (PATCH) rsync crash transferring file list | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mark McLoughlin <markmc> | ||||||||||
Component: | rsync | Assignee: | Jay Fenlason <fenlason> | ||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||||||||
Severity: | medium | Docs Contact: | |||||||||||
Priority: | medium | ||||||||||||
Version: | 2 | CC: | jfeeney | ||||||||||
Target Milestone: | --- | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | i386 | ||||||||||||
OS: | Linux | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | 2.6.2-1 | Doc Type: | Bug Fix | ||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2004-05-25 19:38:02 UTC | Type: | --- | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Attachments: |
|
Description
Mark McLoughlin
2004-05-20 07:32:29 UTC
Created attachment 100369 [details]
backtrace
Test case:
mkdir /tmp/sync-from
mkdir /tmp/sync-from/test1
mkdir /tmp/sync-from/test2
> /tmp/sync-from/test1/a
> /tmp/sync-from/test2/a
mkdir /tmp/sync-to
cd /tmp/sync-to
rsync -av --delete localhost:/tmp/sync-from/* .
rsync -av --delete localhost:/tmp/sync-from/* .
Problem is that we rebuild the file_list for each of test1 and test2,
but "lastdir" in make_file() still points to the freed file_list of test1.
Attaching a patch that invalidates lastdir when freeing the file_list.
Created attachment 100370 [details]
patch
I've checked upstream and the bug is fixed there with a simpler fix. Attaching a backport. Created attachment 100529 [details]
backport of upstream fix
Created attachment 100530 [details]
spec file patch
Fix is in rawhide and FC2 updates: * Tue May 25 2004 Mark McLoughlin <markmc> - 2.6.2-1 - Backport fix for crasher when passing multiple directories of the same length (bug #123708) |