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

Assertion `thd->transaction->stmt.ha_list == __null || trans == &thd->transaction->stmt' failed.

    XMLWordPrintable

Details

    Description

      INSTALL SONAME 'ha_rocksdb';
      INSTALL PLUGIN Spider SONAME 'ha_spider.so';
      SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
      START TRANSACTION WITH CONSISTENT SNAPSHOT;
      

      Leads to:

      10.9.0 4a2a9c02cd6611ef36bbb735c2b483dbc83580d4 (Debug)

      mysqld: /test/10.9_dbg/sql/handler.cc:2112: int ha_rollback_trans(THD*, bool): Assertion `thd->transaction->stmt.ha_list == __null || trans == &thd->transaction->stmt' failed.
      

      10.9.0 4a2a9c02cd6611ef36bbb735c2b483dbc83580d4 (Debug)

      Core was generated by `/test/MD260222-mariadb-10.9.0-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      [Current thread is 1 (Thread 0x1537b015c700 (LWP 76291))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x00001537b3d15859 in __GI_abort () at abort.c:79
      #2  0x00001537b3d15729 in __assert_fail_base (fmt=0x1537b3eab588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55dd443de510 "thd->transaction->stmt.ha_list == __null || trans == &thd->transaction->stmt", file=0x55dd443dcce3 "/test/10.9_dbg/sql/handler.cc", line=2112, function=<optimized out>) at assert.c:92
      #3  0x00001537b3d27006 in __GI___assert_fail (assertion=assertion@entry=0x55dd443de510 "thd->transaction->stmt.ha_list == __null || trans == &thd->transaction->stmt", file=file@entry=0x55dd443dcce3 "/test/10.9_dbg/sql/handler.cc", line=line@entry=2112, function=function@entry=0x55dd443de4e8 "int ha_rollback_trans(THD*, bool)") at assert.c:101
      #4  0x000055dd4387b7ed in ha_rollback_trans (thd=thd@entry=0x153740000db8, all=all@entry=true) at /test/10.9_dbg/sql/handler.cc:2112
      #5  0x000055dd4387d197 in ha_start_consistent_snapshot (thd=thd@entry=0x153740000db8) at /test/10.9_dbg/sql/handler.cc:2991
      #6  0x000055dd43700284 in trans_begin (thd=thd@entry=0x153740000db8, flags=1) at /test/10.9_dbg/sql/transaction.cc:222
      #7  0x000055dd43575749 in mysql_execute_command (thd=thd@entry=0x153740000db8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.9_dbg/sql/sql_parse.cc:5596
      #8  0x000055dd4355d343 in mysql_parse (thd=thd@entry=0x153740000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x1537b015b400) at /test/10.9_dbg/sql/sql_parse.cc:8027
      #9  0x000055dd4356bfdf in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x153740000db8, packet=packet@entry=0x15374000b889 "START TRANSACTION WITH CONSISTENT SNAPSHOT", packet_length=packet_length@entry=42, blocking=blocking@entry=true) at /test/10.9_dbg/sql/sql_class.h:1362
      #10 0x000055dd4356f426 in do_command (thd=0x153740000db8, blocking=blocking@entry=true) at /test/10.9_dbg/sql/sql_parse.cc:1402
      #11 0x000055dd436ea036 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55dd46c09238, put_in_cache=put_in_cache@entry=true) at /test/10.9_dbg/sql/sql_connect.cc:1418
      #12 0x000055dd436ea63b in handle_one_connection (arg=arg@entry=0x55dd46c09238) at /test/10.9_dbg/sql/sql_connect.cc:1312
      #13 0x000055dd43b70d23 in pfs_spawn_thread (arg=0x55dd46b1c7c8) at /test/10.9_dbg/storage/perfschema/pfs.cc:2201
      #14 0x00001537b4226609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #15 0x00001537b3e12163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.2.44 (dbg), 10.3.35 (dbg), 10.4.25 (dbg), 10.5.16 (dbg), 10.6.8 (dbg), 10.7.4 (dbg), 10.8.3 (dbg), 10.9.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.2.44 (opt), 10.3.35 (opt), 10.4.25 (opt), 10.5.16 (opt), 10.6.8 (opt), 10.7.4 (opt), 10.8.3 (opt), 10.9.0 (opt)
      MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.37 (dbg), 5.7.37 (opt), 8.0.28 (dbg), 8.0.28 (opt)

      Attachments

        Activity

          People

            ycp Yuchen Pei
            Roel Roel Van de Paar
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.