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

Assertion `!strcmp(&path[strlen(path) - strlen(dot_ext[IBD])], dot_ext[IBD])' failed in void mtr_t::log_file_op(mfile_type_t, uint32_t, const char*, const char*)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL), 11.2(EOL), 11.3(EOL)
    • N/A
    • Virtual Columns

    Description

      CREATE TABLE t (a INT GENERATED ALWAYS AS (1) VIRTUAL,KEY(a)) ENGINE=MyISAM;
      INSERT INTO t VALUES(),();
      CHECK TABLE t EXTENDED;
      CREATE TABLE fts_t (f INT KEY,f2 CHAR(1),FULLTEXT (f2)) ENGINE=InnoDB;
      CREATE PROCEDURE p() UPDATE t SET a=a;
      CALL p;
      SHUTDOWN;
      

      11.3.0 8951f7d940166063db3fe64c35c40a5e5fabcf7d (Debug)

      mariadbd: /test/11.3_dbg/storage/innobase/fil/fil0fil.cc:1608: void mtr_t::log_file_op(mfile_type_t, uint32_t, const char*, const char*): Assertion `!strcmp(&path[strlen(path) - strlen(dot_ext[IBD])], dot_ext[IBD])' failed.
      

      11.3.0 8951f7d940166063db3fe64c35c40a5e5fabcf7d (Debug)

      Core was generated by `/test/MD240823-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd --no-defaults --cor'.
      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 0x14ce9478b980 (LWP 3326205))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x000014ce94964859 in __GI_abort () at abort.c:79
      #2  0x000014ce94964729 in __assert_fail_base (fmt=0x14ce94afa588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55f87e5f4448 "!strcmp(&path[strlen(path) - strlen(dot_ext[IBD])], dot_ext[IBD])", file=0x55f87e5f1d00 "/test/11.3_dbg/storage/innobase/fil/fil0fil.cc", line=1608, function=<optimized out>) at assert.c:92
      #3  0x000014ce94975fd6 in __GI___assert_fail (assertion=assertion@entry=0x55f87e5f4448 "!strcmp(&path[strlen(path) - strlen(dot_ext[IBD])], dot_ext[IBD])", file=file@entry=0x55f87e5f1d00 "/test/11.3_dbg/storage/innobase/fil/fil0fil.cc", line=line@entry=1608, function=function@entry=0x55f87e5f43f8 "void mtr_t::log_file_op(mfile_type_t, uint32_t, const char*, const char*)") at assert.c:101
      #4  0x000055f87e0b0576 in mtr_t::log_file_op (new_path=0x0, path=0x14ce2408c190 "./test/FTS_", '0' <repeats 14 times>, "\001", space_id=9, type=FILE_MODIFY, this=0x7ffc8a7a1e70) at /test/11.3_dbg/storage/innobase/fil/fil0fil.cc:1608
      #5  fil_name_write (space_id=9, name=<optimized out>, mtr=mtr@entry=0x7ffc8a7a1e70) at /test/11.3_dbg/storage/innobase/fil/fil0fil.cc:1661
      #6  0x000055f87e0b114e in fil_names_clear (lsn=lsn@entry=75263) at /test/11.3_dbg/storage/innobase/fil/fil0fil.cc:3191
      #7  0x000055f87e04338d in log_checkpoint_low (oldest_lsn=oldest_lsn@entry=75263, end_lsn=end_lsn@entry=75263) at /test/11.3_dbg/storage/innobase/buf/buf0flu.cc:1909
      #8  0x000055f87e043bfe in log_checkpoint () at /test/11.3_dbg/storage/innobase/buf/buf0flu.cc:1950
      #9  0x000055f87e043f03 in buf_flush_wait_flushed (sync_lsn=75263) at /test/11.3_dbg/storage/innobase/buf/buf0flu.cc:2040
      #10 0x000055f87e043f55 in log_make_checkpoint () at /usr/include/c++/9/bits/atomic_base.h:413
      #11 0x000055f87de2749d in logs_empty_and_mark_files_at_shutdown () at /test/11.3_dbg/storage/innobase/log/log0log.cc:1207
      #12 0x000055f87df74710 in innodb_shutdown () at /test/11.3_dbg/storage/innobase/srv/srv0start.cc:1980
      #13 0x000055f87dd7dec5 in innobase_end () at /test/11.3_dbg/storage/innobase/handler/ha_innodb.cc:4246
      #14 0x000055f87da9371a in ha_finalize_handlerton (plugin=0x55f87fc0f800) at /test/11.3_dbg/sql/handler.cc:599
      #15 0x000055f87d7a977b in plugin_deinitialize (plugin=0x55f87fc0f800, ref_check=ref_check@entry=true) at /test/11.3_dbg/sql/sql_plugin.cc:1270
      #16 0x000055f87d7aa07b in reap_plugins () at /test/11.3_dbg/sql/sql_plugin.cc:1344
      #17 0x000055f87d7ace4f in plugin_shutdown () at /test/11.3_dbg/sql/sql_plugin.cc:2055
      #18 0x000055f87d6633af in clean_up (print_message=print_message@entry=true) at /test/11.3_dbg/sql/mysqld.cc:2013
      #19 0x000055f87d66f5da in mysqld_main (argc=<optimized out>, argv=<optimized out>) at /test/11.3_dbg/sql/mysqld.cc:6091
      #20 0x000055f87d662b76 in main (argc=<optimized out>, argv=<optimized out>) at /test/11.3_dbg/sql/main.cc:34
      

      Bug confirmed present in:
      MariaDB: 10.9.8 (dbg), 10.10.6 (dbg), 10.11.5 (dbg), 11.0.3 (dbg), 11.1.2 (dbg), 11.2.2 (dbg), 11.3.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.4.31 (dbg), 10.4.31 (opt), 10.4.32 (dbg), 10.4.32 (opt), 10.5.22 (dbg), 10.5.22 (opt), 10.6.15 (opt), 10.6.15 (dbg), 10.9.8 (opt), 10.10.6 (opt), 10.11.5 (opt), 11.0.3 (opt), 11.1.2 (opt), 11.2.2 (opt), 11.3.0 (opt)

      Attachments

        Issue Links

          Activity

            People

              midenok Aleksey Midenkov
              ramesh Ramesh Sivaraman
              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.