[libcxx-commits] [PATCH] D97888: [libc++] Add a CI job to test the Runtimes build

Marek Kurdej via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 29 01:45:42 PDT 2021


curdeius added a comment.

In D97888#2655147 <https://reviews.llvm.org/D97888#2655147>, @phosek wrote:

> Locally I'm also seeing this failure:
>
>   FAIL: /src/clang-llvm/llvm-project/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp:611
>   GDB printed:
>      u"warning: RTTI symbol not found for class 'std::__1::__shared_ptr_emplace<int const, std::__1::allocator<int const> >'\nwarning: RTTI symbol not found for class 'std::__1::__shared_ptr_emplace<int const, std::__1::allocator<int const> >'\nstd::shared_ptr<int> count 2, weak 0 containing = {__ptr_ = 0x46a338}"
>   Value should match:
>      u'std::shared_ptr<int> count 2, weak 0 containing = {__ptr_ = 0x[a-f0-9]+}'
>   FAIL: /src/clang-llvm/llvm-project/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp:616
>   GDB printed:
>      u"warning: RTTI symbol not found for class 'std::__1::__shared_ptr_emplace<int const, std::__1::allocator<int const> >'\nwarning: RTTI symbol not found for class 'std::__1::__shared_ptr_emplace<int const, std::__1::allocator<int const> >'\nstd::shared_ptr<int> count 3, weak 0 containing = {__ptr_ = 0x46a338}"
>   Value should match:
>      u'std::shared_ptr<int> count 3, weak 0 containing = {__ptr_ = 0x[a-f0-9]+}'
>   FAIL: /src/clang-llvm/llvm-project/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp:622
>   GDB printed:
>      u"warning: RTTI symbol not found for class 'std::__1::__shared_ptr_emplace<int const, std::__1::allocator<int const> >'\nwarning: RTTI symbol not found for class 'std::__1::__shared_ptr_emplace<int const, std::__1::allocator<int const> >'\nstd::shared_ptr<int> count 3, weak 1 containing = {__ptr_ = 0x46a338}"
>   Value should match:
>      u'std::shared_ptr<int> count 3, weak 1 containing = {__ptr_ = 0x[a-f0-9]+}'
>   FAIL: /src/clang-llvm/llvm-project/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp:627
>   GDB printed:
>      u"warning: RTTI symbol not found for class 'std::__1::__shared_ptr_emplace<int const, std::__1::allocator<int const> >'\nwarning: RTTI symbol not found for class 'std::__1::__shared_ptr_emplace<int const, std::__1::allocator<int const> >'\nstd::shared_ptr<int> count 3, weak 0 containing = {__ptr_ = 0x46a338}"
>   Value should match:
>      u'std::shared_ptr<int> count 3, weak 0 containing = {__ptr_ = 0x[a-f0-9]+}'

The above are tracked by https://bugs.llvm.org/show_bug.cgi?id=48937. To check, use gcc or build in Debug mode (the test should pass).

> PASS: /src/clang-llvm/llvm-project/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp:632
> FAIL: /src/clang-llvm/llvm-project/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp:243
> GDB printed:
>
>   u'std::bitset<258>Traceback (most recent call last):\n  File "/src/clang-llvm/llvm-project/libcxx/test/libcxx/gdb/../../../utils/gdb/libcxx/printers.py", line 444, in _list_it\n    if self.values[word] & (1 << word_bit):\nTypeError: list indices must be integers, not float\n'
>
> Value should match:
>
>   u'std::bitset<258>'
>
> PASS: /src/clang-llvm/llvm-project/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp:246
> FAIL: /src/clang-llvm/llvm-project/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp:249
> GDB printed:
>
>   u'std::bitset<15>Traceback (most recent call last):\n  File "/src/clang-llvm/llvm-project/libcxx/test/libcxx/gdb/../../../utils/gdb/libcxx/printers.py", line 444, in _list_it\n    if self.values[word] & (1 << word_bit):\nTypeError: list indices must be integers, not float\n'
>
> Value should match:
>
>   u'std::bitset<15> = {[2] = 1, [3] = 1, [4] = 1, [5] = 1, [6] = 1, [7] = 1, [8] = 1, [9] = 1}'
>
> FAIL: /src/clang-llvm/llvm-project/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp:257
> GDB printed:
>
>   u'std::bitset<258>Traceback (most recent call last):\n  File "/src/clang-llvm/llvm-project/libcxx/test/libcxx/gdb/../../../utils/gdb/libcxx/printers.py", line 444, in _list_it\n    if self.values[word] & (1 << word_bit):\nTypeError: list indices must be integers, not float\n'
>
> Value should match:
>
>   u'std::bitset<258> = {[0] = 1, [129] = 1, [132] = 1}'
>
>   I haven't seen this on bots so we shouldn't block the submission on this, but I'd like to investigate it to understand why it's failing only under the runtimes build.

Those ones seem to be new.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97888/new/

https://reviews.llvm.org/D97888



More information about the libcxx-commits mailing list