file-length wraps around at 4 GB on linux-arm64
Bug #2011453 reported by
Yan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
For a 5 GB file, file-length should return 5 GB, but returns 1 GB.
To test, create (sparse) 5 GB file:
dd if=/dev/null bs=1 seek=5G count=1 of=5gbfile
stat -c %s 5gbfile
5368709120
./run-sbcl.sh --no-userinit --eval '(print (with-open-file (f "5gbfile") (file-length f)))' --quit
1073741824
---
Tested with
sbcl-2.2.9 - 11
sbcl-2.3.0 - 2
sbcl-2.
Raspberry PI 4
Linux 4.19.108-v8+ #1298 SMP PREEMPT Fri Mar 6 18:15:51 GMT 2020 aarch64 GNU/Linux
Android
Linux localhost 4.4.148-perf+ #1 SMP PREEMPT Tue Sep 3 19:28:08 2019 aarch64 Android
---
Note: It works fine on x86-64
summary: |
- file-length wraps around at 4 GB on arm64 + file-length wraps around at 4 GB on linux-arm64 |
Changed in sbcl: | |
status: | New → Fix Committed |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks for the quick fix.