LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 44059 - The LLDB test for the entry values will fail due to changes in the compiler
Summary: The LLDB test for the entry values will fail due to changes in the compiler
Status: RESOLVED FIXED
Alias: None
Product: lldb
Classification: Unclassified
Component: All Bugs (show other bugs)
Version: unspecified
Hardware: PC Linux
: P normal
Assignee: LLDB commit list
URL:
Keywords:
Depends on:
Blocks: 44116
  Show dependency tree
 
Reported: 2019-11-19 05:46 PST by Djordje Todorovic
Modified: 2020-01-28 01:53 PST (History)
6 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Djordje Todorovic 2019-11-19 05:46:37 PST
The test will be disabled (temporarily), since we are trying to change the approach for production of the entry values.

The D68206 is the first patch from the set of patches.
Comment 1 Djordje Todorovic 2019-11-25 06:18:31 PST
The https://reviews.llvm.org/D68209 is candidate to resolve this.
Comment 2 Raphael Isemann 2019-12-03 03:56:20 PST
FYI, after D68209 has landed and the test got reenabled, it is failing on my machine (Arch Linux) with the following output:

FAIL: lldb-api :: functionalities/param_entry_vals/basic_entry_values_x86_64/TestBasicEntryValuesX86_64.py (1085 of 1831)
******************** TEST 'lldb-api :: functionalities/param_entry_vals/basic_entry_values_x86_64/TestBasicEntryValuesX86_64.py' FAILED ********************
lldb version 10.0.0 (git@github.com:Teemperor/llvm-project revision 2a873a23dc261fd6b7da1789f00a5261031425ce)
  clang revision 2a873a23dc261fd6b7da1789f00a5261031425ce
  llvm revision 2a873a23dc261fd6b7da1789f00a5261031425ce
LLDB library dir: /home/teemperor/work/ci/build/bin
LLDB import library dir: /home/teemperor/work/ci/build/bin
Skipping following debug info categories: ['dsym', 'gmodules']

Session logs for test failures/errors/unexpected successes will go into directory '/home/teemperor/work/ci/build/lldb-test-traces'
Command invoked: /home/teemperor/work/ci/llvm/lldb/test/API/dotest.py --arch=x86_64 -s /home/teemperor/work/ci/build/lldb-test-traces -S nm -u CXXFLAGS -u CFLAGS --executable /home/teemperor/work/ci/build/./bin/lldb --compiler /home/teemperor/work/ci/build/./bin/clang --dsymutil /home/teemperor/work/ci/build/./bin/dsymutil --filecheck /home/teemperor/work/ci/build/./bin/FileCheck --env ARCHIVER=/usr/bin/ar --env OBJCOPY=/usr/bin/objcopy --env LLVM_LIBS_DIR=/home/teemperor/work/ci/build/./lib --build-dir /home/teemperor/work/ci/build/lldb-test-build.noindex --lldb-module-cache-dir /home/teemperor/work/ci/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/teemperor/work/ci/build/lldb-test-build.noindex/module-cache-clang/lldb-api /home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/functionalities/param_entry_vals/basic_entry_values_x86_64 -p TestBasicEntryValuesX86_64.py
UNSUPPORTED: LLDB (/home/teemperor/work/ci/build/bin/clang-10-x86_64) :: test_dsym (lldbsuite.test.lldbtest.TestBasicEntryValuesX86_64) (test case does not fall in any category of interest for this run) 

--- FileCheck trace (code=1) ---
/home/teemperor/work/ci/build/bin/FileCheck /home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/functionalities/param_entry_vals/basic_entry_values_x86_64/main.cpp -check-prefix=FUNC11-BT

FileCheck input:
* thread #1, name = 'a.out', stop reason = breakpoint 10.1
  * frame #0: 0x0000000000401204 a.out`func11_tailcalled(sink=0x00007ffe292a7ffc, x=123) at main.cpp:160:3 [opt]
    frame #1: 0x0000000000401226 a.out`func12(sink=0x00007ffe292a7ffc, x=123) at main.cpp:179:3 [opt]
    frame #2: 0x00000000004012dd a.out`main at main.cpp:242:3 [opt]
    frame #3: 0x00007f36e4c43153 libc.so.6`__libc_start_main + 243
    frame #4: 0x000000000040104e a.out`_start + 46


FileCheck output:

/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/functionalities/param_entry_vals/basic_entry_values_x86_64/main.cpp:159:21: error: FUNC11-BT-NEXT: expected string not found in input
 // FUNC11-BT-NEXT: func12{{.*}} [artificial]
                    ^
<stdin>:3:2: note: scanning from here
 frame #1: 0x0000000000401226 a.out`func12(sink=0x00007ffe292a7ffc, x=123) at main.cpp:179:3 [opt]
 ^
<stdin>:3:37: note: possible intended match here
 frame #1: 0x0000000000401226 a.out`func12(sink=0x00007ffe292a7ffc, x=123) at main.cpp:179:3 [opt]
                                    ^



