Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-37749

SIGSEGV in galera::ReplicatorSMM::stats_get

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6
    • 10.6
    • Galera
    • None

    Description

      The crash is from galera multi-thread pquery run.

      10.6.12-7 fa3ad2467b53a06c50b0329fbaf2e59d28085370 (Debug)

      Core was generated by `/test/GAL_EMD140223-mariadb-10.6.12-7-linux-x86_64-opt/bin/mysqld --defaults-fi'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  0x000014b42003b950 in ?? ()
      [Current thread is 1 (Thread 0x14b4f8816700 (LWP 504621))]
      (gdb) bt
      #0  0x000014b42003b950 in ?? ()
      #1  0x000014b5554d29b7 in galera::ReplicatorSMM::stats_get (this=0x55f7a0c25730) at /test/galera_4x/galera/src/replicator_smm_stats.cpp:201
      #2  0x000055f79eeef8bd in wsrep::wsrep_provider_v26::status (this=0x55f7a0c0d7f0) at /test/10.6_opt/wsrep-lib/src/wsrep_provider_v26.cpp:1102
      #3  0x000055f79eed4adb in wsrep::server_state::status (this=<optimized out>) at /test/10.6_opt/wsrep-lib/include/wsrep/server_state.hpp:320
      #4  0x000055f79eb10b36 in export_wsrep_status_to_mysql (thd=0x14b438000c58) at /test/10.6_opt/sql/wsrep_server_state.h:44
      #5  wsrep_show_status (thd=0x14b438000c58, var=0x14b4f8813300) at /test/10.6_opt/sql/wsrep_var.cc:1121
      #6  0x000055f79e6f7d62 in show_status_array (thd=thd@entry=0x14b438000c58, wild=wild@entry=0x0, variables=0x55f7a0bd3c70, scope=scope@entry=SHOW_OPT_GLOBAL, status_var=status_var@entry=0x14b4f8813be0, prefix=prefix@entry=0x55f79f06613b "", table=0x14b438060460, ucase_names=true, cond=0x14b438011f68) at /test/10.6_opt/sql/sql_show.cc:3818
      #7  0x000055f79e6fa0e6 in fill_status (thd=0x14b438000c58, tables=0x14b438011610, cond=<optimized out>) at /test/10.6_opt/sql/sql_show.cc:8050
      #8  0x000055f79e6fe82e in get_schema_tables_result (join=join@entry=0x14b438012c48, executed_place=executed_place@entry=PROCESSED_BY_JOIN_EXEC) at /test/10.6_opt/sql/sql_show.cc:8890
      #9  0x000055f79e6e1d87 in JOIN::exec_inner (this=0x14b438012c48) at /test/10.6_opt/sql/sql_select.cc:4778
      #10 0x000055f79e6e25e9 in JOIN::exec (this=this@entry=0x14b438012c48) at /test/10.6_opt/sql/sql_select.cc:4600
      #11 0x000055f79e6e07ea in mysql_select (thd=0x14b438000c58, tables=0x14b438011610, fields=@0x14b438010bb0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x14b438011580, last = 0x14b438011580, elements = 1}, <No data fields>}, conds=0x14b438011f68, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=<optimized out>, result=0x14b438012c20, unit=0x14b438004c08, select_lex=0x14b4380108d8) at /test/10.6_opt/sql/sql_select.cc:5079
      #12 0x000055f79e6e0f27 in handle_select (thd=thd@entry=0x14b438000c58, lex=lex@entry=0x14b438004b40, result=result@entry=0x14b438012c20, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.6_opt/sql/sql_select.cc:554
      #13 0x000055f79e662951 in execute_sqlcom_select (thd=0x14b438000c58, all_tables=0x14b438011610) at /test/10.6_opt/sql/sql_parse.cc:6287
      #14 0x000055f79e670bf0 in mysql_execute_command (thd=0x14b438000c58, is_called_from_prepared_stmt=<optimized out>) at /test/10.6_opt/sql/sql_parse.cc:3963
      #15 0x000055f79e65d566 in mysql_parse (rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>, thd=0x14b438000c58) at /test/10.6_opt/sql/sql_parse.cc:8048
      #16 mysql_parse (thd=0x14b438000c58, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>) at /test/10.6_opt/sql/sql_parse.cc:7970
      #17 0x000055f79e65cb91 in wsrep_mysql_parse (thd=0x14b438000c58, rawbuf=0x14b438010720 "select case when variable_value-@c = 3 then 'true' else 'false' end as read_free from information_schema.global_status where variable_name='rocksdb_num_get_for_update_calls'", length=173, parser_state=0x14b4f88153f0) at /test/10.6_opt/sql/sql_parse.cc:7860
      #18 0x000055f79e66aced in dispatch_command (command=COM_QUERY, thd=0x14b438000c58, packet=<optimized out>, packet_length=<optimized out>, blocking=<optimized out>) at /test/10.6_opt/sql/sql_parse.cc:1986
      #19 0x000055f79e66baa8 in do_command (thd=0x14b438000c58, blocking=blocking@entry=true) at /test/10.6_opt/sql/sql_parse.cc:1416
      #20 0x000055f79e783367 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55f7a0f8e068, put_in_cache=put_in_cache@entry=true) at /test/10.6_opt/sql/sql_connect.cc:1416
      #21 0x000055f79e78364d in handle_one_connection (arg=0x55f7a0f8e068) at /test/10.6_opt/sql/sql_connect.cc:1318
      #22 0x000014b555f36609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #23 0x000014b555b22133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Attachments

        Activity

          People

            janlindstrom Jan Lindström
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.