Skip to content

[Python][C++] test_gdb.py is failing on test-conda-python-3.12-cpython-debug #50174

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

The test-conda-python-3.12-cpython-debug started failing some days ago. From last success to first failure those are the changes that were introduced: 9265a71...4f3b0f0

There are 19 failed tests a snippet of the log for a couple of failures, log is longer, check the failing CI build for more details:

_________________________________ test_status __________________________________

gdb_arrow = <pyarrow.tests.test_gdb.GdbSession object at 0x7f2480cea0e0>

    def test_status(gdb_arrow):
>       check_stack_repr(gdb_arrow, "ok_status", "arrow::Status::OK()")

opt/conda/envs/arrow/lib/python3.12/site-packages/pyarrow/tests/test_gdb.py:251: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

gdb = <pyarrow.tests.test_gdb.GdbSession object at 0x7f2480cea0e0>
expr = 'ok_status', expected = 'arrow::Status::OK()'

    def check_stack_repr(gdb, expr, expected):
        """
        Check printing a stack-located value.
        """
        s = gdb.print_value(expr)
        if isinstance(expected, re.Pattern):
            assert expected.match(s), s
        else:
>           assert s == expected
E           AssertionError: assert '{<arrow::uti...state_ = 0x0}' == 'arrow::Status::OK()'
E             
E             - arrow::Status::OK()
E             + {<arrow::util::EqualityComparable<arrow::Status>> = {<No data fields>}, <arrow::util::ToStringOstreamable<arrow::Status>> = {<No data fields>}, state_ = 0x0}

opt/conda/envs/arrow/lib/python3.12/site-packages/pyarrow/tests/test_gdb.py:237: AssertionError
----------------------------- Captured stdout call -----------------------------
p ok_status
$2 = {<arrow::util::EqualityComparable<arrow::Status>> = {<No data fields>}, <arrow::util::ToStringOstreamable<arrow::Status>> = {<No data fields>}, state_ = 0x0}
(gdb) 
______________________________ test_buffer_stack _______________________________

gdb_arrow = <pyarrow.tests.test_gdb.GdbSession object at 0x7f2480cea0e0>

    def test_buffer_stack(gdb_arrow):
>       check_stack_repr(gdb_arrow, "buffer_null",
                         "arrow::Buffer of size 0, read-only")

opt/conda/envs/arrow/lib/python3.12/site-packages/pyarrow/tests/test_gdb.py:270: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

gdb = <pyarrow.tests.test_gdb.GdbSession object at 0x7f2480cea0e0>
expr = 'buffer_null', expected = 'arrow::Buffer of size 0, read-only'

    def check_stack_repr(gdb, expr, expected):
        """
        Check printing a stack-located value.
        """
        s = gdb.print_value(expr)
        if isinstance(expected, re.Pattern):
            assert expected.match(s), s
        else:
>           assert s == expected
E           AssertionError: assert '{_vptr.Buffe...ata fields>}}' == 'arrow::Buffe... 0, read-only'
E             
E             - arrow::Buffer of size 0, read-only
E             + {_vptr.Buffer = 0x7f65de95bcc8 <vtable for arrow::Buffer+16>, is_mutable_ = false, is_cpu_ = true, data_ = 0x0, size_ = 0, capacity_ = 0, device_type_ = arrow::DeviceAllocationType::kCPU, parent_ = {<std::__shared_ptr<arrow::Buffer, (__gnu_cxx::_Lock_policy)2>> = {<std::__shared_ptr_access<arrow::Buffer, (__gnu_cxx::_Lock_policy)2, false, false>> = {<No data fields>}, _M_ptr = 0x0, _M_refcount = {_M_pi = 0x0}}, <No data fields>}, memory_manager_ = {<std::__shared_ptr<arrow::MemoryManager, (__gnu_cxx::_Lock_policy)2>> = {<std::__shar...
E             
E             ...Full output truncated (1 line hidden), use '-vv' to show

opt/conda/envs/arrow/lib/python3.12/site-packages/pyarrow/tests/test_gdb.py:237: AssertionError
----------------------------- Captured stdout call -----------------------------
p buffer_null
$3 = {_vptr.Buffer = 0x7f65de95bcc8 <vtable for arrow::Buffer+16>, is_mutable_ = false, is_cpu_ = true, data_ = 0x0, size_ = 0, capacity_ = 0, device_type_ = arrow::DeviceAllocationType::kCPU, parent_ = {<std::__shared_ptr<arrow::Buffer, (__gnu_cxx::_Lock_policy)2>> = {<std::__shared_ptr_access<arrow::Buffer, (__gnu_cxx::_Lock_policy)2, false, false>> = {<No data fields>}, _M_ptr = 0x0, _M_refcount = {_M_pi = 0x0}}, <No data fields>}, memory_manager_ = {<std::__shared_ptr<arrow::MemoryManager, (__gnu_cxx::_Lock_policy)2>> = {<std::__shared_ptr_access<arrow::MemoryManager, (__gnu_cxx::_Lock_policy)2, false, false>> = {<No data fields>}, _M_ptr = 0x56256fcfe910, _M_refcount = {_M_pi = 0x56256fb60060}}, <No data fields>}}
(gdb) 

Component(s)

Python, C++

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions