pybind / pybind11

Seamless operability between C++11 and Python
https://pybind11.readthedocs.io/
Other
15.83k stars 2.12k forks source link

[BUG] 2.6.2: test suite is failing with core SIGSEGV #3009

Open kloczek opened 3 years ago

kloczek commented 3 years ago
cd /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/x86_64-redhat-linux-gnu/tests && /usr/bin/python3 -m pytest /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_async.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_buffers.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_builtin_casters.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_call_policies.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_callbacks.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_chrono.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_class.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_constants_and_functions.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_copy_move.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_custom_type_casters.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_docstring_options.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_eigen.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_enum.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_eval.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_exceptions.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_factory_constructors.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_gil_scoped.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_iostream.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_kwargs_and_defaults.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_local_bindings.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_methods_and_attributes.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_modules.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_multiple_inheritance.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_numpy_array.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_numpy_dtypes.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_numpy_vectorize.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_opaque_types.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_operator_overloading.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_pickling.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_pytypes.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_sequences_and_iterators.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_smart_ptr.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_stl.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_stl_binders.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_tagbased_polymorphic.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_union.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_virtual_functions.py
============================= test session starts ==============================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests, configfile: pytest.ini
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, cov-2.11.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, mock-3.6.0, hypothesis-6.12.0, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, flaky-3.7.0, requests-mock-1.9.2
collected 439 items

../../tests/test_async.py ..                                             [  0%]
../../tests/test_buffers.py .........                                    [  2%]
../../tests/test_builtin_casters.py ...................                  [  6%]
../../tests/test_call_policies.py ........                               [  8%]
../../tests/test_callbacks.py .........                                  [ 10%]
../../tests/test_chrono.py ...........................................   [ 20%]
../../tests/test_class.py .............................                  [ 27%]
../../tests/test_constants_and_functions.py .....                        [ 28%]
../../tests/test_copy_move.py .......                                    [ 29%]
../../tests/test_custom_type_casters.py ..                               [ 30%]
../../tests/test_docstring_options.py .                                  [ 30%]
../../tests/test_eigen.py ....................ss...                      [ 36%]
../../tests/test_enum.py .......                                         [ 37%]
../../tests/test_eval.py ...                                             [ 38%]
../../tests/test_exceptions.py .........                                 [ 40%]
../../tests/test_factory_constructors.py ...............                 [ 43%]
../../tests/test_gil_scoped.py .....                                     [ 45%]
../../tests/test_iostream.py ............terminate called without an active exception
Fatal Python error: Aborted

Current thread 0x00007fa1380e1740 (most recent call first):
  File "/home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_iostream.py", line 241 in test_threading
  File "/usr/lib/python3.8/site-packages/_pytest/python.py", line 183 in pytest_pyfunc_call
  File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.8/site-packages/_pytest/python.py", line 1641 in runtest
  File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call
  File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 255 in <lambda>
  File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 311 in from_call
  File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 254 in call_runtest_hook
  File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 138 in call_and_report
  File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 126 in runtestprotocol
  File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 109 in pytest_runtest_protocol
  File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 94 in pytest_runtest_protocol
  File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
  File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 323 in _main
  File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 269 in wrap_session
  File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
  File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 162 in main
  File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 185 in console_main
  File "/usr/lib/python3.8/site-packages/pytest/__main__.py", line 5 in <module>
  File "/usr/lib64/python3.8/runpy.py", line 87 in _run_code
  File "/usr/lib64/python3.8/runpy.py", line 194 in _run_module_as_main
