Bug 121109
| Summary: | (PATCH) races with handling of prelink.cache | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Sami Farin <safari-fedora-bugzilla-vow4m4kwegymuiqlrgz2g72udbd4xzgrgtxccmtx> | ||||||
| Component: | prelink | Assignee: | Jakub Jelinek <jakub> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | |||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | rawhide | CC: | wtogami | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | prelink-0.3.2-1 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2004-05-12 10:07:26 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: |
|
||||||||
Created attachment 99507 [details]
race fixes for prelink.cache handling
Created attachment 99909 [details]
prelink_save_cache patch
Your patch unfortunately improves one thing and creates another race
(two different prelink's can destroy each other's temporary cache,
etc.).
I'll attach what I'll use for next prelink release.
An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2004-386.html |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 Description of problem: races: 1) after unlink(), prelink.cache does not exist (now, if another prelink is executed...) 2) after open(), prelink.cache is 0 bytes (now, system crash and you might be left with empty cache) 3) if write() fails (disk full, system crash), prelink.cache contains invalid data Version-Release number of selected component (if applicable): 0.3.1-2 How reproducible: Always Steps to Reproduce: 1. run prelink and have bad luck or almost full partition Additional info: patch will be attached.