[PATCH] D112759: [llvm] [Debuginfo] Add llvm-debuginfod-find tool and end-to-end-tests.
Noah Shutty via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 20 11:58:01 PST 2021
noajshu added a comment.
In D112759#3202690 <https://reviews.llvm.org/D112759#3202690>, @lebedev.ri wrote:
> Hello.
> The test added here is failing for me (and i think i'm not the only one) on debian:
>
> [ 99% 3987/3988][ 98% 0:10:34 + 0:00:08] Running the LLVM regression tests
> FAIL: LLVM :: tools/llvm-debuginfod-find/debuginfod.test (913 of 46565)
> ******************** TEST 'LLVM :: tools/llvm-debuginfod-find/debuginfod.test' FAILED ********************
> Script:
> --
> : 'RUN: at line 2'; rm -rf /builddirs/llvm-project/build-Clang13/test/tools/llvm-debuginfod-find/Output/debuginfod.test.tmp
> : 'RUN: at line 3'; mkdir /builddirs/llvm-project/build-Clang13/test/tools/llvm-debuginfod-find/Output/debuginfod.test.tmp
> : 'RUN: at line 5'; DEBUGINFOD_CACHE_PATH=/builddirs/llvm-project/build-Clang13/test/tools/llvm-debuginfod-find/Output/debuginfod.test.tmp python /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/debuginfod.test --server-path /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/Inputs --tool-cmd '/builddirs/llvm-project/build-Clang13/bin/llvm-debuginfod-find --dump --executable abcdef' | /builddirs/llvm-project/build-Clang13/bin/FileCheck /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/debuginfod.test --check-prefix=EXECUTABLE
> : 'RUN: at line 8'; DEBUGINFOD_CACHE_PATH=/builddirs/llvm-project/build-Clang13/test/tools/llvm-debuginfod-find/Output/debuginfod.test.tmp python /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/debuginfod.test --server-path /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/Inputs --tool-cmd '/builddirs/llvm-project/build-Clang13/bin/llvm-debuginfod-find --dump --source=/directory/file.c abcdef' | /builddirs/llvm-project/build-Clang13/bin/FileCheck /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/debuginfod.test --check-prefix=SOURCE
> : 'RUN: at line 11'; DEBUGINFOD_CACHE_PATH=/builddirs/llvm-project/build-Clang13/test/tools/llvm-debuginfod-find/Output/debuginfod.test.tmp python /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/debuginfod.test --server-path /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/Inputs --tool-cmd '/builddirs/llvm-project/build-Clang13/bin/llvm-debuginfod-find --dump --debuginfo abcdef' | /builddirs/llvm-project/build-Clang13/bin/FileCheck /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/debuginfod.test --check-prefix=DEBUGINFO
> : 'RUN: at line 21'; DEBUGINFOD_CACHE_PATH=/builddirs/llvm-project/build-Clang13/test/tools/llvm-debuginfod-find/Output/debuginfod.test.tmp /builddirs/llvm-project/build-Clang13/bin/llvm-debuginfod-find --dump --executable abcdef | /builddirs/llvm-project/build-Clang13/bin/FileCheck /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/debuginfod.test --check-prefix=EXECUTABLE
> : 'RUN: at line 23'; DEBUGINFOD_CACHE_PATH=/builddirs/llvm-project/build-Clang13/test/tools/llvm-debuginfod-find/Output/debuginfod.test.tmp /builddirs/llvm-project/build-Clang13/bin/llvm-debuginfod-find --dump --source=/directory/file.c abcdef | /builddirs/llvm-project/build-Clang13/bin/FileCheck /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/debuginfod.test --check-prefix=SOURCE
> : 'RUN: at line 26'; DEBUGINFOD_CACHE_PATH=/builddirs/llvm-project/build-Clang13/test/tools/llvm-debuginfod-find/Output/debuginfod.test.tmp /builddirs/llvm-project/build-Clang13/bin/llvm-debuginfod-find --dump --debuginfo abcdef | /builddirs/llvm-project/build-Clang13/bin/FileCheck /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/debuginfod.test --check-prefix=DEBUGINFO
> --
> Exit Code: 1
>
> Command Output (stderr):
> --
> 127.0.0.1 - - [20/Dec/2021 17:01:26] "GET /buildid/abcdef/executable HTTP/1.1" 200 -
> PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
> Stack dump:
> 0. Program arguments: /builddirs/llvm-project/build-Clang13/bin/llvm-debuginfod-find --dump --executable abcdef
> 127.0.0.1 - - [20/Dec/2021 17:01:26] code 404, message File not found
> 127.0.0.1 - - [20/Dec/2021 17:01:26] "GET /buildid/811bf0bfb413c00e/debuginfo HTTP/1.1" 404 -
> Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
> /builddirs/llvm-project/build-Clang13/bin/../lib/libLLVMSupport.so.14git(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x23)[0x7f20d9f65353]
> /builddirs/llvm-project/build-Clang13/bin/../lib/libLLVMSupport.so.14git(_ZN4llvm3sys17RunSignalHandlersEv+0xf0)[0x7f20d9f63010]
> /builddirs/llvm-project/build-Clang13/bin/../lib/libLLVMSupport.so.14git(+0x26585a)[0x7f20d9f6585a]
> /lib/x86_64-linux-gnu/libpthread.so.0(+0x13200)[0x7f20d9cc8200]
> /lib/x86_64-linux-gnu/libc.so.6(cfree+0x25)[0x7f20d980b945]
> /builddirs/llvm-project/build-Clang13/bin/../lib/libLLVMDebuginfod.so.14git(_ZN4llvm10HTTPClient7performERKNS_11HTTPRequestERNS_19HTTPResponseHandlerE+0x262)[0x7f20d9f8a042]
> /builddirs/llvm-project/build-Clang13/bin/../lib/libLLVMDebuginfod.so.14git(_ZN4llvm10HTTPClient7performERKNS_11HTTPRequestE+0x41)[0x7f20d9f89d41]
> /builddirs/llvm-project/build-Clang13/bin/../lib/libLLVMDebuginfod.so.14git(_ZN4llvm10HTTPClient3getENS_9StringRefE+0x31)[0x7f20d9f8a2a1]
> /builddirs/llvm-project/build-Clang13/bin/../lib/libLLVMDebuginfod.so.14git(_ZN4llvm27getCachedOrDownloadArtifactB5cxx11ENS_9StringRefES0_S0_NS_8ArrayRefIS0_EENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE+0x475)[0x7f20d9f88135]
> /builddirs/llvm-project/build-Clang13/bin/../lib/libLLVMDebuginfod.so.14git(_ZN4llvm27getCachedOrDownloadArtifactB5cxx11ENS_9StringRefES0_+0x154)[0x7f20d9f876a4]
> /builddirs/llvm-project/build-Clang13/bin/../lib/libLLVMDebuginfod.so.14git(_ZN4llvm29getCachedOrDownloadExecutableB5cxx11ENS_8ArrayRefIhEE+0x1c2)[0x7f20d9f87a02]
> /builddirs/llvm-project/build-Clang13/bin/llvm-debuginfod-find[0x20558e]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f20d97a87ed]
> /builddirs/llvm-project/build-Clang13/bin/llvm-debuginfod-find[0x2048ea]
> /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/debuginfod.test:15:15: error: EXECUTABLE: expected string not found in input
> # EXECUTABLE: fake_executable
> ^
> <stdin>:1:1: note: scanning from here
> nontrivial return code -11
> ^
> <stdin>:1:8: note: possible intended match here
> nontrivial return code -11
> ^
>
> Input file: <stdin>
> Check file: /repositories/llvm-project/llvm/test/tools/llvm-debuginfod-find/debuginfod.test
>
> -dump-input=help explains the following input dump.
>
> Input was:
> <<<<<<
> 1: nontrivial return code -11
> check:15'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
> check:15'1 ? possible intended match
> >>>>>>
>
> --
>
> ********************
> ********************
> Failed Tests (1):
> LLVM :: tools/llvm-debuginfod-find/debuginfod.test
>
>
> Testing Time: 277.28s
> Unsupported : 344
> Passed : 46059
> Expectedly Failed: 161
> Failed : 1
> FAILED: test/CMakeFiles/check-llvm /builddirs/llvm-project/build-Clang13/test/CMakeFiles/check-llvm
> cd /builddirs/llvm-project/build-Clang13/test && /usr/bin/python3.9 /builddirs/llvm-project/build-Clang13/./bin/llvm-lit -sv /builddirs/llvm-project/build-Clang13/test
> ninja: build stopped: subcommand failed.
>
> Could you please resolve the problem?
Hi @lebedev.ri thanks for sharing this error. Based on other anecdotal reports I expect that clearing and regenerating your build folder will fix the issue. It would be helpful if you could please save a backup copy of the build folder first, so that if clearing and re-generating works, we can diagnose and fix the underlying problem with the build system caching.
Then, if that clear-and-regenerate works, would be possibly be able to share your build folder? If you just compress it and upload somewhere I can take a look.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112759/new/
https://reviews.llvm.org/D112759
More information about the llvm-commits
mailing list