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

Assertion `checksum_start + checksum_length == f->ptr' failed in mysql_checksum_table

    XMLWordPrintable

Details

    Description

      Note: The test case usually fails for me, but sometimes it misses the mark. Run with --repeat=N if it doesn't fail right away.
      Important note: It does not fail for me on ASAN debug builds, only non-ASAN debug builds!

      --source include/have_innodb.inc
       
      CREATE TABLE t1 (
        pk INT AUTO_INCREMENT,
        i INT,
        e ENUM('foo','bar') AS (i) VIRTUAL,
        PRIMARY KEY (pk)
      ) ENGINE=InnoDB;
       
      INSERT INTO t1 (i) VALUES (1),(NULL),(1),(NULL),(2),(1),(2),(NULL);
      ALTER TABLE t1 ADD COLUMN f DECIMAL;
      CHECKSUM TABLE t1;
       
      # Cleanup
      DROP TABLE t1;
      

      10.2 37ffdb44ef96

      mysqld: /data/src/10.2/sql/sql_table.cc:10422: bool mysql_checksum_table(THD*, TABLE_LIST*, HA_CHECK_OPT*): Assertion `checksum_start + checksum_length == f->ptr' failed.
      190120 19:18:46 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007fc7ac075ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000055937180193a in mysql_checksum_table (thd=0x7fc754000b00, tables=0x7fc754012518, check_opt=0x7fc7540055f0) at /data/src/10.2/sql/sql_table.cc:10422
      #9  0x00005593717292f3 in mysql_execute_command (thd=0x7fc754000b00) at /data/src/10.2/sql/sql_parse.cc:4258
      #10 0x00005593717350a1 in mysql_parse (thd=0x7fc754000b00, rawbuf=0x7fc754012448 "CHECKSUM TABLE t1", length=17, parser_state=0x7fc7a44e1200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8015
      #11 0x00005593717229db in dispatch_command (command=COM_QUERY, thd=0x7fc754000b00, packet=0x7fc754096531 "", packet_length=17, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1826
      #12 0x0000559371721332 in do_command (thd=0x7fc754000b00) at /data/src/10.2/sql/sql_parse.cc:1379
      #13 0x00005593718741c3 in do_handle_one_connection (connect=0x5593756b0bf0) at /data/src/10.2/sql/sql_connect.cc:1335
      #14 0x0000559371873f50 in handle_one_connection (arg=0x5593756b0bf0) at /data/src/10.2/sql/sql_connect.cc:1241
      #15 0x0000559371c99e72 in pfs_spawn_thread (arg=0x5593755f6ff0) at /data/src/10.2/storage/perfschema/pfs.cc:1862
      #16 0x00007fc7add4c494 in start_thread (arg=0x7fc7a44e2700) at pthread_create.c:333
      #17 0x00007fc7ac13293f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      No visible problems on a non-debug build.

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              elenst Elena Stepanova
              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.