[LLVMbugs] [Bug 1437] NEW: RunSafely.sh doesn't run safely

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun May 20 14:35:32 PDT 2007


           Summary: RunSafely.sh doesn't run safely
           Product: Build scripts
           Version: 1.6
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Makefiles
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rspencer at reidspencer.com

RunSafely.sh attempts to use the ulimit command to limit cpu/file size/core
size, etc when test cases run. However, on almost all Unixes the ulimit command
is part of the shell and the way RunSafely.sh invokes them, it occurs in a
subshell separate from the actual command being tested. Consequently, things are
not run 'safely'. 

Using the "eval" command works on Linux but not on Darwin. Its possible that we
could arrange it to run just as:

( ulimit ... ; command )

That should work on all shells.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list