[MIPS][LLD] Debug Build Test Failures Due to Assert
| 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
Thanks.
Looks good to me, tests are all passing.
I hope the problem is fixed by r334851. Could you check it?
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.
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.
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?
Adding the MIPS lld maintainer.
assigned to @atanasyan