Bug 460753
Summary: | rsync under fakechroot gives getpeername on fd0 failed: Invalid argument | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Robin Norwood <robin.norwood> |
Component: | fakechroot | Assignee: | Axel Thimm <axel.thimm> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | martin |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-10-07 09:47:31 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: |
Description
Robin Norwood
2008-08-30 23:35:58 UTC
Thanks for the debugging! I think the next steps are to reenable the getpeername wrapper in fakechroot and see which part of the code makes it bail out. But I think I already see the bug, newnamelen is never initialized. It should look like char *fakechroot_path, *fakechroot_ptr, fakechroot_buf[FAKECHROOT_MAXPATH]; if (next_getpeername == NULL) fakechroot_init(); - memset(&newname, 0, sizeof(struct sockaddr_un)); + newnamelen = sizeof(struct sockaddr_un); + memset(&newname, 0, newnamelen); status = next_getpeername(s, (struct sockaddr *)&newname, &newnamelen); if (status != 0) { return status; } Can you try the above and see if it fixes it? Thanks! yes, your patch fixes the issue for me, thanks! Also, getsockname() follows the same pattern, and looks like it could use a similar patch as well. Thanks for testing and reporting! I'll wait a day or two for upstream's comments and will commit the fixes. Currently the updates are stalled anyway. :( ping? Just checking to see if this fix will be in F10. ---------- Forwarded message ---------- From: Piotr Roszatycki <dexter> Date: Fri, Sep 12, 2008 at 8:20 AM Subject: Re: [Server-devel] RFH - xs-rsync on F9 fails with an odd error To: Martin Langhoff <martin.langhoff> Thanks for patch. I think I'll apply it to new fakechroot's release. ---------- End Forwarded message ------ *bump* :-) fakechroot-2.8-15.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/fakechroot-2.8-15.fc9 fakechroot-2.8-15.fc8 has been submitted as an update for Fedora 8. http://admin.fedoraproject.org/updates/fakechroot-2.8-15.fc8 fakechroot-2.8-15.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report. fakechroot-2.8-15.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report. Just a quick - THANKS! |