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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to