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

Server crashes in _ma_reset_history upon altering on Aria table with vector key under lock

    XMLWordPrintable

Details

    Description

      CREATE TABLE t (v VECTOR(1) NOT NULL, VECTOR(v)) ENGINE=Aria;
      INSERT INTO t VALUES (0x31313131);
      LOCK TABLE t WRITE;
      ALTER TABLE t FORCE;
       
      # Cleanup
      UNLOCK TABLES;
      DROP TABLE t;
      

      03816793fdfaf072cdb0e630708819f770e06f42

      #2  <signal handler called>
      #3  0x00005588c7bd85ca in _ma_reset_history (share=share@entry=0x621000113118) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/storage/maria/ma_state.c:835
      #4  0x00005588c7bd8ba8 in _ma_trnman_end_trans_hook (trn=0x60f000000148, commit=1 '\001', active_transactions=0 '\000') at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/storage/maria/ma_state.c:482
      #5  0x00005588c7c0edf6 in trnman_end_trn (trn=trn@entry=0x60f000000148, commit=commit@entry=1 '\001') at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/storage/maria/trnman.c:497
      #6  0x00005588c7c5a702 in ma_commit (trn=0x60f000000148) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/storage/maria/ma_commit.c:73
      #7  0x00005588c7bf87a0 in ha_maria::external_lock (this=0x61d0000cbcb8, thd=0x62b00007e218, lock_type=2) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/storage/maria/ha_maria.cc:3008
      #8  0x00005588c75ef084 in handler::ha_external_lock (this=0x61d0000cbcb8, thd=thd@entry=0x62b00007e218, lock_type=lock_type@entry=2) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/handler.cc:7647
      #9  0x00005588c7a6720d in handler::ha_external_unlock (thd=0x62b00007e218, this=<optimized out>) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/handler.h:3599
      #10 unlock_external (thd=thd@entry=0x62b00007e218, table=0x6290001b98b0, count=<optimized out>) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/lock.cc:745
      #11 0x00005588c7a6790f in mysql_unlock_tables (thd=thd@entry=0x62b00007e218, sql_lock=0x6290001b9880, free_lock=free_lock@entry=false) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/lock.cc:436
      #12 0x00005588c7a6a64b in mysql_unlock_some_tables (thd=thd@entry=0x62b00007e218, table=table@entry=0x7f7f791e10e0, count=count@entry=1, flag=flag@entry=0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/lock.cc:466
      #13 0x00005588c7a6a770 in mysql_lock_remove (thd=thd@entry=0x62b00007e218, locked=0x607000018bb8, table=<optimized out>, table@entry=0x61900009d398) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/lock.cc:565
      #14 0x00005588c6b8ad7c in close_all_tables_for_name (thd=thd@entry=0x62b00007e218, share=<optimized out>, extra=HA_EXTRA_NOT_USED, skip_table=skip_table@entry=0x0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/sql_base.cc:776
      #15 0x00005588c701e595 in mysql_alter_table (thd=thd@entry=0x62b00007e218, new_db=new_db@entry=0x62b000082e20, new_name=new_name@entry=0x62b000083280, create_info=create_info@entry=0x7f7f791e5530, table_list=<optimized out>, table_list@entry=0x629000087348, recreate_info=<optimized out>, alter_info=<optimized out>, order_num=<optimized out>, order=<optimized out>, ignore=<optimized out>, if_exists=<optimized out>) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/sql_table.cc:11733
      #16 0x00005588c7193149 in Sql_cmd_alter_table::execute (this=<optimized out>, thd=0x62b00007e218) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/sql_alter.cc:701
      #17 0x00005588c6d35249 in mysql_execute_command (thd=thd@entry=0x62b00007e218, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/sql_parse.cc:5846
      #18 0x00005588c6d43612 in mysql_parse (thd=thd@entry=0x62b00007e218, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f7f791e7840) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/sql_parse.cc:7873
      #19 0x00005588c6d4b90f in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x62b00007e218, packet=packet@entry=0x6290001a4219 "", packet_length=packet_length@entry=19, blocking=blocking@entry=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/sql_parse.cc:1892
      #20 0x00005588c6d50b19 in do_command (thd=0x62b00007e218, blocking=blocking@entry=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/sql_parse.cc:1405
      #21 0x00005588c717f98f in do_handle_one_connection (connect=<optimized out>, connect@entry=0x608000002a38, put_in_cache=put_in_cache@entry=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/sql_connect.cc:1448
      #22 0x00005588c718029d in handle_one_connection (arg=arg@entry=0x608000002a38) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/sql/sql_connect.cc:1350
      #23 0x00005588c7da5b28 in pfs_spawn_thread (arg=0x617000005b98) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-rel-asan-new/storage/perfschema/pfs.cc:2198
      #24 0x00007f7f844a8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #25 0x00007f7f8452861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.