Windows: io.writeInt fails #4
Labels
No labels
arch
arm
arch
x86
bug
duplicate
enhancement
help wanted
invalid
os
linux
os
mac
os
windows
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 7 minutes 58 seconds
Due date
ed
7 minutes 58 seconds
No due date set.
Dependencies
No dependencies set.
Reference
cli/q#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The newly added
io.writeIntfails on Windows only.The examples where it's failing are factorial, fibonacci, fizzbuzz, gcd, collatz and prime.
The exit code in all cases is 3221225477 aka 0xC000005 which is a memory access violation.
Looking further into this, the reason seems to be a misaligned SP register in the 2nd extern call to
kernel32.WriteFileinio.write.Fixed in
407606fcf0.