Bug #92348 Assertion `m_pos.m_index_1 < mi->rli->get_worker_count()' failed
Submitted: 10 Sep 2018 8:52 Modified: 10 Sep 2018 10:13
Reporter: Ramesh Sivaraman Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Performance Schema Severity:S6 (Debug Builds)
Version:5.7.23 OS:Ubuntu (Xenial)
Assigned to: CPU Architecture:Any
Tags: debug

[10 Sep 2018 8:52] Ramesh Sivaraman
Description:
GDB info

#0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
#1  0x0000000001981053 in my_write_core (sig=6) at /qa/ps/ms57_dbg/mysys/stacktrace.c:249
#2  0x0000000000f15815 in handle_fatal_signal (sig=6) at /qa/ps/ms57_dbg/sql/signal_handler.cc:220
#3  <signal handler called>
#4  0x00007f72ee4cb428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#5  0x00007f72ee4cd02a in __GI_abort () at abort.c:89
#6  0x00007f72ee4c3bd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x2338e38 "m_pos.m_index_1 < mi->rli->get_worker_count()", file=file@entry=0x2338de0 "/qa/ps/ms57_dbg/storage/perfschema/table_replication_applier_status_by_worker.cc", line=line@entry=204, function=function@entry=0x2339120 <table_replication_applier_status_by_worker::rnd_pos(void const*)::__PRETTY_FUNCTION__> "virtual int table_replication_applier_status_by_worker::rnd_pos(const void*)") at assert.c:92
#7  0x00007f72ee4c3c82 in __GI___assert_fail (assertion=0x2338e38 "m_pos.m_index_1 < mi->rli->get_worker_count()", file=0x2338de0 "/qa/ps/ms57_dbg/storage/perfschema/table_replication_applier_status_by_worker.cc", line=204, function=0x2339120 <table_replication_applier_status_by_worker::rnd_pos(void const*)::__PRETTY_FUNCTION__> "virtual int table_replication_applier_status_by_worker::rnd_pos(const void*)") at assert.c:101
#8  0x0000000001eba41e in table_replication_applier_status_by_worker::rnd_pos (this=0x7f72b291e400, pos=0x7f72b282a150) at /qa/ps/ms57_dbg/storage/perfschema/table_replication_applier_status_by_worker.cc:204
#9  0x0000000001e4194d in ha_perfschema::rnd_pos (this=0x7f72b28b3430, buf=0x7f72b28c3030 "\377", ' ' <repeats 192 times>, pos=0x7f72b282a150 "") at /qa/ps/ms57_dbg/storage/perfschema/ha_perfschema.cc:381
#10 0x0000000000f9b112 in handler::ha_rnd_pos (this=0x7f72b28b3430, buf=0x7f72b28c3030 "\377", ' ' <repeats 192 times>, pos=0x7f72b282a150 "") at /qa/ps/ms57_dbg/sql/handler.cc:2981
#11 0x000000000152c2cb in rr_from_pointers (info=0x7f72b28c5d38) at /qa/ps/ms57_dbg/sql/records.cc:634
#12 0x00000000015ce0bb in join_init_read_record (tab=0x7f72b28c5ce8) at /qa/ps/ms57_dbg/sql/sql_executor.cc:2484
#13 0x00000000015cb105 in sub_select (join=0x7f72b28c5490, qep_tab=0x7f72b28c5ce8, end_of_records=false) at /qa/ps/ms57_dbg/sql/sql_executor.cc:1277
#14 0x00000000015caa18 in do_select (join=0x7f72b28c5490) at /qa/ps/ms57_dbg/sql/sql_executor.cc:950
#15 0x00000000015c87fa in JOIN::exec (this=0x7f72b28c5490) at /qa/ps/ms57_dbg/sql/sql_executor.cc:199
#16 0x0000000001669c54 in handle_query (thd=0x7f72b2819000, lex=0x7f72b281b318, result=0x7f72b2828638, added_options=0, removed_options=0) at /qa/ps/ms57_dbg/sql/sql_select.cc:184
#17 0x000000000161a0c7 in execute_sqlcom_select (thd=0x7f72b2819000, all_tables=0x7f72b2827ed8) at /qa/ps/ms57_dbg/sql/sql_parse.cc:5128
#18 0x00000000016133bc in mysql_execute_command (thd=0x7f72b2819000, first_level=true) at /qa/ps/ms57_dbg/sql/sql_parse.cc:2814
#19 0x000000000161b046 in mysql_parse (thd=0x7f72b2819000, parser_state=0x7f72f07f6510) at /qa/ps/ms57_dbg/sql/sql_parse.cc:5554
#20 0x00000000016100cf in dispatch_command (thd=0x7f72b2819000, com_data=0x7f72f07f6dc0, command=COM_QUERY) at /qa/ps/ms57_dbg/sql/sql_parse.cc:1484
#21 0x000000000160ef5e in do_command (thd=0x7f72b2819000) at /qa/ps/ms57_dbg/sql/sql_parse.cc:1025
#22 0x00000000017526fd in handle_connection (arg=0x7f72c5b33740) at /qa/ps/ms57_dbg/sql/conn_handler/connection_handler_per_thread.cc:300
#23 0x0000000001e442ec in pfs_spawn_thread (arg=0x7f72e67eef20) at /qa/ps/ms57_dbg/storage/perfschema/pfs.cc:2190
#24 0x00007f72ef1086ba in start_thread (arg=0x7f72f07f7700) at pthread_create.c:333
#25 0x00007f72ee59d41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

How to repeat:
# mysqld options required for replay: --early-plugin-load=keyring_file.so --keyring_file_data=keyring --log_bin=binlog --server-id=100 

CHANGE MASTER TO MASTER_HOST='0.0.0.0',MASTER_USER='';
SELECT * FROM performance_schema.replication_applier_status_by_worker ORDER BY CHANNEL_NAME
[10 Sep 2018 10:13] MySQL Verification Team
Hello Ramesh,

Thank you for the report.
Observed that 5.7.23 debug build is affected.

thanks,
Umesh