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

Assertion `lex == &main_lex' failed in void THD::reset_for_next_command(bool)

    XMLWordPrintable

Details

    Description

      BINLOG 'wlZOTw8BAAAA8QAAAPUAAAAAAAQANS41LjIxLU1hcmlhREItZGVidWctbG9nAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAEzgNAAgAEgAEBAQEEgAA2QAEGggAAAAICAgCAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAA371saA==';
      EXECUTE IMMEDIATE "binlog 'bBf2ZBMBAAAANAAAAJgHAAAAAHEAAAAAAAEABHRlc3QAAnQXAAQDDw8IBP0C4h0AeqMD4A==bBf2ZBcBAAAANAAAAMwHAAAAAHEAAAAAAAEABP / wj6QAAAEAYgEAZa6/VU0JAAAANteqUw=='";
      

      Leads to:

      10.5.26 c038b3c05ed90041333dc869e3435c301210a3c4 (Debug)

      mariadbd: /test/10.5_dbg/sql/sql_parse.cc:7722: void THD::reset_for_next_command(bool): Assertion `lex == &main_lex' failed.
      

      10.5.26 c038b3c05ed90041333dc869e3435c301210a3c4 (Debug)

      Core was generated by `/test/MD300724-mariadb-10.5.26-linux-x86_64-dbg/bin/mariadbd --no-defaults --ma'.
      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 0x150ae0143700 (LWP 457125))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x0000150ae3394859 in __GI_abort () at abort.c:79
      #2  0x0000150ae3394729 in __assert_fail_base (fmt=0x150ae352a588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x563a0b816f58 "lex == &main_lex", file=0x563a0b816e70 "/test/10.5_dbg/sql/sql_parse.cc", line=7722, function=<optimized out>) at assert.c:92
      #3  0x0000150ae33a5fd6 in __GI___assert_fail (assertion=assertion@entry=0x563a0b816f58 "lex == &main_lex", file=file@entry=0x563a0b816e70 "/test/10.5_dbg/sql/sql_parse.cc", line=line@entry=7722, function=function@entry=0x563a0b816ee0 "void THD::reset_for_next_command(bool)") at assert.c:101
      #4  0x0000563a0aad28e0 in THD::reset_for_next_command (this=0x150a94000d48, do_clear_error=do_clear_error@entry=true) at /test/10.5_dbg/sql/sql_parse.cc:7722
      #5  0x0000563a0af35cbf in Rows_log_event::do_apply_event (this=0x150a9401bc68, rgi=0x150a9401ab90) at /test/10.5_dbg/sql/log_event_server.cc:5447
      #6  0x0000563a0ac0b1bf in Log_event::apply_event (rgi=0x150a9401ab90, this=0x150a9401bc68) at /test/10.5_dbg/sql/log_event.h:1495
      #7  mysql_client_binlog_statement (thd=thd@entry=0x150a94000d48) at /test/10.5_dbg/sql/sql_binlog.cc:357
      #8  0x0000563a0aaed6c8 in mysql_execute_command (thd=0x150a94000d48) at /test/10.5_dbg/sql/sql_parse.cc:6081
      #9  0x0000563a0ab0066c in Prepared_statement::execute (this=this@entry=0x150a9401f7f8, expanded_query=expanded_query@entry=0x150ae0141b00, open_cursor=open_cursor@entry=false) at /test/10.5_dbg/sql/sql_prepare.cc:5131
      #10 0x0000563a0ab009d1 in Prepared_statement::execute_loop (this=this@entry=0x150a9401f7f8, expanded_query=expanded_query@entry=0x150ae0141b00, open_cursor=open_cursor@entry=false, packet=packet@entry=0x0, packet_end=packet_end@entry=0x0) at /test/10.5_dbg/sql/sql_prepare.cc:4553
      #11 0x0000563a0ab0252a in Prepared_statement::execute_immediate (this=this@entry=0x150a9401f7f8, query=<optimized out>, query_len=155) at /test/10.5_dbg/sql/sql_prepare.cc:5259
      #12 0x0000563a0ab02702 in mysql_sql_stmt_execute_immediate (thd=thd@entry=0x150a94000d48) at /test/10.5_dbg/sql/sql_prepare.cc:3008
      #13 0x0000563a0aae800c in mysql_execute_command (thd=thd@entry=0x150a94000d48) at /test/10.5_dbg/sql/sql_parse.cc:4036
      #14 0x0000563a0aad428c in mysql_parse (thd=thd@entry=0x150a94000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x150ae01422c0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:8223
      #15 0x0000563a0aae2fd1 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x150a94000d48, packet=packet@entry=0x150a9400aa19 "EXECUTE IMMEDIATE \"binlog 'bBf2ZBMBAAAANAAAAJgHAAAAAHEAAAAAAAEABHRlc3QAAnQXAAQDDw8IBP0C4h0AeqMD4A==bBf2ZBcBAAAANAAAAMwHAAAAAHEAAAAAAAEABP / wj6QAAAEAYgEAZa6/VU0JAAAANteqUw=='\"", packet_length=packet_length@entry=175, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_class.h:1329
      #16 0x0000563a0aae5d0a in do_command (thd=0x150a94000d48) at /test/10.5_dbg/sql/sql_parse.cc:1376
      #17 0x0000563a0ac32c16 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x563a0da5f4d8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1417
      #18 0x0000563a0ac332b4 in handle_one_connection (arg=arg@entry=0x563a0da5f4d8) at /test/10.5_dbg/sql/sql_connect.cc:1319
      #19 0x0000563a0b0b318d in pfs_spawn_thread (arg=0x563a0cf50778) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
      #20 0x0000150ae38a5609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #21 0x0000150ae3491133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.5.26 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.5.26 (opt), 10.6.19 (dbg), 10.6.19 (opt), 10.11.9 (dbg), 10.11.9 (opt), 11.1.6 (dbg), 11.1.6 (opt), 11.2.5 (dbg), 11.2.5 (opt), 11.4.3 (dbg), 11.4.3 (opt), 11.5.2 (dbg), 11.5.2 (opt), 11.6.0 (dbg), 11.6.0 (opt)

      Attachments

        Activity

          People

            shulga Dmitry Shulga
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.