When I run "make check-all" with ToT I am seeing what looks like a hang generating sanitizer tests: [...] [100%] Generating dynamic/Asan-x86_64-calls-Dynamic-Test make[3]: Leaving directory '/build/debug' [100%] Built target TAsan-x86_64-calls-Dynamic-Test [100%] Generating default/Asan-x86_64-inline-Test make[3]: Leaving directory '/build/debug' [100%] Built target TAsan-x86_64-inline-Test [100%] Generating dynamic/Asan-x86_64-inline-Dynamic-Test make[3]: Leaving directory '/build/debug' [100%] Built target TAsan-x86_64-inline-Dynamic-Test make[3]: Entering directory '/build/debug' Scanning dependencies of target AsanDynamicUnitTests make[3]: Leaving directory '/build/debug' [100%] Built target AsanDynamicUnitTests [100%] Generating Sanitizer-x86_64-Test make[3]: Leaving directory '/build/debug' [100%] Built target TSanitizer-x86_64-Test make[3]: Entering directory '/build/debug' Scanning dependencies of target SanitizerUnitTests make[3]: Leaving directory '/build/debug' [100%] Built target SanitizerUnitTests It seems hung up in lld linking Asan-x86_64-calls-Test among other things. It has been happening for at least a week and source updates haven't changed the situation. An strace reveals: Process 408631 attached futex(0x7ffdae5c7144, FUTEX_WAIT_PRIVATE, 1, NULL It's been sitting there for hours, waiting on a mutex. Rebuilds result in the same behavior Has anyone else seen this? Any tips to get things going? Thanks! -David
Dean Michael Berris via llvm-dev
2018-May-30 23:32 UTC
[llvm-dev] Hang generating sanitizer tests
> On 31 May 2018, at 06:19, via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > When I run "make check-all" with ToT I am seeing what looks like a hang > generating sanitizer tests: > > [...] > [100%] Generating dynamic/Asan-x86_64-calls-Dynamic-Test > make[3]: Leaving directory '/build/debug' > [100%] Built target TAsan-x86_64-calls-Dynamic-Test > [100%] Generating default/Asan-x86_64-inline-Test > make[3]: Leaving directory '/build/debug' > [100%] Built target TAsan-x86_64-inline-Test > [100%] Generating dynamic/Asan-x86_64-inline-Dynamic-Test > make[3]: Leaving directory '/build/debug' > [100%] Built target TAsan-x86_64-inline-Dynamic-Test > make[3]: Entering directory '/build/debug' > Scanning dependencies of target AsanDynamicUnitTests > make[3]: Leaving directory '/build/debug' > [100%] Built target AsanDynamicUnitTests > [100%] Generating Sanitizer-x86_64-Test > make[3]: Leaving directory '/build/debug' > [100%] Built target TSanitizer-x86_64-Test > make[3]: Entering directory '/build/debug' > Scanning dependencies of target SanitizerUnitTests > make[3]: Leaving directory '/build/debug' > [100%] Built target SanitizerUnitTests > > It seems hung up in lld linking Asan-x86_64-calls-Test among other > things. It has been happening for at least a week and source updates > haven't changed the situation. An strace reveals: > > Process 408631 attached > futex(0x7ffdae5c7144, FUTEX_WAIT_PRIVATE, 1, NULL > > It's been sitting there for hours, waiting on a mutex. Rebuilds result > in the same behavior Has anyone else seen this? Any tips to get things > going? >Can you say: - What platform/OS you’re doing this on? - What your CMake configuration looks like (i.e. how you invoked cmake) - Are you building this stand-alone or in-tree? - Did you build lld or is that an lld that you got somewhere else? That would be helpful. -- Dean
Dean Michael Berris via llvm-dev
2018-May-31 03:57 UTC
[llvm-dev] Hang generating sanitizer tests
Just to follow-up, I'm now encountering this as well. I'm doing this on Linux. It seems that when linking with the most-recently built clang, the unit tests are taking a while to complete. It's notably not using more than 1 thread, and if using `lld` I would have expected the linker to still be running in parallel. I'm doing this on a debug build, so that might help narrow it down. On Thu, May 31, 2018 at 9:32 AM Dean Michael Berris <dean.berris at gmail.com> wrote:> > > > > On 31 May 2018, at 06:19, via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > > > When I run "make check-all" with ToT I am seeing what looks like a hang > > generating sanitizer tests: > > > > [...] > > [100%] Generating dynamic/Asan-x86_64-calls-Dynamic-Test > > make[3]: Leaving directory '/build/debug' > > [100%] Built target TAsan-x86_64-calls-Dynamic-Test > > [100%] Generating default/Asan-x86_64-inline-Test > > make[3]: Leaving directory '/build/debug' > > [100%] Built target TAsan-x86_64-inline-Test > > [100%] Generating dynamic/Asan-x86_64-inline-Dynamic-Test > > make[3]: Leaving directory '/build/debug' > > [100%] Built target TAsan-x86_64-inline-Dynamic-Test > > make[3]: Entering directory '/build/debug' > > Scanning dependencies of target AsanDynamicUnitTests > > make[3]: Leaving directory '/build/debug' > > [100%] Built target AsanDynamicUnitTests > > [100%] Generating Sanitizer-x86_64-Test > > make[3]: Leaving directory '/build/debug' > > [100%] Built target TSanitizer-x86_64-Test > > make[3]: Entering directory '/build/debug' > > Scanning dependencies of target SanitizerUnitTests > > make[3]: Leaving directory '/build/debug' > > [100%] Built target SanitizerUnitTests > > > > It seems hung up in lld linking Asan-x86_64-calls-Test among other > > things. It has been happening for at least a week and source updates > > haven't changed the situation. An strace reveals: > > > > Process 408631 attached > > futex(0x7ffdae5c7144, FUTEX_WAIT_PRIVATE, 1, NULL > > > > It's been sitting there for hours, waiting on a mutex. Rebuilds result > > in the same behavior Has anyone else seen this? Any tips to get things > > going? > > > > Can you say: > > - What platform/OS you’re doing this on? > - What your CMake configuration looks like (i.e. how you invoked cmake) > - Are you building this stand-alone or in-tree? > - Did you build lld or is that an lld that you got somewhere else? > > That would be helpful. > > -- Dean >-- Dean