llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.96k stars 11.94k forks source link

COFF/dllorder.test flaky on Windows #26336

Open nico opened 8 years ago

nico commented 8 years ago
Bugzilla Link 25962
Version unspecified
OS Linux
CC @rui314

Extended Description

It fails for me every now and then:

Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90. FAIL: lld :: COFF/dllorder.test (24372 of 25384) **** TEST 'lld :: COFF/dllorder.test' FAILED **** Script:

C:/src/chrome/src/third_party/llvm-bootstrap/./bin\yaml2obj.EXE < C:\src\chrome\src\third_party\llvm\tools\lld\test\COFF \dllorder.test > C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tmp.obj mkdir -p C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tmplib rm -f C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tmplib/lib1.lib rm -f C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tmplib/lib2.lib echo EXPORTS sym1 > C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tmp1.def echo EXPORTS sym2 > C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tmp2.def lib /nologo /machine:amd64 /def:C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tm p1.def /out:C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tmplib\lib1.lib lib /nologo /machine:amd64 /def:C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tm p2.def /out:C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tmplib\lib2.lib C:/src/chrome/src/third_party/llvm-bootstrap/./bin\lld-link.EXE /out:C:\src\chrome\src\third_party\llvm-bootstrap\tools\ lld\test\COFF\Output\dllorder.test.tmp1.exe /entry:main /libpath:C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\ test\COFF\Output\dllorder.test.tmplib C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.t est.tmp.obj /defaultlib:lib1 /defaultlib:lib2 C:/src/chrome/src/third_party/llvm-bootstrap/./bin\lld-link.EXE /out:C:\src\chrome\src\third_party\llvm-bootstrap\tools\ lld\test\COFF\Output\dllorder.test.tmp2.exe /entry:main /libpath:C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\ test\COFF\Output\dllorder.test.tmplib C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.t est.tmp.obj /defaultlib:lib2 /defaultlib:lib1 C:/src/chrome/src/third_party/llvm-bootstrap/./bin\llvm-readobj.EXE -coff-imports C:\src\chrome\src\third_party\llvm-boo tstrap\tools\lld\test\COFF\Output\dllorder.test.tmp1.exe | C:/src/chrome/src/third_party/llvm-bootstrap/./bin\FileCheck. EXE -check-prefix=CHECK1 C:\src\chrome\src\third_party\llvm\tools\lld\test\COFF\dllorder.test C:/src/chrome/src/third_party/llvm-bootstrap/./bin\llvm-readobj.EXE -coff-imports C:\src\chrome\src\third_party\llvm-boo tstrap\tools\lld\test\COFF\Output\dllorder.test.tmp2.exe | C:/src/chrome/src/third_party/llvm-bootstrap/./bin\FileCheck. EXE -check-prefix=CHECK2 C:\src\chrome\src\third_party\llvm\tools\lld\test\COFF\dllorder.test

Exit Code: 1104

Command Output (stdout):

Command 0: "C:/src/chrome/src/third_party/llvm-bootstrap/./bin\yaml2obj.EXE" Command 0 Result: 0 Command 0 Output: None

Command 0 Stderr:

Command 1: "mkdir" "-p" "C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tmplib" Command 1 Result: 0 Command 1 Output:

Command 1 Stderr:

Command 2: "rm" "-f" "C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tmplib/lib1. lib" Command 2 Result: 0 Command 2 Output:

Command 2 Stderr:

Command 3: "rm" "-f" "C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tmplib/lib2. lib" Command 3 Result: 0 Command 3 Output:

Command 3 Stderr:

Command 4: "echo" "EXPORTS" "sym1" Command 4 Result: 0 Command 4 Output: None

Command 4 Stderr:

Command 5: "echo" "EXPORTS" "sym2" Command 5 Result: 0 Command 5 Output: None

Command 5 Stderr:

Command 6: "lib" "/nologo" "/machine:amd64" "/def:C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Outpu t\dllorder.test.tmp1.def" "/out:C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tm plib\lib1.lib" Command 6 Result: 0 Command 6 Output: Creating library C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tmplib\lib1.li b and object C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tmplib\lib1.exp

Command 6 Stderr:

Command 7: "lib" "/nologo" "/machine:amd64" "/def:C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Outpu t\dllorder.test.tmp2.def" "/out:C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dllorder.test.tm plib\lib2.lib" Command 7 Result: 1104 Command 7 Output: LINK : fatal error LNK1104: cannot open file 'C:\src\chrome\src\third_party\llvm-bootstrap\tools\lld\test\COFF\Output\dl lorder.test.tmp2.def'

Command 7 Stderr:

--

nico commented 6 years ago

The test was removed in r261709 due to being flaky, with a line saying "Remove it while I'm investing the cause." Leaving the bug open for tracking readding the test.

silvasean commented 8 years ago

Moving to more specific "COFF" component (instead of LLD's "All Bugs").