Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-02-28
10:30 • Closed ticket [90ff9b7f73]: Cannot write a file of size *exactly* 4294967295... artifact: adf411be2f user: apnadkarni
2023-02-26
07:19 • Ticket [90ff9b7f73]: 3 changes artifact: 1243a1a5ff user: apnadkarni
07:15
Also fix [90ff9b7f73] - writes of exactly 4294967295 bytes check-in: 7ad27f4c32 user: apnadkarni tags: bug-3d01d51bc4
06:26 • Ticket [90ff9b7f73] Cannot write a file of size *exactly* 4294967295 status ... artifact: b8d5b03628 user: apnadkarni
06:16 • New ticket [90ff9b7f73]. artifact: bca1eb6d02 user: apnadkarni

Cannot write a file of size *exactly* 4294967295

Closed / Fixed90ff9b7f737342660744dfccd4570fca057ec69dCreated 4 years agoUpdated 4 years ago
Descriptionmarkdown2023-02-26 06:16:33

Logging this ticket separately from [3d01d51bc4] as the root cause is different and is specific to a file size of exactly 4294967295 bytes. See below.

% set fd [open large.txt w]; puts -nonewline $fd [string repeat A 4294967294]; close $fd; file size large.txt
4294967294
% file delete large.txt
% set fd [open large.txt w]; puts -nonewline $fd [string repeat A 4294967296]; close $fd; file size large.txt
4294967296
% file delete large.txt
% set fd [open large.txt w]; puts -nonewline $fd [string repeat A 4294967295]; close $fd; file size large.txt
error writing "file15c832d2948": no such file or directory
% close $fd
% file size large.txt
4294967295

Note the error exception even though the file is actually created.

Referenced by1
apnadkarni Ticket [90ff9b7f73]: 3 changes [History diff]2023-02-26 06:26:47
apnadkarniplain2023-02-26 07:19:02
Fixed in [7ad27f4c32] as part of branch [bug-3d01d51bc4]
apnadkarni Closed ticket [90ff9b7f73]. [History diff]2023-02-28 10:30:39
Log in (anonymous is fine) to add a comment.