[bug #67498] Error when using save -binary
Markus Mützel <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Follow-up Comment #26, bug #67498 (group octave):
If I understand correctly "Resource device" is the error message corresponding
to EBUSY. That probably means that the change for bug #67729 helped only
"accidentally".
The real issue is more likely that the file is still locked (by an anti-virus,
indexer, ...) and can't be renamed at all. The atomicity probably wasn't an
issue at all.
I'm able to reproduce the error with the following:
n = 1e3;
x = rand(n, n);
for i=1:10000, save -binary xx.bin x; end
When it fails, `i` is typically between 1000 and 2000 for me.
With the attached patch, I'm no longer able to reproduce the issue here.
I wonder if we'd also need something similar for other operating systems. I
can imagine that a similar error could occur when saving, e.g., to a network
share or somewhere else with higher latency.
(file #58216)
_______________________________________________________
Additional Item Attachment:
Name: bug67498-rename-retry.patch Size: 3.3KiB
<https://file.savannah.gnu.org/file/bug67498-rename-retry.patch?file_id=58216>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-5c89ea1de46466fa27ad9decaeba153e39db01be.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67498>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaYTPkAAKCRCqLAuaBUf3 TvHhAQDbBUKrfyovIfXuUeNFcfwphClGcp+N8+/b327+8VMnWgD/a+6d+HDpRS6B Rsrtwm5qPpcbulRF1a3dZxR/CSr3jAo= =HQf4 -----END PGP SIGNATURE-----