FAIL: LLDB (/home/teemperor/work/ci/build/bin/clang-10-x86_64) :: test_dwarf (lldbsuite.test.lldbtest.TestBasicEntryValuesX86_64)

--- FileCheck trace (code=1) ---
/home/teemperor/work/ci/build/bin/FileCheck /home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/functionalities/param_entry_vals/basic_entry_values_x86_64/main.cpp -check-prefix=FUNC11-BT

FileCheck input:
* thread #1, name = 'a.out', stop reason = breakpoint 10.1
  * frame #0: 0x0000000000401204 a.out`func11_tailcalled(sink=0x00007ffe2fd71eec, x=123) at main.cpp:160:3 [opt]
    frame #1: 0x0000000000401226 a.out`func12(sink=0x00007ffe2fd71eec, x=123) at main.cpp:179:3 [opt]
    frame #2: 0x00000000004012dd a.out`main at main.cpp:242:3 [opt]
    frame #3: 0x00007fe4c426f153 libc.so.6`__libc_start_main + 243
    frame #4: 0x000000000040104e a.out`_start + 46


FileCheck output:

/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/functionalities/param_entry_vals/basic_entry_values_x86_64/main.cpp:159:21: error: FUNC11-BT-NEXT: expected string not found in input
 // FUNC11-BT-NEXT: func12{{.*}} [artificial]
                    ^
<stdin>:3:2: note: scanning from here
 frame #1: 0x0000000000401226 a.out`func12(sink=0x00007ffe2fd71eec, x=123) at main.cpp:179:3 [opt]
 ^
<stdin>:3:37: note: possible intended match here
 frame #1: 0x0000000000401226 a.out`func12(sink=0x00007ffe2fd71eec, x=123) at main.cpp:179:3 [opt]
                                    ^



FAIL: LLDB (/home/teemperor/work/ci/build/bin/clang-10-x86_64) :: test_dwo (lldbsuite.test.lldbtest.TestBasicEntryValuesX86_64)
UNSUPPORTED: LLDB (/home/teemperor/work/ci/build/bin/clang-10-x86_64) :: test_gmodules (lldbsuite.test.lldbtest.TestBasicEntryValuesX86_64) (test case does not fall in any category of interest for this run) 
======================================================================
FAIL: test_dwarf (lldbsuite.test.lldbtest.TestBasicEntryValuesX86_64)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1732, in test_method
    return attrvalue(self)
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/decorators.py", line 141, in wrapper
    func(*args, **kwargs)
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/decorators.py", line 141, in wrapper
    func(*args, **kwargs)
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/decorators.py", line 141, in wrapper
    func(*args, **kwargs)
  [Previous line repeated 1 more time]
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/lldbinline.py", line 124, in _test
    self.do_test()
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/lldbinline.py", line 147, in do_test
    parser.handle_breakpoint(self, breakpoint_id)
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/lldbinline.py", line 80, in handle_breakpoint
    test.execute_user_command(breakpoint['command'])
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/lldbinline.py", line 127, in execute_user_command
    exec(__command, globals(), locals())
  File "<string>", line 1, in <module>
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2252, in filecheck
    self.assertTrue(cmd_status == 0)
AssertionError: False is not True
Config=x86_64-/home/teemperor/work/ci/build/bin/clang-10
======================================================================
FAIL: test_dwo (lldbsuite.test.lldbtest.TestBasicEntryValuesX86_64)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1732, in test_method
    return attrvalue(self)
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/decorators.py", line 141, in wrapper
    func(*args, **kwargs)
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/decorators.py", line 141, in wrapper
    func(*args, **kwargs)
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/decorators.py", line 141, in wrapper
    func(*args, **kwargs)
  [Previous line repeated 1 more time]
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/lldbinline.py", line 124, in _test
    self.do_test()
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/lldbinline.py", line 147, in do_test
    parser.handle_breakpoint(self, breakpoint_id)
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/lldbinline.py", line 80, in handle_breakpoint
    test.execute_user_command(breakpoint['command'])
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/lldbinline.py", line 127, in execute_user_command
    exec(__command, globals(), locals())
  File "<string>", line 1, in <module>
  File "/home/teemperor/work/ci/llvm/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2252, in filecheck
    self.assertTrue(cmd_status == 0)
AssertionError: False is not True
Config=x86_64-/home/teemperor/work/ci/build/bin/clang-10
----------------------------------------------------------------------
Ran 4 tests in 6.379s

RESULT: FAILED (0 passes, 2 failures, 0 errors, 2 skipped, 0 expected failures, 0 unexpected successes)

********************
Comment 3 Djordje Todorovic 2019-12-03 04:14:31 PST
Reverted while investigating. Thanks!
Comment 4 Djordje Todorovic 2019-12-06 01:07:06 PST
This has been resolved with the rG4b4ede440a2a.