llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[MIPS][LLD] Debug Build Test Failures Due to Assert

Open gbreynoo opened this issue 8 years ago • 10 comments

Bugzilla Link 37785
Resolution FIXED
Resolved on Jun 18, 2018 06:17
Version unspecified
OS Windows NT
CC @atanasyan,@stella.stamenova

Extended Description

The following tests fail when testing a debug build, this appears to be due to an assert in std::stable_sort, raised due to an invalid comparator:

lld :: ELF/mips-26-n32-n64.s lld :: ELF/mips-26.s lld :: ELF/mips-64-disp.s lld :: ELF/mips-64-got.s lld :: ELF/mips-dynamic.s lld :: ELF/mips-dynsym-sort.s lld :: ELF/mips-elf-flags.s lld :: ELF/mips-got-and-copy.s lld :: ELF/mips-got-extsym.s lld :: ELF/mips-got-weak.s lld :: ELF/mips-gp-disp-ver.s lld :: ELF/mips-hilo-gp-disp.s lld :: ELF/mips-lo16-not-relative.s lld :: ELF/mips-mgot.s lld :: ELF/mips-micro-got.s lld :: ELF/mips-micro-got64.s lld :: ELF/mips-micro-jal.s lld :: ELF/mips-micro-plt.s lld :: ELF/mips-options.s lld :: ELF/mips-plt-copy.s lld :: ELF/mips-plt-n32.s lld :: ELF/mips-plt-r6.s lld :: ELF/mips-reginfo.s lld :: ELF/mips-sto-plt.s lld :: ELF/mips-tls-64.s lld :: ELF/mips-tls.s lld :: ELF/mips64-eh-abs-reloc.s

gbreynoo avatar Jun 12 '18 19:06 gbreynoo

Thanks.

atanasyan avatar Jun 18 '18 13:06 atanasyan

Looks good to me, tests are all passing.

gbreynoo avatar Jun 18 '18 11:06 gbreynoo

I hope the problem is fixed by r334851. Could you check it?

atanasyan avatar Jun 15 '18 18:06 atanasyan

We are building for Windows 10 using Visual Studio 2015, Debug(MTd) X64. The CMake options used are as follows:

[...]

I've attached the test outputs, all hit the same assert so I've only attached the stack trace for ELF/mips-26-n32-n64.s.

Thanks for detailed description. I reproduced the bug and provide a fix soon.

atanasyan avatar Jun 15 '18 09:06 atanasyan

Thanks for the swift response. We are building for Windows 10 using Visual Studio 2015, Debug(MTd) X64. The CMake options used are as follows:

-G "Visual Studio 14 2015 Win64" -LLVM_TARGETS_TO_BUILD=all -LLVM_OPTIMIZED_TABLEGEN=ON -LLVM_ENABLE_ASSERTIONS=ON -LLVM_TOOL_CLANG_BUILD=ON -LLVM_TOOL_LLD_BUILD=ON -LLVM_USE_CRT_DEBUG=MTd -LLVM_USE_CRT_CHECKING=MT -LLVM_USE_CRT_RELEASE=MT -LLVM_USE_CRT_RELWITHDEBINFO=MT

I've attached the test outputs, all hit the same assert so I've only attached the stack trace for ELF/mips-26-n32-n64.s.

gbreynoo avatar Jun 14 '18 15:06 gbreynoo

The following tests fail when testing a debug build, this appears to be due to an assert in std::stable_sort, raised due to an invalid comparator:

Could you please provide more details to reproduce the problem: target platform, type of used std c++ library, output of the failed tests, stack traces etc?

atanasyan avatar Jun 13 '18 14:06 atanasyan

Adding the MIPS lld maintainer.

llvmbot avatar Jun 12 '18 19:06 llvmbot

assigned to @atanasyan

gbreynoo avatar Jun 12 '18 19:06 gbreynoo