[llvm-bugs] [Bug 38616] New: TempFile leaks temporary files on Windows

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 17 12:00:46 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38616

            Bug ID: 38616
           Summary: TempFile leaks temporary files on Windows
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Support Libraries
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm at inglorion.net
                CC: llvm-bugs at lists.llvm.org

Files created by TempFile::create() are supposed to be removed automatically.
On Windows, this does not always happen. This can be reproduced by performing a
large ThinLTO or CFI build and exiting it with Control+C during linking, or
with a small test program that spawns 100 threads that each create a TempFile
and then use keep() to rename it to the same final name, and then having the
process exit (regular exit will do, but also report_fatal_error, signals, ...)
before all threads have finished.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180817/f352493e/attachment.html>


More information about the llvm-bugs mailing list