make[3]: *** [tests/CMakeFiles/pytest.dir/build.make:75: tests/CMakeFiles/pytest] Aborted (core dumped)
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/x86_64-redhat-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:308: tests/CMakeFiles/pytest.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:259: tests/CMakeFiles/check.dir/rule] Error 2
make: *** [Makefile:186: check] Error 2
[root@barrel Packages]# coredumpctl gdb 356739
           PID: 356739 (python3)
           UID: 1000 (tkloczko)
           GID: 1000 (tkloczko)
        Signal: 6 (ABRT)
     Timestamp: Sat 2021-05-15 10:20:01 BST (12min ago)
  Command Line: /usr/bin/python3 -m pytest /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_async.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_buffers.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_builtin_casters.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_call_policies.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_callbacks.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_chrono.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_class.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_constants_and_functions.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_copy_move.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_custom_type_casters.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_docstring_options.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_eigen.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_enum.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_eval.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_exceptions.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_factory_constructors.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_gil_scoped.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_iostream.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_kwargs_and_defaults.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_local_bindings.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_methods_and_attributes.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_modules.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_multiple_inheritance.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_numpy_array.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_numpy_dtypes.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_numpy_vectorize.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_opaque_types.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_operator_overloading.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_pickling.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_pytypes.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_sequences_and_iterators.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_smart_ptr.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_stl.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_stl_binders.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_tagbased_polymorphic.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_union.py /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_virtual_functions.py
    Executable: /usr/bin/python3.8
 Control Group: /user.slice/user-1000.slice/session-55.scope
          Unit: session-55.scope
         Slice: user-1000.slice
       Session: 55
     Owner UID: 1000 (tkloczko)
       Boot ID: fd1a87b571ad4d85982a5cc10200ed8c
    Machine ID: d033f66b249a4ec09acfa81ac205554f
      Hostname: barrel
       Storage: /var/lib/systemd/coredump/core.python3.1000.fd1a87b571ad4d85982a5cc10200ed8c.356739.1621070401000000.zst
       Message: Process 356739 (python3) of user 1000 dumped core.

                Stack trace of thread 356739:
                #0  0x00007fa138294292 raise (libc.so.6 + 0x3d292)
                #1  0x00007fa138294310 __restore_rt (libc.so.6 + 0x3d310)
                #2  0x00007fa138294292 raise (libc.so.6 + 0x3d292)
                #3  0x00007fa13827d8a4 abort (libc.so.6 + 0x268a4)
                #4  0x00007fa1286e2a46 _ZN9__gnu_cxx27__verbose_terminate_handlerEv.cold (libstdc++.so.6 + 0xa1a46)
                #5  0x00007fa1286ee29c _ZN10__cxxabiv111__terminateEPFvvE (libstdc++.so.6 + 0xad29c)
                #6  0x00007fa1286ee307 _ZSt9terminatev (libstdc++.so.6 + 0xad307)
                #7  0x00007f9f91f238db n/a (/home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/x86_64-redhat-linux-gnu/tests/pybind11_tests.cpython-38-x86_64-linux-gnu.so + 0x338db)
                #8  0x00007ffd23d50100 n/a (n/a + 0x0)

GNU gdb (GDB) Fedora 9.0.50.20191119-2.fc32
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/python3.8...
Reading symbols from .gnu_debugdata for /usr/bin/python3.8...
(No debugging symbols found in .gnu_debugdata for /usr/bin/python3.8)

warning: core file may not match specified executable file.
[New LWP 356739]
Warning: couldn't activate thread debugging using libthread_db: Cannot find new threads: generic error

warning: File "/usr/lib64/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /usr/lib64/libthread_db-1.0.so
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"

warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/bin/python3 -m pytest /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/t'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007fa138294292 in raise () from /lib64/libc.so.6
 python3-3.8.9-2.fc35.x86_64
(gdb) bt full
Missing separate debuginfos, use: dnf debuginfo-install#0  0x00007fa138294292 in raise () from /lib64/libc.so.6
No symbol table info available.
#1  <signal handler called>
No symbol table info available.
#2  0x00007fa138294292 in raise () from /lib64/libc.so.6
No symbol table info available.
#3  0x00007fa13827d8a4 in abort () from /lib64/libc.so.6
No symbol table info available.
#4  0x00007fa1286e2a46 in __gnu_cxx::__verbose_terminate_handler() [clone .cold] () from /lib64/libstdc++.so.6
No symbol table info available.
#5  0x00007fa1286ee29c in __cxxabiv1::__terminate(void (*)()) () from /lib64/libstdc++.so.6
No symbol table info available.
#6  0x00007fa1286ee307 in std::terminate() () from /lib64/libstdc++.so.6
No symbol table info available.
#7  0x00007f9f91f238db in pybind11::scoped_ostream_redirect::~scoped_ostream_redirect (this=<optimized out>, this=<optimized out>)
    at /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/include/pybind11/pytypes.h:199
No locals.
#8  0x00007f9f9204aebb in pybind11::cpp_function::initialize<pybind11::add_ostream_redirect(pybind11::module_, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda(pybind11::detail::OstreamRedirect&, pybind11::args)#1}, void, pybind11::detail::OstreamRedirect&, pybind11::args, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::add_ostream_redirect(pybind11::module_, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda(pybind11::detail::OstreamRedirect&, pybind11::args)#1}&&, void (*)(pybind11::detail::OstreamRedirect&, pybind11::args), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&)::{lambda(pybind11::detail::function_call&)#3}::_FUN(pybind11::detail::function_call) () at /usr/include/c++/11/bits/unique_ptr.h:85
        data_i = 42
        PyDateTimeAPI = 0x7fa12a5b1f20
        std::__ioinit = {<No data fields>}
        std::__ioinit = {<No data fields>}
        std::__ioinit = {<No data fields>}
        std::__ioinit = {<No data fields>}
        std::__ioinit = {<No data fields>}
        std::__ioinit = {<No data fields>}
        std::__ioinit = {<No data fields>}
        std::__ioinit = {<No data fields>}
        std::__ioinit = {<No data fields>}
        std::__ioinit = {<No data fields>}
        std::__ioinit = {<No data fields>}
        std::__ioinit = {<No data fields>}
        pybind11_module_def_pybind11_tests = {m_base = {ob_base = {ob_refcnt = 2, ob_type = 0x7fa13874dd40 <PyModuleDef_Type>},
            m_init = 0x7f9f92154a70 <PyInit_pybind11_tests()>, m_index = 166, m_copy = 0x7f9f9229cd00}, m_name = 0x7f9f921777c0 "pybind11_tests", m_doc = 0x0,
          m_size = -1, m_methods = 0x0, m_slots = 0x0, m_traverse = 0x0, m_clear = 0x0, m_free = 0x0}
        _S_vtable = {static __index = 0, static __do_cookie = 0, _M_arr = {{
              _M_data = 0x7f9f91f7a8b0 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__deduce_visit_result<char const*> (*)(test_submodule_stl(pybind11::module_&)::visitor&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, std::nullptr_t>&)>, std::integer_sequence<long unsigned int, 0> >::__visit_invoke(visitor &&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, std::nullptr_t> &)>}, {
              _M_data = 0x7f9f91f89ab0 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__deduce_visit_result<char const*> (*)(test_submodule_stl(pybind11::module_&)::visitor&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, std::nullptr_t>&)>, std::integer_sequence<long unsigned int, 1> >::__visit_invoke(visitor &&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, std::nullptr_t> &)>}, {
              _M_data = 0x7f9f91f7a8c0 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__deduce_visit_result<char const*> (*)(test_submodule_stl(pybind11::module_&)::visitor&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, std::nullptr_t>&)>, std::integer_sequence<long unsigned int, 2> >::__visit_invoke(visitor &&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, std::nullptr_t> &)>}, {
              _M_data = 0x7f9f91f7a8d0 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__deduce_visit_result<char const*> (*)(test_submodule_stl(pybind11::module_&)::visitor&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, std::nullptr_t>&)>, std::integer_sequence<long unsigned int, 3> >::__visit_invoke(visitor &&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, s--Type <RET> for more, q to quit, c to continue without paging--
td::allocator<char> >, double, std::nullptr_t> &)>}}}
        _S_vtable = {static __index = 0, static __do_cookie = 0, _M_arr = {{
              _M_data = 0x7f9f91f7dbc0 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__deduce_visit_result<char const*> (*)(test_submodule_stl(pybind11::module_&)::visitor&&, std::variant<double, int>&)>, std::integer_sequence<unsigned long, 0ul> >::__visit_invoke(test_submodule_stl(pybind11::module_&)::visitor&&, std::variant<double, int>&)>}, {
              _M_data = 0x7f9f91f7dbb0 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__deduce_visit_result<char const*> (*)(test_submodule_stl(pybind11::module_&)::visitor&&, std::variant<double, int>&)>, std::integer_sequence<unsigned long, 1ul> >::__visit_invoke(test_submodule_stl(pybind11::module_&)::visitor&&, std::variant<double, int>&)>}}}
        empty<lacking_move_ctor>::instance_ = {<empty<lacking_move_ctor>> = {static instance_ = {<empty<lacking_move_ctor>> = {
                static instance_ = <same as static member of an already seen type>}, <No data fields>}}, <No data fields>}
        empty<lacking_copy_ctor>::instance_ = {<empty<lacking_copy_ctor>> = {static instance_ = {<empty<lacking_copy_ctor>> = {
                static instance_ = <same as static member of an already seen type>}, <No data fields>}}, <No data fields>}
        DependentGuard::enabled = false
        CustomGuard::enabled = false
        TestPropRVP::sv1 = {i = 1}
        TestPropRVP::sv2 = {i = 1}
        WithStatic1::static_value1 = 1
        WithStatic2::static_value2 = 2
        std::__detail::__variant::__gen_vtable<void, std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>::_M_reset()::{lambda(auto:1&&)#1}&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&>::_S_vtable = {static __index = 0, static __do_cookie = 0, _M_arr = {{
              _M_data = 0x7f9f91f7dbd0 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<void (*)(std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>::_M_reset()::{lambda(auto:1&&)#1}&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&)>, std::integer_sequence<unsigned long, 0ul> >::__visit_invoke(std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>::_M_reset()::{lambda(auto:1&&)#1}, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>)>}, {
              _M_data = 0x7f9f91f85720 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<void (*)(std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>::_M_reset()::{lambda(auto:1&&)#1}&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&)>, std::integer_sequence<unsigned long, 1ul> >::__visit_invoke(std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>::_M_reset()::{lambda(auto:1&&)#1}, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>)>}, {
              _M_data = 0x7f9f91f7a900 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<void (*)(std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>::_M_reset()::{lambda(auto:1&&)#1}&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&)>, std::integer_sequence<unsigned long, 2ul> >::__visit_invoke(std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>::_M_reset()::{lambda(auto:1&&)#1}, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>)>}, {
              _M_data = 0x7f9f91f7a910 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<void (*)(std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>::_M_reset()::{lambda(auto:1&&)#1}&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&)>, std::integer_sequence<unsigned long, 3ul> >::__visit_invoke(std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>::_M_reset()::{lambda(auto:1&&)#1}, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>)>}}}
        std::__detail::__variant::__gen_vtable<std::__detail::__variant::__variant_cookie, std::__detail::__variant::__variant_construct<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr), std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)> >(std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&)::{lambda(auto:1&&)#1}&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&>::_S_vtable = {static __index = 0, static __do_cookie = 0, _M_arr = {{
              _M_data = 0x7f9f91f7a920 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__variant_cookie (*)(std::__detail::__variant::__variant_construct<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr), std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)> >(std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&)::{lambda(auto:1&&)#1}&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&)>, std::integer_sequence<unsigned long, 0ul> >::__visit_invoke(st--Type <RET> for more, q to quit, c to continue without paging--
d::__detail::__variant::__variant_construct<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr), std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)> >(std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&)::{lambda(auto:1&&)#1}, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>)>}, {
              _M_data = 0x7f9f91f7d6b0 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__variant_cookie (*)(std::__detail::__variant::__variant_construct<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr), std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)> >(std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&)::{lambda(auto:1&&)#1}&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&)>, std::integer_sequence<unsigned long, 1ul> >::__visit_invoke(std::__detail::__variant::__variant_construct<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr), std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)> >(std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&)::{lambda(auto:1&&)#1}, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>)>}, {
              _M_data = 0x7f9f91f7a930 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__variant_cookie (*)(std::__detail::__variant::__variant_construct<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr), std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)> >(std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&)::{lambda(auto:1&&)#1}&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&)>, std::integer_sequence<unsigned long, 2ul> >::__visit_invoke(std::__detail::__variant::__variant_construct<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr), std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)> >(std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&)::{lambda(auto:1&&)#1}, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>)>}, {
              _M_data = 0x7f9f91f7a940 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__variant_cookie (*)(std::__detail::__variant::__variant_construct<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr), std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)> >(std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&)::{lambda(auto:1&&)#1}&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&)>, std::integer_sequence<unsigned long, 3ul> >::__visit_invoke(std::__detail::__variant::__variant_construct<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr), std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)> >(std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&, std::__detail::__variant::_Move_ctor_base<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>&&)::{lambda(auto:1&&)#1}, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, decltype(nullptr)>)>}}}
        std::__detail::__variant::__gen_vtable<void, std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::_M_reset()::{lambda(auto:1&&)#1}&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&>::_S_vtable = {
          static __index = 0, static __do_cookie = 0, _M_arr = {{
              _M_data = 0x7f9f91f7a8f0 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<void (*)(std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::_M_reset()::{lambda(auto:1&&)#1}&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)>, std::integer_sequence<unsigned long, 0ul> >::__visit_invoke(std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::_M_reset()::{lambda(auto:1&&)#1}, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >)>}, {
              _M_data = 0x7f9f91f85780 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<void (*)(std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::_M_reset()::{lambda(auto:1&&)#1}&&, std::variant<int, std::__cxx11::basic_--Type <RET> for more, q to quit, c to continue without paging--
string<char, std::char_traits<char>, std::allocator<char> > >&)>, std::integer_sequence<unsigned long, 1ul> >::__visit_invoke(std::__detail::__variant::_Variant_storage<false, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::_M_reset()::{lambda(auto:1&&)#1}, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >)>}}}
        std::__detail::__variant::__gen_vtable<std::__detail::__variant::__deduce_visit_result<pybind11::handle>, pybind11::detail::variant_caster_visitor&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&>::_S_vtable = {static __index = 0, static __do_cookie = 0, _M_arr = {{
              _M_data = 0x7f9f91f7a9b0 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__deduce_visit_result<pybind11::handle> (*)(pybind11::detail::variant_caster_visitor&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&)>, std::integer_sequence<unsigned long, 0ul> >::__visit_invoke(pybind11::detail::variant_caster_visitor&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&)>}, {
              _M_data = 0x7f9f91fd2bf0 <std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__deduce_visit_result<pybind11::handle> (*)(pybind11::detail::variant_caster_visitor&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&)>, std::integer_sequence<unsigned long, 1ul> >::__visit_invoke(pybind11::detail::variant_caster_visitor&&, std::variant<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&)>}}}
        pybind11::format_descriptor<unsigned char, void>::value = "B"
        pybind11::format_descriptor<short, void>::value = "h"
        pybind11::format_descriptor<unsigned short, void>::value = "H"
        pybind11::format_descriptor<std::complex<double>, void>::value = "Zd"
        pybind11::format_descriptor<std::complex<float>, void>::value = "Zf"
        pybind11::format_descriptor<long, void>::value = "q"
        pybind11::format_descriptor<unsigned int, void>::value = "I"
        VanillaStaticMix2::static_value = 12
        VanillaStaticMix1::static_value = 12
        TestPropertiesOverride::static_value = 99
        TestProperties::static_value = 1
#9  0x00007f9f92153272 in pybind11::cpp_function::dispatcher (self=<optimized out>, args_in=0x7f9f9179fe00, kwargs_in=0x0)
    at /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/include/pybind11/pybind11.h:767
        guard = <optimized out>
        func = @0x55d3bbdc2b10: {name = 0x55d3bbdc29e0 "__exit__", doc = 0x0,
          signature = 0x55d3bbdc2bc0 "(self: pybind11_tests.iostream.ostream_redirect, *args) -> None", args = std::vector of length 0, capacity 0,
          impl = 0x7f9f9204ad80 <pybind11::cpp_function::initialize<pybind11::add_ostream_redirect(pybind11::module_, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda(pybind11::detail::OstreamRedirect&, pybind11::args)#1}, void, pybind11::detail::OstreamRedirect&, pybind11::args, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::add_ostream_redirect(pybind11::module_, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda(pybind11::detail::OstreamRedirect&, pybind11::args)#1}&&, void (*)(pybind11::detail::OstreamRedirect&, pybind11::args), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&)::{lambda(pybind11::detail::function_call&)#3}::_FUN(pybind11::detail::function_call)>, data = {0x0, 0x0, 0x0}, free_data = 0x0,
          policy = pybind11::return_value_policy::automatic, is_constructor = false, is_new_style_constructor = false, is_stateless = false, is_operator = false,
          is_method = true, has_args = true, has_kwargs = false, has_kw_only_args = false, prepend = false, nargs = 2, nargs_kw_only = 0, nargs_pos_only = 0,
          def = 0x55d3bbdc2c10, scope = {<pybind11::detail::object_api<pybind11::handle>> = {<pybind11::detail::pyobject_tag> = {<No data fields>}, <No data fields>},
            m_ptr = 0x55d3bbdc2280},
          sibling = {<pybind11::detail::object_api<pybind11::handle>> = {<pybind11::detail::pyobject_tag> = {<No data fields>}, <No data fields>},
            m_ptr = 0x7fa13874d9f0 <_Py_NoneStruct>}, next = 0x0}
        num_args = <optimized out>
        pos_args = 1
        call = {func = @0x55d3bbdc2b10, args = std::vector of length 2, capacity 2 = {
            {<pybind11::detail::object_api<pybind11::handle>> = {<pybind11::detail::pyobject_tag> = {<No data fields>}, <No data fields>}, m_ptr = 0x7f9f91a6aaf0},
            {<pybind11::detail::object_api<pybind11::handle>> = {<pybind11::detail::pyobject_tag> = {<No data fields>}, <No data fields>}, m_ptr = 0x7f9f91e9aa80}},
          args_convert = std::vector<bool> of length 2, capacity 64 = {true, false},
          args_ref = {<pybind11::handle> = {<pybind11::detail::object_api<pybind11::handle>> = {<pybind11::detail::pyobject_tag> = {<No data fields>}, <No data fields>},
              m_ptr = 0x7f9f91e9aa80}, <No data fields>},
          kwargs_ref = {<pybind11::handle> = {<pybind11::detail::object_api<pybind11::handle>> = {<pybind11::detail::pyobject_tag> = {<No data fields>}, <No data fields>}, m_ptr = 0x0}, <No data fields>}, parent = {<pybind11::detail::object_api<pybind11::handle>> = {<pybind11::detail::pyobject_tag> = {<No data fields>}, <No data fields>},
            m_ptr = 0x7f9f91a6aaf0},
          init_self = {<pybind11::detail::object_api<pybind11::handle>> = {<pybind11::detail::pyobject_tag> = {<No data fields>}, <No data fields>}, m_ptr = 0x0}}
        args_to_copy = <optimized out>
        args_copied = <optimized out>
        bad_arg = false
--Type <RET> for more, q to quit, c to continue without paging--
        kwargs = {<pybind11::object> = {<pybind11::handle> = {<pybind11::detail::object_api<pybind11::handle>> = {<pybind11::detail::pyobject_tag> = {<No data fields>}, <No data fields>}, m_ptr = 0x0}, <No data fields>}, <No data fields>}
        second_pass_convert = std::vector<bool> of length 0, capacity 0
        second_pass = std::vector of length 0, capacity 0
        overloaded = false
        overloads = 0x55d3bbdc2b10
        it = 0x55d3bbdc2b10
        n_args_in = 4
        parent = {<pybind11::detail::object_api<pybind11::handle>> = {<pybind11::detail::pyobject_tag> = {<No data fields>}, <No data fields>}, m_ptr = 0x7f9f91a6aaf0}
        result = {<pybind11::detail::object_api<pybind11::handle>> = {<pybind11::detail::pyobject_tag> = {<No data fields>}, <No data fields>}, m_ptr = 0x1}
        self_value_and_holder = {inst = 0x0, index = 0, type = 0x0, vh = 0x0}
        append_note_if_missing_header_is_suspected = <optimized out>
#10 0x00007fa1384dd428 in cfunction_call_varargs () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#11 0x00007fa13854e1cb in _PyObject_MakeTpCall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#12 0x00007fa138571003 in method_vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#13 0x00007fa138498191 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#14 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#15 0x00007fa13854e3cd in PyVectorcall_Call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#16 0x00007fa138497d77 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#17 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#18 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#19 0x00007fa13854e3cd in PyVectorcall_Call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#20 0x00007fa138497d77 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#21 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#22 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#23 0x00007fa13849a3fc in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#24 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#25 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#26 0x00007fa13849b90d in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#27 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#28 0x00007fa138570fba in method_vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#29 0x00007fa13849b90d in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#30 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#31 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
--Type <RET> for more, q to quit, c to continue without paging--
No symbol table info available.
#32 0x00007fa13854e556 in _PyObject_FastCallDict () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#33 0x00007fa13854e73d in _PyObject_Call_Prepend () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#34 0x00007fa13854e811 in slot_tp_call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#35 0x00007fa13854e1cb in _PyObject_MakeTpCall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#36 0x00007fa13849b4a1 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#37 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#38 0x00007fa13849a8b3 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#39 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#40 0x00007fa13854e3cd in PyVectorcall_Call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#41 0x00007fa138497d77 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#42 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#43 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#44 0x00007fa13849a3fc in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#45 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#46 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#47 0x00007fa13849b90d in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#48 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#49 0x00007fa138570fba in method_vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#50 0x00007fa13849b90d in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#51 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#52 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#53 0x00007fa13854e556 in _PyObject_FastCallDict () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#54 0x00007fa13854e73d in _PyObject_Call_Prepend () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#55 0x00007fa13854e811 in slot_tp_call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#56 0x00007fa1384dd4f4 in PyObject_Call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#57 0x00007fa138497d77 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#58 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
--Type <RET> for more, q to quit, c to continue without paging--
#59 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#60 0x00007fa13849a3b0 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#61 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#62 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#63 0x00007fa138570fba in method_vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#64 0x00007fa13849a3fc in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#65 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#66 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#67 0x00007fa13854e3cd in PyVectorcall_Call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#68 0x00007fa138497d77 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#69 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#70 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#71 0x00007fa138570fba in method_vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#72 0x00007fa13849a3b0 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#73 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#74 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#75 0x00007fa13849a3fc in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#76 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#77 0x00007fa13849b90d in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#78 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#79 0x00007fa138570f25 in method_vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#80 0x00007fa13854e3cd in PyVectorcall_Call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#81 0x00007fa138497d77 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#82 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#83 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#84 0x00007fa13849a3fc in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#85 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#86 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
--Type <RET> for more, q to quit, c to continue without paging--
No symbol table info available.
#87 0x00007fa13849b90d in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#88 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#89 0x00007fa138570fba in method_vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#90 0x00007fa13849b90d in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#91 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#92 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#93 0x00007fa13854e556 in _PyObject_FastCallDict () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#94 0x00007fa13854e73d in _PyObject_Call_Prepend () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#95 0x00007fa13854e811 in slot_tp_call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#96 0x00007fa13854e1cb in _PyObject_MakeTpCall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#97 0x00007fa13849b4a1 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#98 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#99 0x00007fa13854e3cd in PyVectorcall_Call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#100 0x00007fa138497d77 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#101 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#102 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#103 0x00007fa13849a3fc in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#104 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#105 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#106 0x00007fa13849b90d in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#107 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#108 0x00007fa138570fba in method_vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#109 0x00007fa13849b90d in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#110 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#111 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#112 0x00007fa13854e556 in _PyObject_FastCallDict () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#113 0x00007fa13854e73d in _PyObject_Call_Prepend () from /lib64/libpython3.8.so.1.0
No symbol table info available.
--Type <RET> for more, q to quit, c to continue without paging--
#114 0x00007fa13854e811 in slot_tp_call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#115 0x00007fa13854e1cb in _PyObject_MakeTpCall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#116 0x00007fa13849b4a1 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#117 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#118 0x00007fa13849a3b0 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#119 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#120 0x00007fa13849a3b0 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#121 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#122 0x00007fa13854e3cd in PyVectorcall_Call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#123 0x00007fa138497d77 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#124 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#125 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#126 0x00007fa13849a3fc in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#127 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#128 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#129 0x00007fa13849b90d in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#130 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#131 0x00007fa138570fba in method_vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#132 0x00007fa13849b90d in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#133 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#134 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#135 0x00007fa13854e556 in _PyObject_FastCallDict () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#136 0x00007fa13854e73d in _PyObject_Call_Prepend () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#137 0x00007fa13854e811 in slot_tp_call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#138 0x00007fa13854e1cb in _PyObject_MakeTpCall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#139 0x00007fa13849b4a1 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#140 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#141 0x00007fa13849a3b0 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
--Type <RET> for more, q to quit, c to continue without paging--
No symbol table info available.
#142 0x00007fa13849594b in function_code_fastcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#143 0x00007fa13849b90d in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#144 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#145 0x00007fa1385b8727 in PyEval_EvalCode () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#146 0x00007fa1386163a5 in builtin_exec () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#147 0x00007fa1385b6e77 in cfunction_vectorcall_FASTCALL () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#148 0x00007fa13849a3b0 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#149 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#150 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#151 0x00007fa13849a3b0 in _PyEval_EvalFrameDefault () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#152 0x00007fa1385b83f7 in _PyEval_EvalCodeWithName () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#153 0x00007fa1385b8a23 in _PyFunction_Vectorcall () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#154 0x00007fa13854e3cd in PyVectorcall_Call () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#155 0x00007fa13863079e in pymain_run_module () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#156 0x00007fa138631e0a in Py_RunMain () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#157 0x00007fa13863261e in Py_BytesMain () from /lib64/libpython3.8.so.1.0
No symbol table info available.
#158 0x00007fa13827eb75 in __libc_start_main () from /lib64/libc.so.6
No symbol table info available.
#159 0x000055d3ba16e0ae in _start ()
No symbol table info available.
kloczek commented 3 years ago

Just found that test suite is OK when I'm not using LTO optimisation. In below log are as well some pytest warnings

============================= test session starts ==============================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests, configfile: pytest.ini
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, cov-2.11.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, mock-3.6.0, hypothesis-6.12.0, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, flaky-3.7.0, requests-mock-1.9.2
collected 439 items

../../tests/test_async.py ..                                             [  0%]
../../tests/test_buffers.py .........                                    [  2%]
../../tests/test_builtin_casters.py ...................                  [  6%]
../../tests/test_call_policies.py ........                               [  8%]
../../tests/test_callbacks.py .........                                  [ 10%]
../../tests/test_chrono.py ...........................................   [ 20%]
../../tests/test_class.py .............................                  [ 27%]
../../tests/test_constants_and_functions.py .....                        [ 28%]
../../tests/test_copy_move.py .......                                    [ 29%]
../../tests/test_custom_type_casters.py ..                               [ 30%]
../../tests/test_docstring_options.py .                                  [ 30%]
../../tests/test_eigen.py ....................ss...                      [ 36%]
../../tests/test_enum.py .......                                         [ 37%]
../../tests/test_eval.py ...                                             [ 38%]
../../tests/test_exceptions.py .........                                 [ 40%]
../../tests/test_factory_constructors.py ...............                 [ 43%]
../../tests/test_gil_scoped.py .....                                     [ 45%]
../../tests/test_iostream.py .............                               [ 48%]
../../tests/test_kwargs_and_defaults.py ........                         [ 49%]
../../tests/test_local_bindings.py ..........                            [ 52%]
../../tests/test_methods_and_attributes.py ....................          [ 56%]
../../tests/test_modules.py ......                                       [ 58%]
../../tests/test_multiple_inheritance.py ...........                     [ 60%]
../../tests/test_numpy_array.py ........................................ [ 69%]
........                                                                 [ 71%]
../../tests/test_numpy_dtypes.py ...............                         [ 74%]
../../tests/test_numpy_vectorize.py ........                             [ 76%]
../../tests/test_opaque_types.py ...                                     [ 77%]
../../tests/test_operator_overloading.py ....                            [ 78%]
../../tests/test_pickling.py .....                                       [ 79%]
../../tests/test_pytypes.py ................................             [ 86%]
../../tests/test_sequences_and_iterators.py ........                     [ 88%]
../../tests/test_smart_ptr.py .............                              [ 91%]
../../tests/test_stl.py .........s........                               [ 95%]
../../tests/test_stl_binders.py .........                                [ 97%]
../../tests/test_tagbased_polymorphic.py .                               [ 97%]
../../tests/test_union.py .                                              [ 98%]
../../tests/test_virtual_functions.py ........                           [100%]

=============================== warnings summary ===============================
test_builtin_casters.py::test_int_convert
  /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_builtin_casters.py:302: DeprecationWarning: an integer is required (got type Int).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
    assert convert(Int()) == 42

test_builtin_casters.py::test_numpy_int_convert
  /home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/test_builtin_casters.py:332: DeprecationWarning: an integer is required (got type numpy.float32).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
    assert convert(np.float32(3.14159)) == 3

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
SKIPPED [1] ../../tests/test_eigen.py:711: could not import 'scipy': No module named 'scipy'
SKIPPED [1] ../../tests/test_eigen.py:721: could not import 'scipy': No module named 'scipy'
SKIPPED [1] ../../tests/test_stl.py:137: no <experimental/optional>
================= 436 passed, 3 skipped, 2 warnings in 24.09s ==================
kloczek commented 3 years ago

To reproduce crash with LTO please try to use below script. I'm usimg gcc 11.1.0.

CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
CXXFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
FFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
FCFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -flto=auto -flto-partition=none -fuse-linker-plugin'
CC=/usr/bin/gcc
CXX=/usr/bin/g++
FC=/usr/bin/gfortran
AR=/usr/bin/gcc-ar
NM=/usr/bin/gcc-nm
RANLIB=/usr/bin/gcc-ranlib
export CFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS CC CXX FC AR NM RANLIB
/usr/bin/cmake -B x86_64-redhat-linux-gnu -D BUILD_SHARED_LIBS=ON -D CMAKE_AR=/usr/bin/gcc-ar -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_C_FLAGS_RELEASE=-DNDEBUG -D CMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -D CMAKE_Fortran_FLAGS_RELEASE=-DNDEBUG -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_NM=/usr/bin/gcc-nm -D CMAKE_RANLIB=/usr/bin/gcc-ranlib -D CMAKE_VERBOSE_MAKEFILE=ON -D DBUILD_SHARED_LIBS=ON -D INCLUDE_INSTALL_DIR=/usr/include -D LIB_INSTALL_DIR=/usr/lib64 -D LIB_SUFFIX=64 -D SHARE_INSTALL_PREFIX=/usr/share -D SYSCONF_INSTALL_DIR=/etc -S . -D PYBIND11_CUDA_TESTS=OFF -D PYBIND11_INSTALL=ON -D PYBIND11_TEST=ON -D PYTHON_EXECUTABLE=/usr/bin/python3 -D USE_PYTHON_INCLUDE_DIR=OFF
/usr/bin/cmake --build x86_64-redhat-linux-gnu --verbose
/usr/bin/make -O V=1 VERBOSE=1 check -C x86_64-redhat-linux-gnu
simon28li commented 3 years ago

I have also encountered the same situation. I would like to ask if there is any progress?