[llvm-bugs] [Bug 45652] New: Broken test with a release build: debuginfo-tests :: llvm-prettyprinters/gdb/llvm-support.gdb

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 23 15:19:53 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45652

            Bug ID: 45652
           Summary: Broken test with a release build: debuginfo-tests ::
                    llvm-prettyprinters/gdb/llvm-support.gdb
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: tbosch1009 at gmail.com
                CC: jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com

The test llvm-prettyprinters/gdb/llvm-support.gdb in debuginfo-tests seems to
be broken when llvm is configured to use release builds.

This is most probably due to the fact that the used binary
llvm-prettyprinters/gdb/llvm-support.cpp doesn't contain debug symbols in this
case.

The failure is below:


FAIL: debuginfo-tests :: llvm-prettyprinters/gdb/llvm-support.gdb (22 of 55)
******************** TEST 'debuginfo-tests ::
llvm-prettyprinters/gdb/llvm-support.gdb' FAILED ********************
Script:
--
: 'RUN: at line 1';   gdb -q -batch -n -iex 'source
/usr/local/google/home/tbosch/llvm-project/llvm/utils/gdb-scripts/prettyprinters.py'
-x
/usr/local/google/home/tbosch/llvm-project/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb
/usr/local/google/home/tbosch/llvm-project/build/./bin/check-gdb-llvm-support |
/usr/local/google/home/tbosch/llvm-project/build/bin/FileCheck
/usr/local/google/home/tbosch/llvm-project/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb
--dump-input-on-failure
--
Exit Code: 1

Command Output (stderr):
--
gdb: warning: Couldn't determine a path for the index cache directory.
/usr/local/google/home/tbosch/llvm-project/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb:7:
Error in sourced command file:
No symbol "ArrayRef" in current context.
/usr/local/google/home/tbosch/llvm-project/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb:6:10:
error: CHECK: expected string not found in input
# CHECK: llvm::ArrayRef of length 3 = {1, 2, 3}
         ^
<stdin>:1:1: note: scanning from here
Breakpoint 1 at 0x4440
^

Input file: <stdin>
Check file:
/usr/local/google/home/tbosch/llvm-project/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb

-dump-input=help describes the format of the following dump.

Full input was:
<<<<<<
         1: Breakpoint 1 at 0x4440
check:6     X~~~~~~~~~~~~~~~~~~~~~ error: no match found
         2: [Thread debugging using libthread_db enabled]
check:6     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         3: Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".
check:6    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         4:
check:6     ~
         5: Breakpoint 1, 0x0000555555558440 in main ()
check:6     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200423/52f2ac4f/attachment-0001.html>


More information about the llvm-bugs mailing list