bugMIT/GNU Scheme - Bugs: bug #27565, Edwin and microcode write (fasl,...


bug #27565: Edwin and microcode write (fasl, autosave, &c.) files non-atomically

Submitted by:  Taylor R. Campbell <riastradh>
Submitted on:  Wed Sep 30 19:18:31 2009  
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Suboptimal behavior
Status: NonePrivacy: Public
Assigned to: Taylor R. Campbell <riastradh>Originator Name: 
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Fri Nov 13 22:15:37 2009, comment #1:

This affects FASDUMP too. In general, for whole-file writes, Scheme should (on Unix at least) always write to a temporary file and then rename it over the permanent file. (Does Windows have a way to write a file atomically, at worst leaving a temporary file dangling?)

Taylor R. Campbell <riastradh>
Project MemberIn charge of this item.
Wed Sep 30 19:18:31 2009, original submission:

Edwin autosaves files by overwriting the autosave file in place. If power is lost during this process, the data on disk may reflect neither the old autosave file nor the whole contents of the buffer. Instead, Edwin should write to a temporary pathname, and when it is done, rename it to the permanent autosave file pathname.

(Today my laptop caught GNU Emacs in the middle of autosaving a file when its battery ran out of juice! I was not happy to find the autosave file truncated, although fortunately in this case I had all the data elsewhere.)

Taylor R. Campbell <riastradh>
Project MemberIn charge of this item.


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by riastradh (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Nov 13 22:15:37 2009riastradhCategoryedwin=>None
      SummaryEdwin doesn\'t autosave atomically=>Edwin and microcode write (fasl, autosave, &c.) files non-atomically

    Back to the top

    Powered by Savane 3.1-cleanup1