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

SIGSEGV in Table_scope_and_contents_source_st::vers_check_system_fields

    XMLWordPrintable

    Details

      Description

      # mysqld options required for replay: --character_set_server=utf8mb4 --collation_server=utf8mb4_unicode_1400_ci
      CREATE TABLE t0 ENGINE=InnoDB WITH SYSTEM VERSIONING AS SELECT 0;
      

      Leads to:

      10.8.0 7afdb33d7e6fea26355455eade8245863267477b

      Core was generated by `/test/mtest/mariadb-10.8.0-linux-x86_64-uca-1400/bin/mysqld --no-defaults --cha'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=11)
          at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      [Current thread is 1 (Thread 0x15133c49d700 (LWP 2277449))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=11) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x000055fea79afc4f in my_write_core (sig=sig@entry=11) at /test/mtest/10.8_opt/mysys/stacktrace.c:424
      #2  0x000055fea7457fb0 in handle_fatal_signal (sig=11) at /test/mtest/10.8_opt/sql/signal_handler.cc:345
      #3  <signal handler called>
      #4  0x0000000000000000 in ?? ()
      #5  0x000055fea7468d45 in Table_scope_and_contents_source_st::vers_check_system_fields (thd=<optimized out>, select_count=1, db=@0x15133c49af80: {<Lex_cstring> = {<st_mysql_const_lex_string> = {str = 0x1512f00110b8 "test", length = 4}, <No data fields>}, <No data fields>}, table_name=@0x15133c49af70: {<Lex_cstring> = {<st_mysql_const_lex_string> = {str = 0x1512f00109a0 "t0", length = 2}, <No data fields>}, <No data fields>}, alter_info=0x15133c49bb60, this=0x15133c49bc50) at /test/mtest/10.8_opt/sql/handler.cc:8344
      #6  Table_scope_and_contents_source_st::vers_check_system_fields (this=0x15133c49bc50, thd=<optimized out>, alter_info=0x15133c49bb60, table_name=@0x15133c49af70: {<Lex_cstring> = {<st_mysql_const_lex_string> = {str = 0x1512f00109a0 "t0", length = 2}, <No data fields>}, <No data fields>}, db=@0x15133c49af80: {<Lex_cstring> = {<st_mysql_const_lex_string> = {str = 0x1512f00110b8 "test", length = 4}, <No data fields>}, <No data fields>}, select_count=1) at /test/mtest/10.8_opt/sql/handler.cc:8318
      #7  0x000055fea74694e0 in Table_scope_and_contents_source_st::check_fields (this=0x15133c49bc50, thd=thd@entry=0x1512f0000c58, alter_info=0x15133c49bb60, table_name=@0x15133c49af70: {<Lex_cstring> = {<st_mysql_const_lex_string> = {str = 0x1512f00109a0 "t0", length = 2}, <No data fields>}, <No data fields>}, db=@0x15133c49af80: {<Lex_cstring> = {<st_mysql_const_lex_string> = {str = 0x1512f00110b8 "test", length = 4}, <No data fields>}, <No data fields>}, select_count=select_count@entry=1) at /test/mtest/10.8_opt/sql/handler.cc:8751
      #8  0x000055fea71de1c3 in select_create::create_table_from_items (this=0x1512f0011fc8, thd=0x1512f0000c58, items=<optimized out>, lock=0x15133c49b858, hooks=0x15133c49b880) at /test/mtest/10.8_opt/sql/lex_string.h:40
      #9  0x000055fea71de67d in select_create::prepare (this=0x1512f0011fc8, _values=<optimized out>, u=0x1512f0004ea0) at /test/mtest/10.8_opt/sql/sql_insert.cc:4721
      #10 0x000055fea727cb58 in JOIN::prepare (this=0x1512f0012110, tables_init=<optimized out>, conds_init=<optimized out>, og_num=<optimized out>, order_init=<optimized out>, skip_order_by=<optimized out>, group_init=<optimized out>, having_init=<optimized out>, proc_param_init=<optimized out>, select_lex_arg=<optimized out>, unit_arg=<optimized out>) at /test/mtest/10.8_opt/sql/sql_select.cc:1630
      #11 0x000055fea728ee28 in mysql_select (thd=0x1512f0000c58, tables=0x0, fields=@0x1512f0011360: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x1512f00115b8, last = 0x1512f00115b8, elements = 1}, <No data fields>}, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=<optimized out>, result=0x1512f0011fc8, unit=0x1512f0004ea0, select_lex=0x1512f00110c0) at /test/mtest/10.8_opt/sql/sql_select.cc:4968
      #12 0x000055fea728f107 in handle_select (thd=thd@entry=0x1512f0000c58, lex=lex@entry=0x1512f0004dc8, result=result@entry=0x1512f0011fc8, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/mtest/10.8_opt/sql/sql_select.cc:545
      #13 0x000055fea72cebe4 in Sql_cmd_create_table_like::execute (this=<optimized out>, thd=0x1512f0000c58) at /test/mtest/10.8_opt/sql/sql_table.cc:11869
      #14 0x000055fea721a416 in mysql_execute_command (thd=0x1512f0000c58, is_called_from_prepared_stmt=<optimized out>) at /test/mtest/10.8_opt/sql/sql_parse.cc:5989
      #15 0x000055fea720a127 in mysql_parse (thd=0x1512f0000c58, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>) at /test/mtest/10.8_opt/sql/sql_parse.cc:8028
      #16 0x000055fea7216365 in dispatch_command (command=COM_QUERY, thd=0x1512f0000c58, packet=<optimized out>, packet_length=<optimized out>, blocking=<optimized out>) at /test/mtest/10.8_opt/sql/sql_class.h:1360
      #17 0x000055fea7218568 in do_command (thd=0x1512f0000c58, blocking=blocking@entry=true) at /test/mtest/10.8_opt/sql/sql_parse.cc:1402
      #18 0x000055fea7337a27 in do_handle_one_connection (connect=<optimized out>, put_in_cache=true) at /test/mtest/10.8_opt/sql/sql_connect.cc:1418
      #19 0x000055fea7337d7d in handle_one_connection (arg=arg@entry=0x55feaadb0c18) at /test/mtest/10.8_opt/sql/sql_connect.cc:1312
      #20 0x000055fea76a3a3d in pfs_spawn_thread (arg=0x55feaadb0c88) at /test/mtest/10.8_opt/storage/perfschema/pfs.cc:2201
      #21 0x000015133f679609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #22 0x000015133f268293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.8.0 (opt), 10.8.0 (dbg)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bar Alexander Barkov
              Reporter:
              ramesh Ramesh Sivaraman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration

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