Skip to content

disk full not detected

Summary

putStrLn and friends don't report when disk is full

Steps to reproduce

Program hello.hs is: main = putStrLn "hello world" Run from shell: ./hello > /dev/full

Expected behavior

What do you expect the reproducer described above to do? report error that disk is full (/dev/full is always full). Note this does happen if you hClose stdout after the write. See also "echo foo > /dev/full" which reports the error

Environment

  • GHC version used: 8.8.4 Optional:

  • Operating System: Debian GNU/Linux

  • System Architecture: x64

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information