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

Spider: SIGSEGV in check_vcol_forward_refs on INSERT DELAYED

    XMLWordPrintable

    Details

      Description

      The present issue was split from MDEV-27894.

      INSTALL PLUGIN spider SONAME 'ha_spider.so';
      CREATE TABLE t (a INT UNSIGNED KEY,b INT UNSIGNED,c INT UNSIGNED,UNIQUE (b,c) USING HASH) ENGINE=SPIDER;
      SHOW CREATE TABLE t;
      INSERT DELAYED INTO t VALUES (0,0,0);
      

      10.4.23 12cad0c3468d734e041d4ef0cd5a26d2a28606fc (Debug)

      Core was generated by `/test/MD290122-mariadb-10.4.23-linux-x86_64-dbg/bin/mysqld --no-defaults --core'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  0x000056320e9bfb17 in check_vcol_forward_refs (field=field@entry=
          0x1525bc015b38, vcol=0x1525bc015c10, 
          check_constraint=check_constraint@entry=false)
          at /test/10.4_dbg/sql/table.cc:3506
      [Current thread is 1 (Thread 0x152610182700 (LWP 2286557))]
      (gdb) bt
      #0  0x000056320e9bfb17 in check_vcol_forward_refs (field=field@entry=0x1525bc015b38, vcol=0x1525bc015c10, check_constraint=check_constraint@entry=false) at /test/10.4_dbg/sql/table.cc:3506
      #1  0x000056320e9c47d9 in parse_vcol_defs (thd=thd@entry=0x1525bc000d90, mem_root=0x1525bc006768, table=table@entry=0x1525bc014a80, error_reported=error_reported@entry=0x15261017f540, mode=mode@entry=VCOL_INIT_DEPENDENCY_FAILURE_IS_WARNING) at /test/10.4_dbg/sql/table.cc:1304
      #2  0x000056320e87df8e in Delayed_insert::get_local_table (this=this@entry=0x1525bc0a1970, client_thd=client_thd@entry=0x1525bc000d90) at /test/10.4_dbg/sql/sql_insert.cc:2673
      #3  0x000056320e886d28 in delayed_get_table (table_list=0x1525bc013328, grl_protection_request=0x15261017f690, thd=0x1525bc000d90) at /test/10.4_dbg/sql/sql_insert.cc:2502
      #4  open_and_lock_for_insert_delayed (thd=thd@entry=0x1525bc000d90, table_list=table_list@entry=0x1525bc013328) at /test/10.4_dbg/sql/sql_insert.cc:573
      #5  0x000056320e88740f in mysql_insert (thd=thd@entry=0x1525bc000d90, table_list=0x1525bc013328, fields=@0x1525bc005ba0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x56320fe95ca0 <end_of_list>, last = 0x1525bc005ba0, elements = 0}, <No data fields>}, values_list=@0x1525bc005be8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x1525bc014090, last = 0x1525bc014090, elements = 1}, <No data fields>}, update_fields=@0x1525bc005bd0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x56320fe95ca0 <end_of_list>, last = 0x1525bc005bd0, elements = 0}, <No data fields>}, update_values=@0x1525bc005bb8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x56320fe95ca0 <end_of_list>, last = 0x1525bc005bb8, elements = 0}, <No data fields>}, duplic=DUP_ERROR, ignore=false) at /test/10.4_dbg/sql/sql_insert.cc:759
      #6  0x000056320e8c3cc1 in mysql_execute_command (thd=thd@entry=0x1525bc000d90) at /test/10.4_dbg/sql/sql_parse.cc:4598
      #7  0x000056320e8cba83 in mysql_parse (thd=thd@entry=0x1525bc000d90, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x152610181490, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_parse.cc:7995
      #8  0x000056320e8ce4df in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x1525bc000d90, packet=packet@entry=0x1525bc01a361 "INSERT DELAYED INTO t VALUES (0,0,0)", packet_length=packet_length@entry=36, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_class.h:1201
      #9  0x000056320e8d1dd2 in do_command (thd=0x1525bc000d90) at /test/10.4_dbg/sql/sql_parse.cc:1373
      #10 0x000056320ea10cb3 in do_handle_one_connection (connect=connect@entry=0x56321273c100) at /test/10.4_dbg/sql/sql_connect.cc:1420
      #11 0x000056320ea10dd2 in handle_one_connection (arg=0x56321273c100) at /test/10.4_dbg/sql/sql_connect.cc:1316
      #12 0x000015262676f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #13 0x000015262635d293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nayuta-yanagisawa Nayuta Yanagisawa
              Reporter:
              nayuta-yanagisawa Nayuta Yanagisawa
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.