|
SET SQL_MODE='';
|
CREATE TABLE t (a INT,b INT GENERATED ALWAYS AS (a+1),c INT) ENGINE=InnoDB PARTITION BY RANGE (b) (PARTITION p0 VALUES LESS THAN (6),PARTITION p VALUES LESS THAN (11),PARTITION p2 VALUES LESS THAN (16),PARTITION p3 VALUES LESS THAN (21));
|
ALTER TABLE t ENGINE=MyISAM;
|
INSERT INTO t VALUES (0,0,1);
|
CHECKSUM TABLE t;
|
Leads to:
|
10.7.0 71ed8c136fa203b9b3a678a6d5cc72235ef73ef7 (Debug)
|
mysqld: /test/10.7_dbg/sql/handler.cc:5797: virtual int handler::calculate_checksum(): Assertion `checksum_start + checksum_length == f->ptr' failed.
|
|
10.7.0 71ed8c136fa203b9b3a678a6d5cc72235ef73ef7 (Debug)
|
Core was generated by `/test/MD200721-mariadb-10.7.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 0x14cae46c0700 (LWP 2659773))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x000014caeeb25859 in __GI_abort () at abort.c:79
|
#2 0x000014caeeb25729 in __assert_fail_base (fmt=0x14caeecbb588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x556b4c8b72d0 "checksum_start + checksum_length == f->ptr", file=0x556b4c8b5153 "/test/10.7_dbg/sql/handler.cc", line=5797, function=<optimized out>) at assert.c:92
|
#3 0x000014caeeb36f36 in __GI___assert_fail (assertion=assertion@entry=0x556b4c8b72d0 "checksum_start + checksum_length == f->ptr", file=file@entry=0x556b4c8b5153 "/test/10.7_dbg/sql/handler.cc", line=line@entry=5797, function=function@entry=0x556b4c8b72a0 "virtual int handler::calculate_checksum()") at assert.c:101
|
#4 0x0000556b4bda38d5 in handler::calculate_checksum (this=0x14ca9c037ea0) at /test/10.7_dbg/sql/handler.cc:5797
|
#5 0x0000556b4c05f95e in ha_partition::calculate_checksum (this=0x14ca9c01e190) at /test/10.7_dbg/sql/ha_partition.cc:10863
|
#6 0x0000556b4bb84f8c in mysql_checksum_table (thd=thd@entry=0x14ca9c000db8, tables=tables@entry=0x14ca9c013d48, check_opt=check_opt@entry=0x14ca9c0063c8) at /test/10.7_dbg/sql/sql_table.cc:11367
|
#7 0x0000556b4baa5a79 in mysql_execute_command (thd=thd@entry=0x14ca9c000db8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.7_dbg/sql/sql_parse.cc:4384
|
#8 0x0000556b4ba90ead in mysql_parse (thd=thd@entry=0x14ca9c000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14cae46bf400) at /test/10.7_dbg/sql/sql_parse.cc:8026
|
#9 0x0000556b4ba9f9f8 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14ca9c000db8, packet=packet@entry=0x14ca9c00b749 "", packet_length=packet_length@entry=16, blocking=blocking@entry=true) at /test/10.7_dbg/sql/sql_class.h:1340
|
#10 0x0000556b4baa2e05 in do_command (thd=0x14ca9c000db8, blocking=blocking@entry=true) at /test/10.7_dbg/sql/sql_parse.cc:1404
|
#11 0x0000556b4bc18f48 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x556b4f76ee88, put_in_cache=put_in_cache@entry=true) at /test/10.7_dbg/sql/sql_connect.cc:1410
|
#12 0x0000556b4bc1954d in handle_one_connection (arg=arg@entry=0x556b4f76ee88) at /test/10.7_dbg/sql/sql_connect.cc:1312
|
#13 0x0000556b4c0815b2 in pfs_spawn_thread (arg=0x556b4f6983c8) at /test/10.7_dbg/storage/perfschema/pfs.cc:2201
|
#14 0x000014caef034609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#15 0x000014caeec22293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.2.39 (dbg), 10.3.30 (dbg), 10.4.20 (dbg), 10.5.11 (dbg), 10.6.4 (dbg), 10.7.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.39 (opt), 10.3.30 (opt), 10.4.20 (opt), 10.5.11 (opt), 10.6.4 (opt), 10.7.0 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.34 (dbg), 5.7.34 (opt), 8.0.24 (dbg), 8.0.24 (opt)
|