octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63803] Saving causes OOM, crash, and loss of


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #63803] Saving causes OOM, crash, and loss of already saved data
Date: Wed, 15 Feb 2023 18:01:42 -0500 (EST)

Follow-up Comment #15, bug #63803 (project octave):

I pushed a change https://hg.savannah.gnu.org/hgweb/octave/rev/354ed032ba50 to
write to a temp file first and then rename it to the desired filename. This
works for me exactly as intended, and it doesn't use extra disk space. I've
only used standard C++ functions, but it needs testing from CI for
cross-platform behavior.

Please stress test this function if you can. It needs to be reliable so that
saving data is robust.

Example test: save a large amount of data to a file test.mat, then save more
variables to the same file, but while it is writing it, kill the Octave
process (e.g. `kill -9 octave`). Then restart Octave and load test.mat -- it
should be intact and all the data should be as it was with the last successful
save.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63803>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]