Hi, I check-out the latest version of LLVM and see many failures (on Win64): ******************** 67> FAIL: LLVM :: Transforms/GlobalOpt/zeroinitializer-gep-load.ll (5518 of 7763) 67> ******************** TEST 'LLVM :: Transforms/GlobalOpt/zeroinitializer-gep-load.ll' FAILED ******************** 67> Script: 67> -- 67> W:/LLVM_org/build64/bin/Debug/opt.EXE < W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll -S -globalopt | W:/LLVM_org/build64/bin/Debug/FileCheck.EXE W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll 67> -- 67> Exit Code: 2 67> Command Output (stdout): 67> -- 67> Command 0: "W:/LLVM_org/build64/bin/Debug/opt.EXE" "-S" "-globalopt" 67> Command 0 Result: 3 67> Command 0 Output: 67> 67> 67> Command 0 Stderr: 67> Assertion failed: begin() + idx < end(), file W:\LLVM_org\llvm\include\llvm/ADT/SmallVector.h, line 140 67> 67>CUSTOMBUILD : CRT error : R6010 67> 67> 67> - abort() has been called 67> 67> 67> 67> 67> 67> 67> Command 1: "W:/LLVM_org/build64/bin/Debug/FileCheck.EXE" "W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll" 67> Command 1 Result: 2 67> Command 1 Output: 67> 67> 67> Command 1 Stderr: 67>CUSTOMBUILD : FileCheck error : '-' is empty. 67> 67> 67> -- 67> 67> ******************** 67> FAIL: LLVM :: Transforms/IPConstantProp/2008-06-09-WeakProp.ll (5519 of 7763) 67> ******************** TEST 'LLVM :: Transforms/IPConstantProp/2008-06-09-WeakProp.ll' FAILED ******************** 67> Script: 67> -- 67> W:/LLVM_org/build64/bin/Debug/opt.EXE < W:\LLVM_org\llvm\test\Transforms\IPConstantProp\2008-06-09-WeakProp.ll -ipconstprop -S | grep "ret i32 %r" 67> -- 67> Exit Code: 1 67> Command Output (stdout): 67> -- 67> Command 0: "W:/LLVM_org/build64/bin/Debug/opt.EXE" "-ipconstprop" "-S" 67> Command 0 Result: 3 67> Command 0 Output: 67> 67> 67> Command 0 Stderr: 67> Assertion failed: begin() + idx < end(), file W:\LLVM_org\llvm\include\llvm/ADT/SmallVector.h, line 140 67> 67>CUSTOMBUILD : CRT error : R6010 67> 67> 67> - abort() has been called 67> 67> 67> 67> 67> 67> 67> Command 1: "grep" "ret i32 %r" 67> Command 1 Result: 1 67> Command 1 Output: 67> 67> 67> Command 1 Stderr: 67> 67> 67> -- 67> - Elena --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130429/b5279de8/attachment.html>
In a debug build you should get a stack trace by default, which would be helpful here. I can try to repro later today, but I'm not surprised there are issues because most people I know stick with 32-bit builds even on 64-bit Windows. On Mon, Apr 29, 2013 at 4:27 AM, Demikhovsky, Elena <elena.demikhovsky at intel.com> wrote:> Hi, > > > > I check-out the latest version of LLVM and see many failures (on Win64): > > ******************** > > 67> FAIL: LLVM :: Transforms/GlobalOpt/zeroinitializer-gep-load.ll (5518 of > 7763) > > 67> ******************** TEST 'LLVM :: > Transforms/GlobalOpt/zeroinitializer-gep-load.ll' FAILED > ******************** > > 67> Script: > > 67> -- > > 67> W:/LLVM_org/build64/bin/Debug/opt.EXE < > W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll -S > -globalopt | W:/LLVM_org/build64/bin/Debug/FileCheck.EXE > W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll > > 67> -- > > 67> Exit Code: 2 > > 67> Command Output (stdout): > > 67> -- > > 67> Command 0: "W:/LLVM_org/build64/bin/Debug/opt.EXE" "-S" "-globalopt" > > 67> Command 0 Result: 3 > > 67> Command 0 Output: > > 67> > > 67> > > 67> Command 0 Stderr: > > 67> Assertion failed: begin() + idx < end(), file > W:\LLVM_org\llvm\include\llvm/ADT/SmallVector.h, line 140 > > 67> > > 67>CUSTOMBUILD : CRT error : R6010 > > 67> > > 67> > > 67> - abort() has been called > > 67> > > 67> > > 67> > > 67> > > 67> > > 67> > > 67> Command 1: "W:/LLVM_org/build64/bin/Debug/FileCheck.EXE" > "W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll" > > 67> Command 1 Result: 2 > > 67> Command 1 Output: > > 67> > > 67> > > 67> Command 1 Stderr: > > 67>CUSTOMBUILD : FileCheck error : '-' is empty. > > 67> > > 67> > > 67> -- > > 67> > > 67> ******************** > > 67> FAIL: LLVM :: Transforms/IPConstantProp/2008-06-09-WeakProp.ll (5519 of > 7763) > > 67> ******************** TEST 'LLVM :: > Transforms/IPConstantProp/2008-06-09-WeakProp.ll' FAILED > ******************** > > 67> Script: > > 67> -- > > 67> W:/LLVM_org/build64/bin/Debug/opt.EXE < > W:\LLVM_org\llvm\test\Transforms\IPConstantProp\2008-06-09-WeakProp.ll > -ipconstprop -S | grep "ret i32 %r" > > 67> -- > > 67> Exit Code: 1 > > 67> Command Output (stdout): > > 67> -- > > 67> Command 0: "W:/LLVM_org/build64/bin/Debug/opt.EXE" "-ipconstprop" "-S" > > 67> Command 0 Result: 3 > > 67> Command 0 Output: > > 67> > > 67> > > 67> Command 0 Stderr: > > 67> Assertion failed: begin() + idx < end(), file > W:\LLVM_org\llvm\include\llvm/ADT/SmallVector.h, line 140 > > 67> > > 67>CUSTOMBUILD : CRT error : R6010 > > 67> > > 67> > > 67> - abort() has been called > > 67> > > 67> > > 67> > > 67> > > 67> > > 67> > > 67> Command 1: "grep" "ret i32 %r" > > 67> Command 1 Result: 1 > > 67> Command 1 Output: > > 67> > > 67> > > 67> Command 1 Stderr: > > 67> > > 67> > > 67> -- > > 67> > > > > > > > > - Elena > > > > --------------------------------------------------------------------- > Intel Israel (74) Limited > > This e-mail and any attachments may contain confidential material for > the sole use of the intended recipient(s). Any review or distribution > by others is strictly prohibited. If you are not the intended > recipient, please contact the sender and delete all copies. > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
I fell over this issue yesterday myself with lots of asserts being thrown. I think the issue is in lib/IR/AsmWriter.cpp:1618 in the function AssemblyWriter::printFunction(const Function *F) Looking at the code I think the 2nd for loop should be preceded by the test ... if (Idx < AS.getNumSlots()) Not sure why it doesn't fail on other platforms as it looks like it should be a genuine issue on all platform. That change significantly reduced the failures on my Windows build. Keith -----Original Message----- From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Reid Kleckner Sent: 29 April 2013 15:57 To: Demikhovsky, Elena Cc: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] Many tests fail on Win64 In a debug build you should get a stack trace by default, which would be helpful here. I can try to repro later today, but I'm not surprised there are issues because most people I know stick with 32-bit builds even on 64-bit Windows. On Mon, Apr 29, 2013 at 4:27 AM, Demikhovsky, Elena <elena.demikhovsky at intel.com> wrote:> Hi, > > > > I check-out the latest version of LLVM and see many failures (on Win64): > > ******************** > > 67> FAIL: LLVM :: Transforms/GlobalOpt/zeroinitializer-gep-load.ll (5518of> 7763) > > 67> ******************** TEST 'LLVM :: > Transforms/GlobalOpt/zeroinitializer-gep-load.ll' FAILED > ******************** > > 67> Script: > > 67> -- > > 67> W:/LLVM_org/build64/bin/Debug/opt.EXE < > W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll -S > -globalopt | W:/LLVM_org/build64/bin/Debug/FileCheck.EXE > W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll > > 67> -- > > 67> Exit Code: 2 > > 67> Command Output (stdout): > > 67> -- > > 67> Command 0: "W:/LLVM_org/build64/bin/Debug/opt.EXE" "-S" "-globalopt" > > 67> Command 0 Result: 3 > > 67> Command 0 Output: > > 67> > > 67> > > 67> Command 0 Stderr: > > 67> Assertion failed: begin() + idx < end(), file > W:\LLVM_org\llvm\include\llvm/ADT/SmallVector.h, line 140 > > 67> > > 67>CUSTOMBUILD : CRT error : R6010 > > 67> > > 67> > > 67> - abort() has been called > > 67> > > 67> > > 67> > > 67> > > 67> > > 67> > > 67> Command 1: "W:/LLVM_org/build64/bin/Debug/FileCheck.EXE" > "W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll" > > 67> Command 1 Result: 2 > > 67> Command 1 Output: > > 67> > > 67> > > 67> Command 1 Stderr: > > 67>CUSTOMBUILD : FileCheck error : '-' is empty. > > 67> > > 67> > > 67> -- > > 67> > > 67> ******************** > > 67> FAIL: LLVM :: Transforms/IPConstantProp/2008-06-09-WeakProp.ll (5519of> 7763) > > 67> ******************** TEST 'LLVM :: > Transforms/IPConstantProp/2008-06-09-WeakProp.ll' FAILED > ******************** > > 67> Script: > > 67> -- > > 67> W:/LLVM_org/build64/bin/Debug/opt.EXE < > W:\LLVM_org\llvm\test\Transforms\IPConstantProp\2008-06-09-WeakProp.ll > -ipconstprop -S | grep "ret i32 %r" > > 67> -- > > 67> Exit Code: 1 > > 67> Command Output (stdout): > > 67> -- > > 67> Command 0: "W:/LLVM_org/build64/bin/Debug/opt.EXE" "-ipconstprop""-S"> > 67> Command 0 Result: 3 > > 67> Command 0 Output: > > 67> > > 67> > > 67> Command 0 Stderr: > > 67> Assertion failed: begin() + idx < end(), file > W:\LLVM_org\llvm\include\llvm/ADT/SmallVector.h, line 140 > > 67> > > 67>CUSTOMBUILD : CRT error : R6010 > > 67> > > 67> > > 67> - abort() has been called > > 67> > > 67> > > 67> > > 67> > > 67> > > 67> > > 67> Command 1: "grep" "ret i32 %r" > > 67> Command 1 Result: 1 > > 67> Command 1 Output: > > 67> > > 67> > > 67> Command 1 Stderr: > > 67> > > 67> > > 67> -- > > 67> > > > > > > > > - Elena > > > > --------------------------------------------------------------------- > Intel Israel (74) Limited > > This e-mail and any attachments may contain confidential material for > the sole use of the intended recipient(s). Any review or distribution > by others is strictly prohibited. If you are not the intended > recipient, please contact the sender and delete all copies. > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >_______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
See bills commit and chris's revert. Please fix. Sent from phone On Apr 29, 2013 8:41 AM, "Keith Walker" <keith.walker at arm.com> wrote:> I fell over this issue yesterday myself with lots of asserts being thrown. > > I think the issue is in lib/IR/AsmWriter.cpp:1618 in the function > AssemblyWriter::printFunction(const Function *F) > > Looking at the code I think the 2nd for loop should be preceded by the test > ... > > if (Idx < AS.getNumSlots()) > > Not sure why it doesn't fail on other platforms as it looks like it should > be a genuine issue on all platform. > > That change significantly reduced the failures on my Windows build. > > Keith > > -----Original Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On > Behalf Of Reid Kleckner > Sent: 29 April 2013 15:57 > To: Demikhovsky, Elena > Cc: llvmdev at cs.uiuc.edu > Subject: Re: [LLVMdev] Many tests fail on Win64 > > In a debug build you should get a stack trace by default, which would > be helpful here. > > I can try to repro later today, but I'm not surprised there are issues > because most people I know stick with 32-bit builds even on 64-bit > Windows. > > On Mon, Apr 29, 2013 at 4:27 AM, Demikhovsky, Elena > <elena.demikhovsky at intel.com> wrote: > > Hi, > > > > > > > > I check-out the latest version of LLVM and see many failures (on Win64): > > > > ******************** > > > > 67> FAIL: LLVM :: Transforms/GlobalOpt/zeroinitializer-gep-load.ll (5518 > of > > 7763) > > > > 67> ******************** TEST 'LLVM :: > > Transforms/GlobalOpt/zeroinitializer-gep-load.ll' FAILED > > ******************** > > > > 67> Script: > > > > 67> -- > > > > 67> W:/LLVM_org/build64/bin/Debug/opt.EXE < > > W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll -S > > -globalopt | W:/LLVM_org/build64/bin/Debug/FileCheck.EXE > > W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll > > > > 67> -- > > > > 67> Exit Code: 2 > > > > 67> Command Output (stdout): > > > > 67> -- > > > > 67> Command 0: "W:/LLVM_org/build64/bin/Debug/opt.EXE" "-S" "-globalopt" > > > > 67> Command 0 Result: 3 > > > > 67> Command 0 Output: > > > > 67> > > > > 67> > > > > 67> Command 0 Stderr: > > > > 67> Assertion failed: begin() + idx < end(), file > > W:\LLVM_org\llvm\include\llvm/ADT/SmallVector.h, line 140 > > > > 67> > > > > 67>CUSTOMBUILD : CRT error : R6010 > > > > 67> > > > > 67> > > > > 67> - abort() has been called > > > > 67> > > > > 67> > > > > 67> > > > > 67> > > > > 67> > > > > 67> > > > > 67> Command 1: "W:/LLVM_org/build64/bin/Debug/FileCheck.EXE" > > "W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll" > > > > 67> Command 1 Result: 2 > > > > 67> Command 1 Output: > > > > 67> > > > > 67> > > > > 67> Command 1 Stderr: > > > > 67>CUSTOMBUILD : FileCheck error : '-' is empty. > > > > 67> > > > > 67> > > > > 67> -- > > > > 67> > > > > 67> ******************** > > > > 67> FAIL: LLVM :: Transforms/IPConstantProp/2008-06-09-WeakProp.ll (5519 > of > > 7763) > > > > 67> ******************** TEST 'LLVM :: > > Transforms/IPConstantProp/2008-06-09-WeakProp.ll' FAILED > > ******************** > > > > 67> Script: > > > > 67> -- > > > > 67> W:/LLVM_org/build64/bin/Debug/opt.EXE < > > W:\LLVM_org\llvm\test\Transforms\IPConstantProp\2008-06-09-WeakProp.ll > > -ipconstprop -S | grep "ret i32 %r" > > > > 67> -- > > > > 67> Exit Code: 1 > > > > 67> Command Output (stdout): > > > > 67> -- > > > > 67> Command 0: "W:/LLVM_org/build64/bin/Debug/opt.EXE" "-ipconstprop" > "-S" > > > > 67> Command 0 Result: 3 > > > > 67> Command 0 Output: > > > > 67> > > > > 67> > > > > 67> Command 0 Stderr: > > > > 67> Assertion failed: begin() + idx < end(), file > > W:\LLVM_org\llvm\include\llvm/ADT/SmallVector.h, line 140 > > > > 67> > > > > 67>CUSTOMBUILD : CRT error : R6010 > > > > 67> > > > > 67> > > > > 67> - abort() has been called > > > > 67> > > > > 67> > > > > 67> > > > > 67> > > > > 67> > > > > 67> > > > > 67> Command 1: "grep" "ret i32 %r" > > > > 67> Command 1 Result: 1 > > > > 67> Command 1 Output: > > > > 67> > > > > 67> > > > > 67> Command 1 Stderr: > > > > 67> > > > > 67> > > > > 67> -- > > > > 67> > > > > > > > > > > > > > > > > - Elena > > > > > > > > --------------------------------------------------------------------- > > Intel Israel (74) Limited > > > > This e-mail and any attachments may contain confidential material for > > the sole use of the intended recipient(s). Any review or distribution > > by others is strictly prohibited. If you are not the intended > > recipient, please contact the sender and delete all copies. > > > > > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130429/b626c18b/attachment.html>