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

Assertion `ds_control' failed in debug_sync upon closing connection after creating temporary sequence

    XMLWordPrintable

    Details

      Description

      # ATTENTION: run with --mysqld=--debug-sync-timeout=2
       
      --source include/have_innodb.inc
      --source include/have_debug_sync.inc
       
      --connect (con1,localhost,root,,)
      CREATE TEMPORARY SEQUENCE f ENGINE=InnoDB;
      --disconnect con1
      --connection default
      --sleep 3
      SELECT 'Still alive' AS `Heartbeat`;
      

      10.3 86b941703529

      mysqld: /data/src/10.3/sql/debug_sync.cc:1540: void debug_sync(THD*, const char*, size_t): Assertion `ds_control' failed.
      170607 15:51:15 [ERROR] mysqld got signal 6 ;
       
      #3  <signal handler called>
      #4  0x00007fa92c852fcf in raise () from /lib/x86_64-linux-gnu/libc.so.6
      #5  0x00007fa92c8543fa in abort () from /lib/x86_64-linux-gnu/libc.so.6
      #6  0x00007fa92c84be37 in __assert_fail_base () from /lib/x86_64-linux-gnu/libc.so.6
      #7  0x00007fa92c84bee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000055f2f4d01b41 in debug_sync (thd=0x7fa8d8000b00, sync_point_name=0x55f2f59ec939 "after_trx_committed_in_memory", name_len=29) at /data/src/10.3/sql/debug_sync.cc:1540
      #9  0x000055f2f5491e9e in trx_commit_in_memory (trx=0x7fa92678f8c8, mtr=0x7fa92443ee80, serialised=false) at /data/src/10.3/storage/innobase/trx/trx0trx.cc:1776
      #10 0x000055f2f54929af in trx_commit_low (trx=0x7fa92678f8c8, mtr=0x7fa92443ee80) at /data/src/10.3/storage/innobase/trx/trx0trx.cc:2002
      #11 0x000055f2f5492a70 in trx_commit (trx=0x7fa92678f8c8) at /data/src/10.3/storage/innobase/trx/trx0trx.cc:2026
      #12 0x000055f2f5486703 in trx_rollback_finish (trx=0x7fa92678f8c8) at /data/src/10.3/storage/innobase/trx/trx0roll.cc:1152
      #13 0x000055f2f5483ae9 in trx_rollback_to_savepoint_low (trx=0x7fa92678f8c8, savept=0x0) at /data/src/10.3/storage/innobase/trx/trx0roll.cc:126
      #14 0x000055f2f5483e28 in trx_rollback_for_mysql_low (trx=0x7fa92678f8c8) at /data/src/10.3/storage/innobase/trx/trx0roll.cc:180
      #15 0x000055f2f5484112 in trx_rollback_low (trx=0x7fa92678f8c8) at /data/src/10.3/storage/innobase/trx/trx0roll.cc:212
      #16 0x000055f2f5484449 in trx_rollback_for_mysql (trx=0x7fa92678f8c8) at /data/src/10.3/storage/innobase/trx/trx0roll.cc:288
      #17 0x000055f2f528ca60 in innobase_rollback_trx (trx=0x7fa92678f8c8) at /data/src/10.3/storage/innobase/handler/ha_innodb.cc:4871
      #18 0x000055f2f528d609 in innobase_close_connection (hton=0x55f2f857ba00, thd=0x7fa8d8000b00) at /data/src/10.3/storage/innobase/handler/ha_innodb.cc:5244
      #19 0x000055f2f4f80bee in closecon_handlerton (thd=0x7fa8d8000b00, plugin=0x7fa92443fcf8, unused=0x0) at /data/src/10.3/sql/handler.cc:775
      #20 0x000055f2f4cec478 in plugin_foreach_with_mask (thd=0x7fa8d8000b00, func=0x55f2f4f80b73 <closecon_handlerton(THD*, plugin_ref, void*)>, type=1, state_mask=4294967287, arg=0x0) at /data/src/10.3/sql/sql_plugin.cc:2381
      #21 0x000055f2f4f80c3c in ha_close_connection (thd=0x7fa8d8000b00) at /data/src/10.3/sql/handler.cc:788
      #22 0x000055f2f4c7d177 in THD::free_connection (this=0x7fa8d8000b00) at /data/src/10.3/sql/sql_class.cc:1557
      #23 0x000055f2f4be77aa in unlink_thd (thd=0x7fa8d8000b00) at /data/src/10.3/sql/mysqld.cc:2898
      #24 0x000055f2f4be7c27 in one_thread_per_connection_end (thd=0x7fa8d8000b00, put_in_cache=true) at /data/src/10.3/sql/mysqld.cc:3039
      #25 0x000055f2f4e184dd in do_handle_one_connection (connect=0x55f2f8b6fa90) at /data/src/10.3/sql/sql_connect.cc:1373
      #26 0x000055f2f4e18181 in handle_one_connection (arg=0x55f2f8b6fa90) at /data/src/10.3/sql/sql_connect.cc:1260
      #27 0x000055f2f5274a8d in pfs_spawn_thread (arg=0x55f2f8acf7e0) at /data/src/10.3/storage/perfschema/pfs.cc:1862
      #28 0x00007fa92e585494 in start_thread (arg=0x7fa924440700) at pthread_create.c:333
      #29 0x00007fa92c90893f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              monty Michael Widenius
              Reporter:
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: