Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-6484

Crash in impala::RuntimeProfile::SortChildren

    Details

      Description

      Lars, assigning to you since you touched the relevant code last

      Tests running at the time (as far as I can tell):

      query_test/test_spilling.py
      query_test/test_insert_parquet.py
      TestScannersFuzzing.test_fuzz_decimal_tbl
      

      Backtrace:

      #0  0x00000030120328e5 in raise () from /lib64/libc.so.6
      #1  0x00000030120340c5 in abort () from /lib64/libc.so.6
      #2  0x00007f49030c81a5 in os::abort(bool) () from /opt/toolchain/sun-jdk-64bit-1.8.0.05/jre/lib/amd64/server/libjvm.so
      #3  0x00007f4903258843 in VMError::report_and_die() () from /opt/toolchain/sun-jdk-64bit-1.8.0.05/jre/lib/amd64/server/libjvm.so
      #4  0x00007f49030cd562 in JVM_handle_linux_signal () from /opt/toolchain/sun-jdk-64bit-1.8.0.05/jre/lib/amd64/server/libjvm.so
      #5  0x00007f49030c44f3 in signalHandler(int, siginfo*, void*) () from /opt/toolchain/sun-jdk-64bit-1.8.0.05/jre/lib/amd64/server/libjvm.so
      #6  <signal handler called>
      #7  0x000000000182355a in std::_Rb_tree<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, impala::RuntimeProfile::Counter*>, std::_Select1st<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, impala::RuntimeProfile::Counter*> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, impala::RuntimeProfile::Counter*> > >::_M_begin (this=0x382e657461745393) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/gcc-4.9.2/include/c++/4.9.2/bits/stl_tree.h:518
      #8  0x0000000001821eb2 in std::_Rb_tree<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, impala::RuntimeProfile::Counter*>, std::_Select1st<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, impala::RuntimeProfile::Counter*> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, impala::RuntimeProfile::Counter*> > >::lower_bound (this=0x382e657461745393, __k=...) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/gcc-4.9.2/include/c++/4.9.2/bits/stl_tree.h:927
      #9  0x0000000001820bc9 in std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, impala::RuntimeProfile::Counter*, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, impala::RuntimeProfile::Counter*> > >::lower_bound (this=0x382e657461745393, __x=...) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/gcc-4.9.2/include/c++/4.9.2/bits/stl_map.h:902
      #10 0x000000000181f8b6 in std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, impala::RuntimeProfile::Counter*, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, impala::RuntimeProfile::Counter*> > >::operator[] (this=0x382e657461745393, __k=...) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/gcc-4.9.2/include/c++/4.9.2/bits/stl_map.h:496
      #11 0x000000000184e526 in impala::RuntimeProfile::total_time_counter (this=0x382e657461745373) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/src/util/runtime-profile.h:261
      #12 0x0000000002cb656b in operator() (this=0x7f483784a380, a=..., b=...) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/src/runtime/coordinator-backend-state.cc:554
      #13 0x0000000002cbe794 in __gnu_cxx::__ops::_Val_comp_iter<InstanceComparator>::operator()<std::pair<impala::RuntimeProfile*, bool>, __gnu_cxx::__normal_iterator<std::pair<impala::RuntimeProfile*, bool>*, std::vector<std::pair<impala::RuntimeProfile*, bool> > > > (this=0x7f483784a380, __val=..., __it=...) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/gcc-4.9.2/include/c++/4.9.2/bits/predefined_ops.h:166
      #14 0x0000000002cbdcc0 in std::__unguarded_linear_insert<__gnu_cxx::__normal_iterator<std::pair<impala::RuntimeProfile*, bool>*, std::vector<std::pair<impala::RuntimeProfile*, bool> > >, __gnu_cxx::__ops::_Val_comp_iter<InstanceComparator> > (__last=..., __comp=...) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/gcc-4.9.2/include/c++/4.9.2/bits/stl_algo.h:1827
      #15 0x0000000002cbd01b in std::__insertion_sort<__gnu_cxx::__normal_iterator<std::pair<impala::RuntimeProfile*, bool>*, std::vector<std::pair<impala::RuntimeProfile*, bool> > >, __gnu_cxx::__ops::_Iter_comp_iter<InstanceComparator> > (__first=..., __last=..., __comp=...) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/gcc-4.9.2/include/c++/4.9.2/bits/stl_algo.h:1854
      #16 0x0000000002cbc1d3 in std::__final_insertion_sort<__gnu_cxx::__normal_iterator<std::pair<impala::RuntimeProfile*, bool>*, std::vector<std::pair<impala::RuntimeProfile*, bool> > >, __gnu_cxx::__ops::_Iter_comp_iter<InstanceComparator> > (__first=..., __last=..., __comp=...) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/gcc-4.9.2/include/c++/4.9.2/bits/stl_algo.h:1889
      #17 0x0000000002cbb2bf in std::__sort<__gnu_cxx::__normal_iterator<std::pair<impala::RuntimeProfile*, bool>*, std::vector<std::pair<impala::RuntimeProfile*, bool> > >, __gnu_cxx::__ops::_Iter_comp_iter<InstanceComparator> > (__first=..., __last=..., __comp=...) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/gcc-4.9.2/include/c++/4.9.2/bits/stl_algo.h:1970
      #18 0x0000000002cba0d1 in std::sort<__gnu_cxx::__normal_iterator<std::pair<impala::RuntimeProfile*, bool>*, std::vector<std::pair<impala::RuntimeProfile*, bool> > >, InstanceComparator> (__first=..., __last=..., __comp=...) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/gcc-4.9.2/include/c++/4.9.2/bits/stl_algo.h:4716
      #19 0x0000000002cb8019 in impala::RuntimeProfile::SortChildren<InstanceComparator>(const struct {...} &) (this=0x15a23400, cmp=...) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/src/util/runtime-profile.h:144
      #20 0x0000000002cb4e30 in impala::Coordinator::FragmentStats::AddExecStats (this=0x131756c0) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/src/runtime/coordinator-backend-state.cc:560
      #21 0x0000000002ca15b8 in impala::Coordinator::ComputeQuerySummary (this=0xc0ae000) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/src/runtime/coordinator.cc:1036
      #22 0x0000000002ca0570 in impala::Coordinator::CancelInternal (this=0xc0ae000) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/src/runtime/coordinator.cc:916
      #23 0x0000000002c9baa3 in impala::Coordinator::UpdateStatus (this=0xc0ae000, status=..., backend_hostname=..., is_fragment_failure=true, instance_id=...) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/src/runtime/coordinator.cc:478
      #24 0x0000000002ca0a8c in impala::Coordinator::UpdateBackendExecStatus (this=0xc0ae000, params=...) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/src/runtime/coordinator.cc:950
      #25 0x0000000001947e84 in impala::ImpalaServer::ReportExecStatus (this=0xb980000, return_val=..., params=...) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/src/service/impala-server.cc:1167
      #26 0x00000000019f9c50 in impala::ImpalaInternalService::ReportExecStatus (this=0xa61cea0, return_val=..., params=...) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/src/service/impala-internal-service.cc:79
      #27 0x0000000002aab132 in impala::ImpalaInternalServiceProcessor::process_ReportExecStatus (this=0xa9b7f80, seqid=0, iprot=0xb0db020, oprot=0xb0da630, callContext=0xca8fec0) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/generated-sources/gen-cpp/ImpalaInternalService.cpp:1451
      #28 0x0000000002aaa718 in impala::ImpalaInternalServiceProcessor::dispatchCall (this=0xa9b7f80, iprot=0xb0db020, oprot=0xb0da630, fname=..., seqid=0, callContext=0xca8fec0) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/generated-sources/gen-cpp/ImpalaInternalService.cpp:1370
      #29 0x000000000160bc1a in apache::thrift::TDispatchProcessor::process (this=0xa9b7f80, in=..., out=..., connectionContext=0xca8fec0) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/thrift-0.9.0-p11/include/thrift/TDispatchProcessor.h:121
      #30 0x00000000017e1e91 in apache::thrift::server::TAcceptQueueServer::Task::run (this=0x19f00720) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/src/rpc/TAcceptQueueServer.cpp:77
      #31 0x00000000017ddf11 in impala::ThriftThread::RunRunnable (this=0x975d6c0, runnable=..., promise=0x7f4872acd3a0) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/src/rpc/thrift-thread.cc:74
      #32 0x00000000017df615 in boost::_mfi::mf2<void, impala::ThriftThread, boost::shared_ptr<apache::thrift::concurrency::Runnable>, impala::Promise<unsigned long>*>::operator() (this=0xb0da6c0, p=0x975d6c0, a1=..., a2=0x7f4872acd3a0) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/boost-1.57.0-p3/include/boost/bind/mem_fn_template.hpp:280
      #33 0x00000000017df4ab in boost::_bi::list3<boost::_bi::value<impala::ThriftThread*>, boost::_bi::value<boost::shared_ptr<apache::thrift::concurrency::Runnable> >, boost::_bi::value<impala::Promise<unsigned long>*> >::operator()<boost::_mfi::mf2<void, impala::ThriftThread, boost::shared_ptr<apache::thrift::concurrency::Runnable>, impala::Promise<unsigned long>*>, boost::_bi::list0> (this=0xb0da6d0, f=..., a=...) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/boost-1.57.0-p3/include/boost/bind/bind.hpp:392
      #34 0x00000000017df1f7 in boost::_bi::bind_t<void, boost::_mfi::mf2<void, impala::ThriftThread, boost::shared_ptr<apache::thrift::concurrency::Runnable>, impala::Promise<unsigned long>*>, boost::_bi::list3<boost::_bi::value<impala::ThriftThread*>, boost::_bi::value<boost::shared_ptr<apache::thrift::concurrency::Runnable> >, boost::_bi::value<impala::Promise<unsigned long>*> > >::operator() (this=0xb0da6c0) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/boost-1.57.0-p3/include/boost/bind/bind_template.hpp:20
      #35 0x00000000017df10a in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf2<void, impala::ThriftThread, boost::shared_ptr<apache::thrift::concurrency::Runnable>, impala::Promise<unsigned long>*>, boost::_bi::list3<boost::_bi::value<impala::ThriftThread*>, boost::_bi::value<boost::shared_ptr<apache::thrift::concurrency::Runnable> >, boost::_bi::value<impala::Promise<unsigned long>*> > >, void>::invoke (function_obj_ptr=...) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/boost-1.57.0-p3/include/boost/function/function_template.hpp:153
      #36 0x00000000017ee6a6 in boost::function0<void>::operator() (this=0x7f483784bbc0) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/boost-1.57.0-p3/include/boost/function/function_template.hpp:767
      #37 0x0000000001ae975b in impala::Thread::SuperviseThread (name=..., category=..., functor=..., thread_started=0x7f4872acd080) at /data/jenkins/workspace/impala-asf-master-core/repos/Impala/be/src/util/thread.cc:354
      #38 0x0000000001af2470 in boost::_bi::list4<boost::_bi::value<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::_bi::value<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::_bi::value<boost::function<void()> >, boost::_bi::value<impala::Promise<long int>*> >::operator()<void (*)(const std::basic_string<char>&, const std::basic_string<char>&, boost::function<void()>, impala::Promise<long int>*), boost::_bi::list0>(boost::_bi::type<void>, void (*&)(const std::basic_string<char, std::char_traits<char>, std::allocator<char> > &, const std::basic_string<char, std::char_traits<char>, std::allocator<char> > &, boost::function<void()>, impala::Promise<long> *), boost::_bi::list0 &, int) (this=0x19ea43c0, f=@0x19ea43b8, a=...) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/boost-1.57.0-p3/include/boost/bind/bind.hpp:457
      #39 0x0000000001af23b3 in boost::_bi::bind_t<void, void (*)(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, boost::function<void()>, impala::Promise<long int>*), boost::_bi::list4<boost::_bi::value<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::_bi::value<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::_bi::value<boost::function<void()> >, boost::_bi::value<impala::Promise<long int>*> > >::operator()(void) (this=0x19ea43b8) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/boost-1.57.0-p3/include/boost/bind/bind_template.hpp:20
      #40 0x0000000001af2376 in boost::detail::thread_data<boost::_bi::bind_t<void, void (*)(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, boost::function<void()>, impala::Promise<long int>*), boost::_bi::list4<boost::_bi::value<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::_bi::value<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::_bi::value<boost::function<void()> >, boost::_bi::value<impala::Promise<long int>*> > > >::run(void) (this=0x19ea4200) at /data/jenkins/workspace/impala-asf-master-core/Impala-Toolchain/boost-1.57.0-p3/include/boost/thread/detail/thread.hpp:116
      #41 0x0000000002dae1ca in thread_proxy ()
      #42 0x0000003012407851 in start_thread () from /lib64/libpthread.so.0
      #43 0x00000030120e894d in clone () from /lib64/libc.so.6
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                twmarshall Thomas Tauber-Marshall
                Reporter:
                alex.behm Alexander Behm
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: