[LLVMbugs] [Bug 12743] New: PathV2: unique_file("dir%%/file") doesn't create unique directory "dir%%"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat May 5 19:34:33 PDT 2012


             Bug #: 12743
           Summary: PathV2: unique_file("dir%%/file") doesn't create
                    unique directory "dir%%"
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: System Library
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: geek4civic at gmail.com
                CC: bigcheesegs at gmail.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

unique_file("file-system-test-%%-%%-%%-%%/test-directory.anchor") doesn't
create 'file-system-test-%%-%%-%%-%%' when it exists.

The issue could be reproduced when;

  - srand(time(NULL)) is called for unique_file() among processes.
    (See Daniel's r156237)
  - SupportTests/FileSystemTest(s) are running in parallel.

FileSystemTest may create and delete file-system-test-%%-%%-%%-%%.

unique_file() should always create the directory when directory contains '%'.

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