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

Assertion `pagecache->block_root[i].status == 0' failed in check_pagecache_is_cleaned_up

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10
    • Fix Version/s: 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8
    • Component/s: None
    • Labels:

      Description

      # mysqld options required for replay: --sql_mode=ONLY_FULL_GROUP_BY 
      SET GLOBAL aria_encrypt_tables=ON;
      CREATE TABLE t (a INT KEY,b INT,KEY(b)) ENGINE=Aria;
      INSERT INTO t (a) VALUES (1);
      ALTER TABLE t CHANGE COLUMN b c CHAR(0);
      LOAD INDEX INTO CACHE t IGNORE LEAVES;
      SHUTDOWN;
      

      Leads to:

      10.10.0 2ccdfba8ee1af02ab17d4aff366a1c9d1883425b (Debug)

      mysqld: /test/10.10_dbg/storage/maria/ma_pagecache.c:1166: check_pagecache_is_cleaned_up: Assertion `pagecache->block_root[i].status == 0' failed.
      

      10.10.0 2ccdfba8ee1af02ab17d4aff366a1c9d1883425b (Debug)

      Core was generated by `/test/MD190722-mariadb-10.10.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 0x150b8f5d3800 (LWP 247628))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x0000150b8f7ac859 in __GI_abort () at abort.c:79
      #2  0x0000150b8f7ac729 in __assert_fail_base (fmt=0x150b8f942588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55b4b448db00 "pagecache->block_root[i].status == 0", file=0x55b4b448ce30 "/test/10.10_dbg/storage/maria/ma_pagecache.c", line=1166, function=<optimized out>) at assert.c:92
      #3  0x0000150b8f7bdfd6 in __GI___assert_fail (assertion=assertion@entry=0x55b4b448db00 "pagecache->block_root[i].status == 0", file=file@entry=0x55b4b448ce30 "/test/10.10_dbg/storage/maria/ma_pagecache.c", line=line@entry=1166, function=function@entry=0x55b4b448ed00 <__PRETTY_FUNCTION__.20477> "check_pagecache_is_cleaned_up") at assert.c:101
      #4  0x000055b4b3bd13f6 in check_pagecache_is_cleaned_up (pagecache=pagecache@entry=0x55b4b5403e20 <maria_pagecache_var>) at /test/10.10_dbg/storage/maria/ma_pagecache.c:1166
      #5  0x000055b4b3bd14c6 in end_pagecache (pagecache=0x55b4b5403e20 <maria_pagecache_var>, cleanup=cleanup@entry=1 '\001') at /test/10.10_dbg/storage/maria/ma_pagecache.c:1199
      #6  0x000055b4b3be1d86 in maria_end () at /test/10.10_dbg/storage/maria/ma_init.c:110
      #7  0x000055b4b3c13080 in maria_panic (flag=flag@entry=HA_PANIC_CLOSE) at /test/10.10_dbg/storage/maria/ma_panic.c:135
      #8  0x000055b4b3baea06 in maria_hton_panic (hton=<optimized out>, flag=HA_PANIC_CLOSE) at /test/10.10_dbg/storage/maria/ha_maria.cc:3499
      #9  0x000055b4b398802f in ha_finalize_handlerton (plugin=0x55b4b6a01140) at /test/10.10_dbg/sql/handler.cc:596
      #10 0x000055b4b36bbc8e in plugin_deinitialize (plugin=0x55b4b6a01140, ref_check=ref_check@entry=true) at /test/10.10_dbg/sql/sql_plugin.cc:1269
      #11 0x000055b4b36bfc65 in reap_plugins () at /test/10.10_dbg/sql/sql_plugin.cc:1343
      #12 0x000055b4b36c0750 in plugin_shutdown () at /test/10.10_dbg/sql/sql_plugin.cc:2051
      #13 0x000055b4b356429f in clean_up (print_message=print_message@entry=true) at /test/10.10_dbg/sql/mysqld.cc:1987
      #14 0x000055b4b3570708 in mysqld_main (argc=<optimized out>, argv=<optimized out>) at /test/10.10_dbg/sql/mysqld.cc:5937
      #15 0x000055b4b3563b26 in main (argc=<optimized out>, argv=<optimized out>) at /test/10.10_dbg/sql/main.cc:34
      

      Bug confirmed present in:
      MariaDB: 10.2.44 (dbg), 10.3.36 (dbg), 10.4.26 (dbg), 10.5.17 (dbg), 10.6.9 (dbg), 10.7.5 (dbg), 10.8.4 (dbg), 10.9.2 (dbg), 10.10.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.3.36 (opt), 10.4.26 (opt), 10.5.17 (opt), 10.6.9 (opt), 10.7.5 (opt), 10.8.4 (opt), 10.9.2 (opt), 10.10.0 (opt)
      MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.39 (dbg), 5.7.39 (opt)

        Attachments

          Activity

            People

            Assignee:
            monty Michael Widenius
            Reporter:
            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.