[ 
https://issues.apache.org/jira/browse/ARROW-17041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17565080#comment-17565080
 ] 

David Li commented on ARROW-17041:
----------------------------------

Looks like it's due to the compare kernel on strings:
{noformat}
==13125== Conditional jump or move depends on uninitialised value(s)
==13125==    at 0x4040C54: bcmp (vg_replace_strmem.c:1203)
==13125==    by 0x57F4FF0: compare (char_traits.h:361)
==13125==    by 0x57F4FF0: compare (string_view.hpp:635)
==13125==    by 0x57F4FF0: operator==<char, std::char_traits<char> > 
(string_view.hpp:969)
==13125==    by 0x57F4FF0: Call<bool, nonstd::sv_lite::basic_string_view<char>, 
nonstd::sv_lite::basic_string_view<char> > (scalar_compare.cc:43)
==13125==    by 0x57F4FF0: operator() (codegen_internal.h:735)
==13125==    by 0x57F4FF0: void 
arrow::internal::GenerateBitsUnrolled<arrow::compute::internal::applicator::ScalarBinary<arrow::BooleanType,
 arrow::FixedSizeBinaryType, arrow::FixedSizeBinaryType, 
arrow::compute::internal::(anonymous 
namespace)::Equal>::ArrayArray(arrow::compute::KernelContext*, arrow::ArraySpan 
const&, arrow::ArraySpan const&, 
arrow::compute::ExecResult*)::{lambda()#1}>(unsigned char*, long, long, 
arrow::compute::internal::applicator::ScalarBinary<arrow::BooleanType, 
arrow::FixedSizeBinaryType, arrow::FixedSizeBinaryType, 
arrow::compute::internal::(anonymous 
namespace)::Equal>::ArrayArray(arrow::compute::KernelContext*, arrow::ArraySpan 
const&, arrow::ArraySpan const&, arrow::compute::ExecResult*)::{lambda()#1}&&) 
(bitmap_generate.h:103)
==13125==    by 0x57FBB36: 
Write<arrow::compute::internal::applicator::ScalarBinary<OutType, Arg0Type, 
Arg1Type, Op>::ArrayArray<arrow::BooleanType, arrow::FixedSizeBinaryType, 
arrow::FixedSizeBinaryType, arrow::compute::internal::(anonymous 
namespace)::Equal>::<lambda()> > (codegen_internal.h:529)
==13125==    by 0x57FBB36: ArrayArray (codegen_internal.h:735)
==13125==    by 0x57FBB36: 
arrow::compute::internal::applicator::ScalarBinary<arrow::BooleanType, 
arrow::FixedSizeBinaryType, arrow::FixedSizeBinaryType, 
arrow::compute::internal::(anonymous 
namespace)::Equal>::Exec(arrow::compute::KernelContext*, 
arrow::compute::ExecSpan const&, arrow::compute::ExecResult*) 
(codegen_internal.h:772)
==13125==    by 0x5243698: ExecuteSingleSpan (exec.cc:896)
==13125==    by 0x5243698: arrow::compute::detail::(anonymous 
namespace)::ScalarExecutor::ExecuteSpans(arrow::compute::detail::ExecListener*) 
(exec.cc:864)
==13125==    by 0x5243F49: arrow::compute::detail::(anonymous 
namespace)::ScalarExecutor::Execute(arrow::compute::ExecBatch const&, 
arrow::compute::detail::ExecListener*) (exec.cc:814)
==13125==    by 0x53588D3: arrow::compute::(anonymous 
namespace)::ExecuteInternal(arrow::compute::Function const&, 
std::vector<arrow::Datum, std::allocator<arrow::Datum> >, long, 
arrow::compute::FunctionOptions const*, arrow::compute::ExecContext*) 
(function.cc:292)
==13125==    by 0x5359ABA: 
arrow::compute::Function::Execute(std::vector<arrow::Datum, 
std::allocator<arrow::Datum> > const&, arrow::compute::FunctionOptions const*, 
arrow::compute::ExecContext*) const (function.cc:304)
==13125==    by 0x5239B25: 
arrow::compute::CallFunction(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, 
std::vector<arrow::Datum, std::allocator<arrow::Datum> > const&, 
arrow::compute::FunctionOptions const*, arrow::compute::ExecContext*) 
(exec.cc:1373)
==13125==    by 0xAD6F32: 
arrow::compute::CheckScalar(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, 
std::vector<std::shared_ptr<arrow::Scalar>, 
std::allocator<std::shared_ptr<arrow::Scalar> > > const&, 
std::shared_ptr<arrow::Scalar>, arrow::compute::FunctionOptions const*) 
(test_util.cc:86)
==13125==    by 0xAD86A6: 
arrow::compute::CheckScalar(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, std::vector<arrow::Datum, 
std::allocator<arrow::Datum> > const&, arrow::Datum, 
arrow::compute::FunctionOptions const*) (test_util.cc:127)
==13125==    by 0xADA6AF: 
arrow::compute::CheckScalarBinary(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, arrow::Datum, arrow::Datum, 
arrow::Datum, arrow::compute::FunctionOptions const*) (test_util.cc:273)
==13125==    by 0x472740: 
arrow::compute::TestCompareFixedSizeBinary_ArrayScalar_Test::TestBody() 
(scalar_compare_test.cc:767)
==13125==    by 0x643B4DC: void 
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, 
void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2607)
==13125==    by 0x643290C: void 
testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, 
void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2643)
==13125==    by 0x640DCDC: testing::Test::Run() (gtest.cc:2682)
==13125==    by 0x640E6FE: testing::TestInfo::Run() (gtest.cc:2861)
==13125==    by 0x640F0BD: testing::TestSuite::Run() (gtest.cc:3015)
==13125==    by 0x641F1DB: testing::internal::UnitTestImpl::RunAllTests() 
(gtest.cc:5855)
==13125==    by 0x643C497: bool 
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
 bool>(testing::internal::UnitTestImpl*, bool 
(testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2607)
==13125==    by 0x6433AF9: bool 
testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
 bool>(testing::internal::UnitTestImpl*, bool 
(testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2643)
==13125==    by 0x641D6A8: testing::UnitTest::Run() (gtest.cc:5438)
==13125==    by 0x4205918: RUN_ALL_TESTS() (gtest.h:2490)
==13125==    by 0x420595B: main (gtest_main.cc:52)
 {noformat}

> [C++][CI] arrow-compute-scalar-test fails on test-conda-cpp-valgrind
> --------------------------------------------------------------------
>
>                 Key: ARROW-17041
>                 URL: https://issues.apache.org/jira/browse/ARROW-17041
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Raúl Cumplido
>            Priority: Critical
>              Labels: Nightly
>             Fix For: 9.0.0
>
>
> There seems to be an issue on the arrow-compute-scalar-test as it has been 
> failing for the last days, example: 
> [https://github.com/ursacomputing/crossbow/runs/7274655770]
> See [https://crossbow.voltrondata.com/]
> Error:
> {code:java}
> ==13125== 
> ==13125== HEAP SUMMARY:
> ==13125==     in use at exit: 16,090 bytes in 161 blocks
> ==13125==   total heap usage: 14,612,979 allocs, 14,612,818 frees, 
> 2,853,741,784 bytes allocated
> ==13125== 
> ==13125== LEAK SUMMARY:
> ==13125==    definitely lost: 0 bytes in 0 blocks
> ==13125==    indirectly lost: 0 bytes in 0 blocks
> ==13125==      possibly lost: 0 bytes in 0 blocks
> ==13125==    still reachable: 16,090 bytes in 161 blocks
> ==13125==         suppressed: 0 bytes in 0 blocks
> ==13125== Reachable blocks (those to which a pointer was found) are not shown.
> ==13125== To see them, rerun with: --leak-check=full --show-leak-kinds=all
> ==13125== 
> ==13125== Use --track-origins=yes to see where uninitialised values come from
> ==13125== For lists of detected and suppressed errors, rerun with: -s
> ==13125== ERROR SUMMARY: 54 errors from 12 contexts (suppressed: 517836 from 
> 44) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to