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.
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