[LLVMbugs] [Bug 5318] New: diff crashes when used in a Clang test

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Oct 27 08:29:48 PDT 2009


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

           Summary: diff crashes when used in a Clang test
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: John.Thompson.JTSoftware at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Here's a wierd one regarding running the test/Frontend/ast-main.c test on
Windows.  The "diff" utility seems to be crashing when run from the test
scripts in .  Running the same command line from the command shell doesn't
crash:

diff C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp1.ll
C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp2.ll

By default, on my system, I'm using the diff from the gnuwin32 utils.  I also
substituted the msys diff, but it crashes also, but only when run under the
test scripts.

Comment from Daniel:

One major difference about stuff run under the test script is it tries
to limit the things that are in the environment. Maybe that makes your
diff unhappy somehow?

The test output:

5>FAIL: Clang::Frontend/ast-main.c (687 of 1698)
5>******************** TEST 'Clang::Frontend/ast-main.c' FAILED
********************
5>Script:
5>--
5>C:/Tools/llvm/bin/Debug\clang.EXE -emit-llvm -S -o
C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp1.ll -x c - <
C:\Tools\llvm\tools\clang\test\Frontend\ast-main.c 
5>C:/Tools/llvm/bin/Debug\clang.EXE -emit-ast -o
C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp.ast
C:\Tools\llvm\tools\clang\test\Frontend\ast-main.c 
5>C:/Tools/llvm/bin/Debug\clang.EXE -emit-llvm -S -o
C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp2.ll -x ast - <
C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp.ast 
5>diff C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp1.ll
C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp2.ll
5>--
5>Exit Code: -1073741515
5>Command Output (stdout):
5>--
5>Command 0: "C:/Tools/llvm/bin/Debug\clang.EXE" "-emit-llvm" "-S" "-o"
"C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp1.ll" "-x" "c"
"-"
5>Command 0 Result: 0
5>Command 0 Output:
5>Command 0 Stderr:
5>Command 1: "C:/Tools/llvm/bin/Debug\clang.EXE" "-emit-ast" "-o"
"C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp.ast"
"C:\Tools\llvm\tools\clang\test\Frontend\ast-main.c"
5>Command 1 Result: 0
5>Command 1 Output:
5>Command 1 Stderr:
5>Command 2: "C:/Tools/llvm/bin/Debug\clang.EXE" "-emit-llvm" "-S" "-o"
"C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp2.ll" "-x" "ast"
"-"
5>Command 2 Result: 0
5>Command 2 Output:
5>Command 2 Stderr:
5>Command 3: "diff"
"C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp1.ll"
"C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp2.ll"
5>Command 3 Result: -1073741515
5>Command 3 Output:
5>Command 3 Stderr:
5>--
5>Command Output (stderr):
5>--
5>--


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