[LLVMbugs] [Bug 2700] New: LLVM silently ignores I/O errors

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Aug 21 08:41:01 PDT 2008


           Summary: LLVM silently ignores I/O errors
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: gohman at apple.com
                CC: llvmbugs at cs.uiuc.edu

llc, opt, and others don't check their ostreams for errors after
doing writes, so errors such as no-space-left-on-device are silently
ignored. For example,

$ llc t.bc -f -o /dev/full
$ echo $?

For comparison, 

$ gcc -S -o /dev/full t.c
t.c:1: fatal error: error closing /dev/full: No space left on device
compilation terminated.
$ echo $?

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list