[LLVMbugs] [Bug 2871] New: bugpoint erroneously assumes exit code 1 is bad by default

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Oct 8 23:55:54 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2871

           Summary: bugpoint erroneously assumes exit code 1 is bad by
                    default
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: bugpoint
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: resistor at mac.com, llvmbugs at cs.uiuc.edu


Try bugpoint'ing spiff some time. It happens to trigger this code in
ExecutionDriver.cpp:

  // If we're checking the program exit code, assume anything nonzero is bad.
  if (CheckProgramExitCode && ProgramExitedNonzero) {
    Output.eraseFromDisk();
    if (RemoveBitcode)
      sys::Path(BitcodeFile).eraseFromDisk();
    return true;
  }

which is really horrible because ProgramExitedNonzero is true even when running
the native version, but bugpoint doesn't check for that. CheckProgramExitCode
is on by default, but you can pass in -check-exit-code=false which makes it
work.

I think with the advent of -append-exit-code, this check can just be removed,
or at least changed somehow. I'm not really sure up front what to do about it.
Thoughts?


-- 
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