Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL)
Description
Possibly connected to MDEV-19011
CREATE TABLE t0 (b INT,c INT,d BIT,v BIT AS (d) VIRTUAL,KEY(b,v)) ENGINE=MyISAM PARTITION BY HASH (b); |
CHECK TABLE t0; |
Leads to:
10.9.0 0b14dbd45b5a1c02616d611876158d44b92b77bf (Debug) |
mysqld: /test/10.9_dbg/storage/myisam/ha_myisam.cc:982: void ha_myisam::setup_vcols_for_repair(HA_CHECK*): Assertion `file->s->base.reclength < file->s->vreclength || !table->s->stored_fields' failed.
|
10.9.0 0b14dbd45b5a1c02616d611876158d44b92b77bf (Debug) |
Core was generated by `/test/MD030522-mariadb-10.9.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 0x154fc26dc700 (LWP 392869))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x0000154ff4294859 in __GI_abort () at abort.c:79
|
#2 0x0000154ff4294729 in __assert_fail_base (fmt=0x154ff442a588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5642316273b0 "file->s->base.reclength < file->s->vreclength || !table->s->stored_fields", file=0x564231627068 "/test/10.9_dbg/storage/myisam/ha_myisam.cc", line=982, function=<optimized out>) at assert.c:92
|
#3 0x0000154ff42a6006 in __GI___assert_fail (assertion=assertion@entry=0x5642316273b0 "file->s->base.reclength < file->s->vreclength || !table->s->stored_fields", file=file@entry=0x564231627068 "/test/10.9_dbg/storage/myisam/ha_myisam.cc", line=line@entry=982, function=function@entry=0x564231627378 "void ha_myisam::setup_vcols_for_repair(HA_CHECK*)") at assert.c:101
|
#4 0x000056423117c3aa in ha_myisam::setup_vcols_for_repair (this=this@entry=0x154f64023940, param=param@entry=0x154f6402d3f0) at /test/10.9_dbg/storage/myisam/ha_myisam.cc:982
|
#5 0x000056423117c85f in ha_myisam::check (this=0x154f64023940, thd=0x154f64000db8, check_opt=<optimized out>) at /test/10.9_dbg/storage/myisam/ha_myisam.cc:1031
|
#6 0x0000564230a9005f in handler::ha_check (this=this@entry=0x154f64023940, thd=thd@entry=0x154f64000db8, check_opt=check_opt@entry=0x154f64006278) at /test/10.9_dbg/sql/handler.cc:4949
|
#7 0x0000564230d496b3 in ha_partition::handle_opt_part (this=this@entry=0x154f64023070, thd=thd@entry=0x154f64000db8, check_opt=check_opt@entry=0x154f64006278, part_id=part_id@entry=0, flag=flag@entry=3) at /test/10.9_dbg/sql/ha_partition.cc:1391
|
#8 0x0000564230d49835 in ha_partition::handle_opt_partitions (this=0x154f64023070, thd=0x154f64000db8, check_opt=0x154f64006278, flag=flag@entry=3) at /test/10.9_dbg/sql/ha_partition.cc:1568
|
#9 0x0000564230d49b56 in ha_partition::check (this=<optimized out>, thd=<optimized out>, check_opt=<optimized out>) at /test/10.9_dbg/sql/ha_partition.cc:1299
|
#10 0x0000564230a9005f in handler::ha_check (this=0x154f64023070, thd=0x154f64000db8, check_opt=0x154f64006278) at /test/10.9_dbg/sql/handler.cc:4949
|
#11 0x0000564230915764 in mysql_admin_table (thd=thd@entry=0x154f64000db8, tables=tables@entry=0x154f64013ca0, check_opt=check_opt@entry=0x154f64006278, operator_name=operator_name@entry=0x564231a5d120 <msg_check>, lock_type=lock_type@entry=TL_READ_NO_INSERT, org_open_for_modify=org_open_for_modify@entry=false, repair_table_use_frm=false, extra_open_options=32, prepare_func=0x0, operator_func=(int (handler::*)(class handler * const, class THD *, HA_CHECK_OPT *)) 0x564230a8fff8 <handler::ha_check(THD*, st_ha_check_opt*)>, view_operator_func=0x5642308b3615 <view_check(THD*, TABLE_LIST*, st_ha_check_opt*)>, is_cmd_replicated=false) at /test/10.9_dbg/sql/sql_admin.cc:874
|
#12 0x00005642309183a4 in Sql_cmd_check_table::execute (this=<optimized out>, thd=0x154f64000db8) at /test/10.9_dbg/sql/sql_admin.cc:1487
|
#13 0x00005642307af03a in mysql_execute_command (thd=thd@entry=0x154f64000db8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.9_dbg/sql/sql_parse.cc:6006
|
#14 0x000056423079767b in mysql_parse (thd=thd@entry=0x154f64000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x154fc26db470) at /test/10.9_dbg/sql/sql_parse.cc:8046
|
#15 0x00005642307a4f79 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x154f64000db8, packet=packet@entry=0x154f6400b699 "", packet_length=packet_length@entry=14, blocking=blocking@entry=true) at /test/10.9_dbg/sql/sql_class.h:1364
|
#16 0x00005642307a7686 in do_command (thd=0x154f64000db8, blocking=blocking@entry=true) at /test/10.9_dbg/sql/sql_parse.cc:1408
|
#17 0x0000564230904d02 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x564233f7ede8, put_in_cache=put_in_cache@entry=true) at /test/10.9_dbg/sql/sql_connect.cc:1418
|
#18 0x000056423090520b in handle_one_connection (arg=0x564233f7ede8) at /test/10.9_dbg/sql/sql_connect.cc:1312
|
#19 0x0000154ff47a5609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#20 0x0000154ff4391163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.2.44 (dbg), 10.3.35 (dbg), 10.4.25 (dbg), 10.5.16 (dbg), 10.6.8 (dbg), 10.7.4 (dbg), 10.8.3 (dbg), 10.9.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.44 (opt), 10.3.35 (opt), 10.4.25 (opt), 10.5.16 (opt), 10.6.8 (opt), 10.7.4 (opt), 10.8.3 (opt), 10.9.0 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.37 (dbg), 5.7.37 (opt), 8.0.28 (dbg), 8.0.28 (opt)
Attachments
Issue Links
- is caused by
-
MDEV-371 Unique indexes for blobs
- Closed
- relates to
-
MDEV-26035 Assertion `file->s->base.reclength < file- >s->vreclength || !table->s->stored_fields' upon creating HASH index
- Confirmed
-
MDEV-28190 sql_mode makes MDEV-371 virtual column expressions nondeterministic
- Closed
-
MDEV-19011 Assertion `file->s->base.reclength < file->s->vreclength' failed in ha_myisam::setup_vcols_for_repair
- Closed