[MCOL-5379] Columnstore Query causing signal 11 crash in MariaDB Created: 2023-01-03  Updated: 2023-06-07  Resolved: 2023-04-27

Status: Closed
Project: MariaDB ColumnStore
Component/s: ExeMgr
Affects Version/s: 22.08.4
Fix Version/s: 23.02

Type: Bug Priority: Blocker
Reporter: Andrew Johnson Assignee: Roman
Resolution: Duplicate Votes: 0
Labels: None
Environment:

Operating System: Ubuntu 20.04.5 LTS


Issue Links:
Relates
relates to MCOL-5385 GROUP_CONCAT execution doesn't count ... Closed

 Description   

230103 15:20:47 [ERROR] mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
 
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
 
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
 
Server version: 10.6.9-5-MariaDB-enterprise-log
key_buffer_size=134217728
read_buffer_size=131072
max_used_connections=117
max_threads=3502
thread_count=118
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 7842887 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
 
Thread pointer: 0x7f5bac2c6c78
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x7f5c60f2fd98 thread_stack 0x49000
??:0(my_print_stacktrace)[0x55a0843e5342]
??:0(handle_fatal_signal)[0x55a083e941b5]
??:0(__restore_rt)[0x7f64ac370420]
??:0(__libc_malloc)[0x7f64abecb1fe]
??:0(operator new(unsigned long))[0x7f64ac21eb39]
??:0(std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long))[0x7f649c78494d]
??:0(std::__cxx11::basic_string, std::allocator > std::operator+, std::allocator >(std::__cxx11::basic_string, std::allocator >&&, std::__cxx11::basic_string, std::allocator > const&))[0x7f649c7854fa]
??:0(execplan::CalpontSystemCatalog::columnRIDs(execplan::CalpontSystemCatalog::TableName const&, bool, int))[0x7f649c76b932]
??:0(cal_impl_if::processFrom(bool&, st_select_lex&, cal_impl_if::gp_walk_info&, boost::shared_ptr&))[0x7f649d3212b8]
??:0(cal_impl_if::getSelectPlan(cal_impl_if::gp_walk_info&, st_select_lex&, boost::shared_ptr&, bool, bool, std::vector > const&))[0x7f649d321d65]
??:0(cal_impl_if::FromSubQuery::transform())[0x7f649d347da7]
??:0(cal_impl_if::processFrom(bool&, st_select_lex&, cal_impl_if::gp_walk_info&, boost::shared_ptr&))[0x7f649d320a97]
??:0(cal_impl_if::getSelectPlan(cal_impl_if::gp_walk_info&, st_select_lex&, boost::shared_ptr&, bool, bool, std::vector > const&))[0x7f649d321d65]
??:0(cal_impl_if::FromSubQuery::transform())[0x7f649d347da7]
??:0(cal_impl_if::processFrom(bool&, st_select_lex&, cal_impl_if::gp_walk_info&, boost::shared_ptr&))[0x7f649d320a97]
??:0(cal_impl_if::getSelectPlan(cal_impl_if::gp_walk_info&, st_select_lex&, boost::shared_ptr&, bool, bool, std::vector > const&))[0x7f649d321d65]
??:0(cal_impl_if::cs_get_select_plan(ha_columnstore_select_handler*, THD*, boost::shared_ptr&, cal_impl_if::gp_walk_info&))[0x7f649d326d34]
??:0(ha_mcs_impl_pushdown_init(mcs_handler_info*, TABLE*))[0x7f649d2cadff]
??:0(create_columnstore_select_handler(THD*, st_select_lex*))[0x7f649d2b1b35]
??:0(mysql_select(THD*, TABLE_LIST*, List&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x55a083cc6088]
??:0(handle_select(THD*, LEX*, select_result*, unsigned long))[0x55a083cc68a7]
??:0(LEX::mark_first_table_as_inserting())[0x55a083c53071]
??:0(mysql_execute_command(THD*, bool))[0x55a083c61cd3]
??:0(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x55a083c4d9c7]
??:0(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x55a083c5a04d]
??:0(do_command(THD*, bool))[0x55a083c5c768]
??:0(do_handle_one_connection(CONNECT*, bool))[0x55a083d70607]
??:0(handle_one_connection)[0x55a083d7095d]
??:0(MyCTX_nopad::finish(unsigned char*, unsigned int*))[0x55a0840deba6]
??:0(start_thread)[0x7f64ac364609]
??:0(clone)[0x7f64abf50133]

debug.log

Jan  3 15:20:48 server1 ExeMgr[2720276]: 48.011586 |764|0|0| D 16 CAL0042: End SQL statement
Jan  3 15:20:48 server1 ExeMgr[2720276]: 48.011713 |764|0|0| C 16 CAL0055: ERROR: ExeMgr has caught an exception. InetStreamSocket::readToMagic(): I/O error2.1: err = -1 e = 104: Connection reset by peer
Jan  3 15:20:48 server1 controllernode[2077]: 48.012954 |0|0|0| C 29 CAL0000: InetStreamSocket::readToMagic(): I/O error1: rc-1; poll signal interrupt ( POLLHUP POLLERR )         %%10%%
Jan  3 15:20:48 server1 joblist[2720276]: 48.013511 |764|0|0| C 05 CAL0000: CrossEngineStep::execute() fatal error running mysql_real_connect() in libmysql_client lib (2013) (Lost connection to server at 'handshake: reading initial communication packet', system error: 104)         %%10%%

Err.log

Jan  3 11:14:07 server1 ExeMgr[2720276]: 07.301790 |61648|0|0| C 16 CAL0055: ERROR: ExeMgr has caught an exception. InetStreamSocket::readToMagic(): I/O error2.1: err = -1 e = 104: Connection reset by peer
Jan  3 11:14:07 server1 ExeMgr[2720276]: 07.303708 |2147545294|0|0| C 16 CAL0055: ERROR: ExeMgr has caught an exception. InetStreamSocket::readToMagic(): I/O error2.1: err = -1 e = 104: Connection reset by peer
Jan  3 11:14:07 server1 ExeMgr[2720276]: 07.304291 |61647|0|0| C 16 CAL0055: ERROR: ExeMgr has caught an exception. InetStreamSocket::readToMagic(): I/O error2.1: err = -1 e = 104: Connection reset by peer
Jan  3 12:34:00 server1 ExeMgr[2720276]: 00.920095 |435|0|0| C 16 CAL0055: ERROR: ExeMgr has caught an exception. InetStreamSocket::readToMagic(): I/O error2.1: err = -1 e = 104: Connection reset by peer
Jan  3 12:34:00 server1 controllernode[2077]: 00.920701 |0|0|0| C 29 CAL0000: InetStreamSocket::readToMagic(): I/O error1: rc-1; poll signal interrupt ( POLLHUP POLLERR )         %%10%%
Jan  3 15:20:48 server1 ExeMgr[2720276]: 48.011713 |764|0|0| C 16 CAL0055: ERROR: ExeMgr has caught an exception. InetStreamSocket::readToMagic(): I/O error2.1: err = -1 e = 104: Connection reset by peer
Jan  3 15:20:48 server1 controllernode[2077]: 48.012954 |0|0|0| C 29 CAL0000: InetStreamSocket::readToMagic(): I/O error1: rc-1; poll signal interrupt ( POLLHUP POLLERR )         %%10%%
Jan  3 15:20:48 server1 joblist[2720276]: 48.013511 |764|0|0| C 05 CAL0000: CrossEngineStep::execute() fatal error running mysql_real_connect() in libmysql_client lib (2013) (Lost connection to server at 'handshake: reading initial communication packet', system error: 104)         %%10%%



 Comments   
Comment by Roman [ 2023-01-04 ]

Could you double check if there is GLIBC_TUNABLES=glibc.malloc.tcache_count=0 in mariadb systemd unit?

Comment by Andrew Johnson [ 2023-01-05 ]

drrtuy there is not

Comment by Gagan Goel (Inactive) [ 2023-04-27 ]

Marking this as duplicate of MCOL-5385.

Generated at Thu Feb 08 02:57:27 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.