Skip to content

[C++][CI] Valgrind errors in parquet-arrow-reader-writer-test #50718

Description

@pitrou

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

The C++ Valgrind CI job has started failing, presumably due to PR #50271:
https://github.com/ursacomputing/crossbow/actions/runs/30420028008/job/90474739319#step:6:2850

The errors should be easy to fix, they are due to GTest's default string representation of FixedSizeListTestCase:

==17419== Use of uninitialised value of size 8
==17419== at 0x6AC2052: _itoa_word (_itoa.c:184)
==17419== by 0x6ACCC9B: __printf_buffer (vfprintf-process-arg.c:155)
==17419== by 0x6AF2CC5: __vsnprintf_internal (vsnprintf.c:96)
==17419== by 0x6AC9405: snprintf (snprintf.c:31)
==17419== by 0x6679B18: testing::(anonymous namespace)::PrintByteSegmentInObjectTo(unsigned char const*, unsigned long, unsigned long, std::ostream*) (gtest-printers.cc:83)
==17419== by 0x6679BB2: testing::(anonymous namespace)::PrintBytesInObjectToImpl(unsigned char const*, unsigned long, std::ostream*) (gtest-printers.cc:100)
==17419== by 0x667B5B7: testing::internal::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*) (gtest-printers.cc:132)
==17419== by 0x435C652: PrintValue<parquet::arrow::FixedSizeListTestCase> (gtest-printers.h:316)
==17419== by 0x435C652: void testing::internal::PrintWithFallback<parquet::arrow::FixedSizeListTestCase>(parquet::arrow::FixedSizeListTestCase const&, std::ostream*) (gtest-printers.h:362)
==17419== by 0x435C660: void testing::internal::PrintTo<parquet::arrow::FixedSizeListTestCase>(parquet::arrow::FixedSizeListTestCase const&, std::ostream*) (gtest-printers.h:491)
==17419== by 0x435C66E: Print (gtest-printers.h:883)
==17419== by 0x435C66E: void testing::internal::UniversalPrint<parquet::arrow::FixedSizeListTestCase>(parquet::arrow::FixedSizeListTestCase const&, std::ostream*) (gtest-printers.h:1187)
==17419== by 0x435C6AB: Print (gtest-printers.h:1065)
==17419== by 0x435C6AB: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > testing::PrintToString<parquet::arrow::FixedSizeListTestCase>(parquet::arrow::FixedSizeListTestCase const&) (gtest-printers.h:1225)
==17419== by 0x435CBA8: testing::internal::ParameterizedTestSuiteInfo<parquet::arrow::TestFixedSizeListRoundTrip>::RegisterTests() (gtest-param-util.h:603)
==17419== by 0x667B0C7: testing::internal::ParameterizedTestSuiteRegistry::RegisterTests() (gtest-param-util.h:736)
==17419== by 0x66A6BBB: testing::internal::UnitTestImpl::RegisterParameterizedTests() (gtest.cc:2848)
==17419== by 0x66A6C00: testing::internal::UnitTestImpl::PostFlagParsingInit() (gtest.cc:5800)
==17419== by 0x66A6DE2: void testing::internal::InitGoogleTestImpl<char>(int*, char**) (gtest.cc:6957)
==17419== by 0x66A6E37: testing::InitGoogleTest(int*, char**) (gtest.cc:6975)
==17419== by 0x738A1E7: void testing::internal::InitGoogleMockImpl<char>(int*, char**) (gmock.cc:148)
==17419== by 0x738A391: testing::InitGoogleMock(int*, char**) (gmock.cc:204)
==17419== by 0x54529BE: main (gmock_main.cc:70)

Component(s)

C++, Continuous Integration

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