kangkaisen commented on issue #838: CumulativeCompaction with HLL cause BE core dump URL: https://github.com/apache/incubator-doris/issues/838#issuecomment-478970376 ``` start time: Tue Apr 2 17:32:34 CST 2019 *** Aborted at 1554198499 (unix time) try "date -d @1554198499" if you are using GNU date *** PC: @ 0x141bf9f std::_Rb_tree<>::_S_right() *** SIGSEGV (@0x0) received by PID 136192 (TID 0x7f938e758700) from PID 0; stack trace: *** @ 0x7f93b1c072f0 (unknown) @ 0x141bf9f std::_Rb_tree<>::_S_right() @ 0x141972b std::_Rb_tree<>::_M_erase() @ 0x141973d std::_Rb_tree<>::_M_erase() @ 0x141973d std::_Rb_tree<>::_M_erase() @ 0x141973d std::_Rb_tree<>::_M_erase() @ 0x141973d std::_Rb_tree<>::_M_erase() @ 0x141973d std::_Rb_tree<>::_M_erase() @ 0x141973d std::_Rb_tree<>::_M_erase() @ 0x141973d std::_Rb_tree<>::_M_erase() @ 0x141973d std::_Rb_tree<>::_M_erase() @ 0x141973d std::_Rb_tree<>::_M_erase() @ 0x141973d std::_Rb_tree<>::_M_erase() @ 0x141973d std::_Rb_tree<>::_M_erase() @ 0x14193a8 std::_Rb_tree<>::~_Rb_tree() @ 0x140cb64 std::map<>::~map() @ 0x140cbe4 doris::HllSetResolver::~HllSetResolver() @ 0x1467c27 doris::HllSetHelper::fill_set() @ 0x16348ec doris::AggregateFuncTraits<>::aggregate() @ 0x1511968 doris::Field::aggregate() @ 0x1511c05 doris::RowCursor::aggregate() @ 0x15068f9 doris::Reader::_agg_key_next_row() @ 0x14896e8 doris::Reader::next_row_with_aggregation() @ 0x1b6b450 doris::OlapScanner::get_batch() >::~_Rb_tree (this=0x7f938e734828, __in_chrg=<optimized out>) at /usr/local/include/c++/7.2.0/bits/stl_tree.h:949 #14 0x000000000140cb64 in std::map<unsigned short, unsigned char, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, unsigned char> > >::~map (this=0x7f938e734828, __in_chrg=<optimized out>) at /usr/local/include/c++/7.2.0/bits/stl_map.h:294 #15 0x000000000140cbe4 in doris::HllSetResolver::~HllSetResolver (this=0x7f938e734800, __in_chrg=<optimized out>) at /home/kangkaisen/palo/be/src/olap/hll.h:55 #16 0x0000000001467c27 in doris::HllSetHelper::fill_set (data=0x17571ff0 "t:=K", context=0x4d414000) at /home/kangkaisen/palo/be/src/olap/hll.cpp:211 #0 0x000000000141bf9f in std::_Rb_tree<unsigned short, std::pair<unsigned short const, unsigned char>, std::_Select1st<std::pair<unsigned short const, unsigned char> >, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, unsigned char> > >::_S_right (__x=0x8c142b29776d8618) at /usr/local/include/c++/7.2.0/bits/stl_tree.h:772 No locals. #1 0x000000000141972b in std::_Rb_tree<unsigned short, std::pair<unsigned short const, unsigned char>, std::_Select1st<std::pair<unsigned short const, unsigned char> >, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, unsigned char> > >::_M_erase (this=0x7f938e734828, __x=0x8c142b29776d8618) at /usr/local/include/c++/7.2.0/bits/stl_tree.h:1856 __y = 0x4d423aa0 #2 0x000000000141973d in std::_Rb_tree<unsigned short, std::pair<unsigned short const, unsigned char>, std::_Select1st<std::pair<unsigned short const, unsigned char> >, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, unsigned char> > >::_M_erase (this=0x7f938e734828, __x=0x4d423aa0) at /usr/local/include/c++/7.2.0/bits/stl_tree.h:1856 __y = 0x486b0750 ``` The related source code for `stl_map` and `stl_tree`: ``` static _Link_type _S_right(_Base_ptr __x) _GLIBCXX_NOEXCEPT { return static_cast<_Link_type>(__x->_M_right); } //772 template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_erase(_Link_type __x) { // Erase without rebalancing. while (__x != 0) { _M_erase(_S_right(__x)); //1856 _Link_type __y = _S_left(__x); _M_drop_node(__x); __x = __y; } } ~_Rb_tree() _GLIBCXX_NOEXCEPT { _M_erase(_M_begin()); } //949 #if __cplusplus >= 201103L /** * The dtor only erases the elements, and note that if the elements * themselves are pointers, the pointed-to memory is not touched in any * way. Managing the pointer is the user's responsibility. */ ~map() = default; //294 #endif ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
