[lldb-dev] [Bug 39955] New: Libcxx tests fail on Linux

via lldb-dev lldb-dev at lists.llvm.org
Tue Dec 11 06:10:50 PST 2018


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

            Bug ID: 39955
           Summary: Libcxx tests fail on Linux
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: martongabesz at gmail.com
                CC: llvm-bugs at lists.llvm.org

Ubuntu 16.04, x86_64

There are 3 failing LLDB/libcxx tests on Linux:
    lldb-Suite ::
functionalities/data-formatter/data-formatter-stl/libcxx/function/TestLibCxxFunction.py
    lldb-Suite ::
functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/TestDataFormatterLibcxxListLoop.py
    lldb-Suite ::
functionalities/data-formatter/data-formatter-stl/libcxx/variant/TestDataFormatterLibcxxVariant.py

Steps to reproduce:
* Checkout libcxx, libcxxabi
* ninja cxx cxxabi
* sudo ninja install-cxx install-cxxabi
* ninja check-lldb




FAIL: lldb-Suite ::
functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/TestDataFormatterLibcxxListLoop.py
(264 of 1400)
******************** TEST 'lldb-Suite ::
functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/TestDataFormatterLibcxxListLoop.py'
FAILED ********************
lldb version 8.0.0 (https://llvm.org/svn/llvm-project/lldb/trunk revision
348711)
  clang revision 348755
  llvm revision 348757
LLDB library dir: /home/egbomrt/WORK/llvm3/build/release_assert/bin
LLDB import library dir: /home/egbomrt/WORK/llvm3/build/release_assert/bin
The 'lldb-vscode' executable cannot be located.  The lldb-vscode tests can not
be run as a result.
Skipping following debug info categories: ['dsym', 'gmodules']

Session logs for test failures/errors/unexpected successes will go into
directory '/home/egbomrt/WORK/llvm3/build/release_assert/lldb-test-traces'
Command invoked: /home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/test/dotest.py -q
--arch=x86_64 -s /home/egbomrt/WORK/llvm3/build/release_assert/lldb-test-traces
--build-dir
/home/egbomrt/WORK/llvm3/build/release_assert/lldb-test-build.noindex -S nm -u
CXXFLAGS -u CFLAGS --executable
/home/egbomrt/WORK/llvm3/build/release_assert/./bin/lldb --dsymutil
/home/egbomrt/WORK/llvm3/build/release_assert/./bin/dsymutil --filecheck
/home/egbomrt/WORK/llvm3/build/release_assert/./bin/FileCheck -C
/home/egbomrt/WORK/llvm3/build/release_assert/./bin/clang --env
ARCHIVER=/usr/bin/ar --env OBJCOPY=/usr/bin/objcopy
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop
-p TestDataFormatterLibcxxListLoop.py
FAIL: LLDB (/home/egbomrt/WORK/llvm3/build/release_assert/bin/clang-8-x86_64)
:: test_with_run_command
(TestDataFormatterLibcxxListLoop.LibcxxListDataFormatterTestCase)
======================================================================
ERROR: test_with_run_command
(TestDataFormatterLibcxxListLoop.LibcxxListDataFormatterTestCase)
----------------------------------------------------------------------
Error when building test subject.

Build Command:
make
VPATH=/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop
-C
/home/egbomrt/WORK/llvm3/build/release_assert/lldb-test-build.noindex/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/TestDataFormatterLibcxxListLoop.test_with_run_command
-I
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop
-f
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/Makefile
all ARCH=x86_64 CC="/home/egbomrt/WORK/llvm3/build/release_assert/bin/clang-8"

Build Command Output:
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp:19:24:
error: no member named '__value_' in 'std::__1::__list_node_base<int, void *>'
    assert(third_elem->__value_ == 3);
           ~~~~~~~~~~  ^
/usr/include/assert.h:89:5: note: expanded from macro 'assert'
  ((expr)                                                               \
    ^~~~
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp:21:24:
error: no member named '__value_' in 'std::__1::__list_node_base<int, void *>'
    assert(fifth_elem->__value_ == 5);
           ~~~~~~~~~~  ^
/usr/include/assert.h:89:5: note: expanded from macro 'assert'
  ((expr)                                                               \
    ^~~~
2 errors generated.
make: *** [main.o] Error 1

Test Directory:
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop
----------------------------------------------------------------------
Ran 1 test in 0.955s

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

********************
FAIL: lldb-Suite ::
functionalities/data-formatter/data-formatter-stl/libcxx/function/TestLibCxxFunction.py
(265 of 1400)
******************** TEST 'lldb-Suite ::
functionalities/data-formatter/data-formatter-stl/libcxx/function/TestLibCxxFunction.py'
FAILED ********************
lldb version 8.0.0 (https://llvm.org/svn/llvm-project/lldb/trunk revision
348711)
  clang revision 348755
  llvm revision 348757

Session logs for test failures/errors/unexpected successes will go into
directory '/home/egbomrt/WORK/llvm3/build/release_assert/lldb-test-traces'
Command invoked: /home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/test/dotest.py -q
--arch=x86_64 -s /home/egbomrt/WORK/llvm3/build/release_assert/lldb-test-traces
--build-dir
/home/egbomrt/WORK/llvm3/build/release_assert/lldb-test-build.noindex -S nm -u
CXXFLAGS -u CFLAGS --executable
/home/egbomrt/WORK/llvm3/build/release_assert/./bin/lldb --dsymutil
/home/egbomrt/WORK/llvm3/build/release_assert/./bin/dsymutil --filecheck
/home/egbomrt/WORK/llvm3/build/release_assert/./bin/FileCheck -C
/home/egbomrt/WORK/llvm3/build/release_assert/./bin/clang --env
ARCHIVER=/usr/bin/ar --env OBJCOPY=/usr/bin/objcopy
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/function
-p TestLibCxxFunction.py
UNSUPPORTED: LLDB
(/home/egbomrt/WORK/llvm3/build/release_assert/bin/clang-8-x86_64) :: test_dsym
(TestLibCxxFunction.LibCxxFunctionTestCase) (test case does not fall in any
category of interest for this run)

********************
FAIL: lldb-Suite ::
functionalities/data-formatter/data-formatter-stl/libcxx/variant/TestDataFormatterLibcxxVariant.py
(277 of 1400)
******************** TEST 'lldb-Suite ::
functionalities/data-formatter/data-formatter-stl/libcxx/variant/TestDataFormatterLibcxxVariant.py'
FAILED ********************
lldb version 8.0.0 (https://llvm.org/svn/llvm-project/lldb/trunk revision
348711)
  clang revision 348755
  llvm revision 348757
LLDB library dir: /home/egbomrt/WORK/llvm3/build/release_assert/bin
LLDB import library dir: /home/egbomrt/WORK/llvm3/build/release_assert/bin
The 'lldb-vscode' executable cannot be located.  The lldb-vscode tests can not
be run as a result.
Skipping following debug info categories: ['dsym', 'gmodules']

Session logs for test failures/errors/unexpected successes will go into
directory '/home/egbomrt/WORK/llvm3/build/release_assert/lldb-test-traces'
Command invoked: /home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/test/dotest.py -q
--arch=x86_64 -s /home/egbomrt/WORK/llvm3/build/release_assert/lldb-test-traces
--build-dir
/home/egbomrt/WORK/llvm3/build/release_assert/lldb-test-build.noindex -S nm -u
CXXFLAGS -u CFLAGS --executable
/home/egbomrt/WORK/llvm3/build/release_assert/./bin/lldb --dsymutil
/home/egbomrt/WORK/llvm3/build/release_assert/./bin/dsymutil --filecheck
/home/egbomrt/WORK/llvm3/build/release_assert/./bin/FileCheck -C
/home/egbomrt/WORK/llvm3/build/release_assert/./bin/clang --env
ARCHIVER=/usr/bin/ar --env OBJCOPY=/usr/bin/objcopy
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/variant
-p TestDataFormatterLibcxxVariant.py
UNSUPPORTED: LLDB
(/home/egbomrt/WORK/llvm3/build/release_assert/bin/clang-8-x86_64) ::
test_with_run_command_dsym
(TestDataFormatterLibcxxVariant.LibcxxVariantDataFormatterTestCase) (test case
does not fall in any category of interest for this run)
FAIL: LLDB (/home/egbomrt/WORK/llvm3/build/release_assert/bin/clang-8-x86_64)
:: test_with_run_command_dwarf
(TestDataFormatterLibcxxVariant.LibcxxVariantDataFormatterTestCase)
FAIL: LLDB (/home/egbomrt/WORK/llvm3/build/release_assert/bin/clang-8-x86_64)
:: test_with_run_command_dwo
(TestDataFormatterLibcxxVariant.LibcxxVariantDataFormatterTestCase)
UNSUPPORTED: LLDB
(/home/egbomrt/WORK/llvm3/build/release_assert/bin/clang-8-x86_64) ::
test_with_run_command_gmodules
(TestDataFormatterLibcxxVariant.LibcxxVariantDataFormatterTestCase) (test case
does not fall in any category of interest for this run)
======================================================================
ERROR: test_with_run_command_dwarf
(TestDataFormatterLibcxxVariant.LibcxxVariantDataFormatterTestCase)
   Test that that file and class static variables display correctly.
----------------------------------------------------------------------
Error when building test subject.

Build Command:
make
VPATH=/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/variant
-C
/home/egbomrt/WORK/llvm3/build/release_assert/lldb-test-build.noindex/functionalities/data-formatter/data-formatter-stl/libcxx/variant/TestDataFormatterLibcxxVariant.test_with_run_command_dwarf
-I
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/variant
-f
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/variant/Makefile
MAKE_DSYM=NO ARCH=x86_64
CC="/home/egbomrt/WORK/llvm3/build/release_assert/bin/clang-8"

Build Command Output:
main.o: In function `std::__1::__throw_bad_variant_access()':
/home/egbomrt/WORK/llvm3/build/release_assert/bin/../include/c++/v1/variant:236:
undefined reference to `typeinfo for std::bad_variant_access'
/home/egbomrt/WORK/llvm3/build/release_assert/bin/../include/c++/v1/variant:236:
undefined reference to `typeinfo for std::bad_variant_access'
/home/egbomrt/WORK/llvm3/build/release_assert/bin/../include/c++/v1/variant:236:
undefined reference to `typeinfo for std::bad_variant_access'
/home/egbomrt/WORK/llvm3/build/release_assert/bin/../include/c++/v1/variant:236:
undefined reference to `typeinfo for std::bad_variant_access'
main.o: In function `bad_variant_access':
/home/egbomrt/WORK/llvm3/build/release_assert/bin/../include/c++/v1/variant:221:
undefined reference to `vtable for std::bad_variant_access'
clang-8: error: linker command failed with exit code 1 (use -v to see
invocation)
make: *** [a.out] Error 1

Test Directory:
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/variant
======================================================================
ERROR: test_with_run_command_dwo
(TestDataFormatterLibcxxVariant.LibcxxVariantDataFormatterTestCase)
   Test that that file and class static variables display correctly.
----------------------------------------------------------------------
Error when building test subject.

Build Command:
make
VPATH=/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/variant
-C
/home/egbomrt/WORK/llvm3/build/release_assert/lldb-test-build.noindex/functionalities/data-formatter/data-formatter-stl/libcxx/variant/TestDataFormatterLibcxxVariant.test_with_run_command_dwo
-I
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/variant
-f
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/variant/Makefile
MAKE_DSYM=NO MAKE_DWO=YES ARCH=x86_64
CC="/home/egbomrt/WORK/llvm3/build/release_assert/bin/clang-8"

Build Command Output:
main.o: In function `__throw_bad_variant_access':
/home/egbomrt/WORK/llvm3/build/release_assert/bin/../include/c++/v1/variant:236:
undefined reference to `typeinfo for std::bad_variant_access'
/home/egbomrt/WORK/llvm3/build/release_assert/bin/../include/c++/v1/variant:236:
undefined reference to `typeinfo for std::bad_variant_access'
/home/egbomrt/WORK/llvm3/build/release_assert/bin/../include/c++/v1/variant:236:
undefined reference to `typeinfo for std::bad_variant_access'
/home/egbomrt/WORK/llvm3/build/release_assert/bin/../include/c++/v1/variant:236:
undefined reference to `typeinfo for std::bad_variant_access'
main.o: In function `std::bad_variant_access::bad_variant_access()':
/home/egbomrt/WORK/llvm3/build/release_assert/bin/../include/c++/v1/variant:221:
undefined reference to `vtable for std::bad_variant_access'
clang-8: error: linker command failed with exit code 1 (use -v to see
invocation)
make: *** [a.out] Error 1

Test Directory:
/home/egbomrt/WORK/llvm3/git/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/variant
----------------------------------------------------------------------
Ran 4 tests in 4.160s

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20181211/53a2531f/attachment-0001.html>


More information about the lldb-dev mailing list