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

Antoine Pitrou commented on ARROW-18301:
----------------------------------------

Even without access to a big-endian machine, this should hopefully be 
relatively easy to fix.

cc [~sakras]

> [C++] arrow-compute-asof-join-node-test crashes on s390x
> --------------------------------------------------------
>
>                 Key: ARROW-18301
>                 URL: https://issues.apache.org/jira/browse/ARROW-18301
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Antoine Pitrou
>            Priority: Major
>
> The code is most probably not big-endian compatible.
> See e.g. https://app.travis-ci.com/github/apache/arrow/jobs/588122411#L3750
> {code}
> [ RUN      ] AsofJoinNodeTest/AsofJoinBasicTest.TestBasic1/4
> /arrow/cpp/src/arrow/compute/exec/util.cc:35:  Check failed: false
> /usr/local/lib/libarrow.so.1100(arrow::util::CerrLog::PrintBackTrace()+0x3e)[0x3ff93e348fe]
> /usr/local/lib/libarrow.so.1100(arrow::util::CerrLog::~CerrLog()+0x7c)[0x3ff93e3482c]
> /usr/local/lib/libarrow.so.1100(arrow::util::CerrLog::~CerrLog()+0x22)[0x3ff93e34862]
> /usr/local/lib/libarrow.so.1100(arrow::util::ArrowLog::~ArrowLog()+0x6e)[0x3ff93e0d4ee]
> /usr/local/lib/libarrow.so.1100(arrow::util::bit_util::SafeLoadUpTo8Bytes(unsigned
>  char const*, int)+0x9a)[0x3ff938ced4a]
> /usr/local/lib/libarrow.so.1100(void 
> arrow::util::bit_util::bits_to_indexes_internal<0, false>(long, int, unsigned 
> char const*, unsigned short const*, int*, unsigned short*, unsigned 
> short)+0x152)[0x3ff938db192]
> /usr/local/lib/libarrow.so.1100(arrow::util::bit_util::bits_to_indexes(int, 
> long, int, unsigned char const*, int*, unsigned short*, 
> int)+0x1e6)[0x3ff93887d56]
> /usr/local/lib/libarrow.so.1100(arrow::compute::Hashing64::HashMultiColumn(std::vector<arrow::compute::KeyColumnArray,
>  std::allocator<arrow::compute::KeyColumnArray> > const&, 
> arrow::compute::LightContext*, unsigned long*)+0x31e)[0x3ff939b42f6]
> /usr/local/lib/libarrow.so.1100(arrow::compute::KeyHasher::HashesFor(arrow::RecordBatch
>  const*)+0x248)[0x3ff93a833d0]
> /usr/local/lib/libarrow.so.1100(arrow::compute::InputState::GetLatestKey(arrow::RecordBatch
>  const*, unsigned long) const+0x66)[0x3ff93a84106]
> /usr/local/lib/libarrow.so.1100(arrow::compute::InputState::GetLatestKey() 
> const+0x54)[0x3ff93a8408c]
> /usr/local/lib/libarrow.so.1100(arrow::compute::InputState::AdvanceAndMemoize(unsigned
>  long)+0x1ce)[0x3ff93a85236]
> /usr/local/lib/libarrow.so.1100(arrow::compute::AsofJoinNode::UpdateRhs()+0xee)[0x3ff93a85b4e]
> /usr/local/lib/libarrow.so.1100(arrow::compute::AsofJoinNode::ProcessInner()+0x188)[0x3ff93a85ff0]
> /usr/local/lib/libarrow.so.1100(arrow::compute::AsofJoinNode::Process()+0x8a)[0x3ff93a864da]
> /usr/local/lib/libarrow.so.1100(arrow::compute::AsofJoinNode::ProcessThread()+0x4a)[0x3ff93a868ca]
> /usr/local/lib/libarrow.so.1100(arrow::compute::AsofJoinNode::ProcessThreadWrapper(arrow::compute::AsofJoinNode*)+0x22)[0x3ff93a868fa]
> /usr/local/lib/libarrow.so.1100(void std::__invoke_impl<void, void 
> (*)(arrow::compute::AsofJoinNode*), 
> arrow::compute::AsofJoinNode*>(std::__invoke_other, void 
> (*&&)(arrow::compute::AsofJoinNode*), 
> arrow::compute::AsofJoinNode*&&)+0x52)[0x3ff93afdfc2]
> /usr/local/lib/libarrow.so.1100(std::__invoke_result<void 
> (*)(arrow::compute::AsofJoinNode*), arrow::compute::AsofJoinNode*>::type 
> std::__invoke<void (*)(arrow::compute::AsofJoinNode*), 
> arrow::compute::AsofJoinNode*>(void (*&&)(arrow::compute::AsofJoinNode*), 
> arrow::compute::AsofJoinNode*&&)+0x4c)[0x3ff93afd40c]
> /usr/local/lib/libarrow.so.1100(void std::thread::_Invoker<std::tuple<void 
> (*)(arrow::compute::AsofJoinNode*), arrow::compute::AsofJoinNode*> 
> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>)+0x6c)[0x3ff93afc8b4]
> /usr/local/lib/libarrow.so.1100(std::thread::_Invoker<std::tuple<void 
> (*)(arrow::compute::AsofJoinNode*), arrow::compute::AsofJoinNode*> 
> >::operator()()+0x24)[0x3ff93afbf44]
> /usr/local/lib/libarrow.so.1100(std::thread::_State_impl<std::thread::_Invoker<std::tuple<void
>  (*)(arrow::compute::AsofJoinNode*), arrow::compute::AsofJoinNode*> > 
> >::_M_run()+0x2a)[0x3ff93afbaf2]
> /lib/s390x-linux-gnu/libstdc++.so.6(+0xea136)[0x3ff9076a136]
> /lib/s390x-linux-gnu/libpthread.so.0(+0x7e66)[0x3ff90287e66]
> /lib/s390x-linux-gnu/libc.so.6(+0xfcbe6)[0x3ff904fcbe6]
> {code}



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

Reply via email to