Bug 121109

Summary: (PATCH) races with handling of prelink.cache
Product: [Fedora] Fedora Reporter: Sami Farin <safari-fedora-bugzilla-vow4m4kwegymuiqlrgz2g72udbd4xzgrgtxccmtx>
Component: prelinkAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: rawhideCC: 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:
Description Flags
race fixes for prelink.cache handling
none
prelink_save_cache patch none

Description Sami Farin 2004-04-17 11:43:56 UTC
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.

Comment 1 Sami Farin 2004-04-17 11:45:16 UTC
Created attachment 99507 [details]
race fixes for prelink.cache handling

Comment 2 Jakub Jelinek 2004-05-03 13:02:15 UTC
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.

Comment 3 Jay Turner 2004-09-02 05:19:45 UTC
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