[MDEV-14649] Assertion `t->mysql_col_len == 8' failed in row_insert_for_mysql Created: 2017-12-14  Updated: 2017-12-27  Resolved: 2017-12-18

Status: Closed
Project: MariaDB Server
Component/s: Versioned Tables
Affects Version/s: N/A
Fix Version/s: 10.3.4

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Eugene Kosov (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-14654 Assertion `len <= col->len || ((col->... Closed

 Description   

--source include/have_innodb.inc
--source include/have_partition.inc
 
CREATE OR REPLACE TABLE t1 (i INT) ENGINE=InnoDB PARTITION BY KEY(i);
ALTER TABLE t1 ADD SYSTEM VERSIONING;
INSERT INTO t1 VALUES ();
 
# Cleanup
DROP TABLE t1;

bb-10.3-temporal 8e8363bb7540a

mysqld: /data/src/bb-10.3-temporal/storage/innobase/row/row0mysql.cc:1522: dberr_t row_insert_for_mysql(const byte*, row_prebuilt_t*, ins_mode_t): Assertion `t->mysql_col_len == 8' failed.
171214 14:08:53 [ERROR] mysqld got signal 6 ;
 
#7  0x00007f1504ab5ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x0000563aad968710 in row_insert_for_mysql (mysql_rec=0x7f14ac00ce88 "\363", prebuilt=0x7f14ac06e998, ins_mode=ROW_INS_VERSIONED) at /data/src/bb-10.3-temporal/storage/innobase/row/row0mysql.cc:1522
#9  0x0000563aad80c5e1 in ha_innobase::write_row (this=0x7f14ac06d958, record=0x7f14ac00ce88 "\363") at /data/src/bb-10.3-temporal/storage/innobase/handler/ha_innodb.cc:8403
#10 0x0000563aad4e1c55 in handler::ha_write_row (this=0x7f14ac06d958, buf=0x7f14ac00ce88 "\363") at /data/src/bb-10.3-temporal/sql/handler.cc:6110
#11 0x0000563aadc72604 in ha_partition::write_row (this=0x7f14ac00c608, buf=0x7f14ac00ce88 "\363") at /data/src/bb-10.3-temporal/sql/ha_partition.cc:4276
#12 0x0000563aad4e1c03 in handler::ha_write_row (this=0x7f14ac00c608, buf=0x7f14ac00ce88 "\363") at /data/src/bb-10.3-temporal/sql/handler.cc:6110
#13 0x0000563aad1c4797 in write_record (thd=0x7f14ac000b00, table=0x7f14ac00b9c0, info=0x7f14f8097350) at /data/src/bb-10.3-temporal/sql/sql_insert.cc:2036
#14 0x0000563aad1c1b7e in mysql_insert (thd=0x7f14ac000b00, table_list=0x7f14ac014d18, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at /data/src/bb-10.3-temporal/sql/sql_insert.cc:1079
#15 0x0000563aad1f7cde in mysql_execute_command (thd=0x7f14ac000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:4711
#16 0x0000563aad202468 in mysql_parse (thd=0x7f14ac000b00, rawbuf=0x7f14ac014c38 "INSERT INTO t1 VALUES ()", length=24, parser_state=0x7f14f80985f0, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:7984
#17 0x0000563aad1efbd4 in dispatch_command (command=COM_QUERY, thd=0x7f14ac000b00, packet=0x7f14ac160011 "INSERT INTO t1 VALUES ()", packet_length=24, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1829
#18 0x0000563aad1ee5f5 in do_command (thd=0x7f14ac000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1371
#19 0x0000563aad35464c in do_handle_one_connection (connect=0x563ab12687b0) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1420
#20 0x0000563aad3543d9 in handle_one_connection (arg=0x563ab12687b0) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1326
#21 0x0000563aad7ea456 in pfs_spawn_thread (arg=0x563ab1312030) at /data/src/bb-10.3-temporal/storage/perfschema/pfs.cc:1863
#22 0x00007f150678c494 in start_thread (arg=0x7f14f8099700) at pthread_create.c:333
#23 0x00007f1504b7293f in clone () from /lib/x86_64-linux-gnu/libc.so.6



 Comments   
Comment by Eugene Kosov (Inactive) [ 2017-12-15 ]

https://github.com/tempesta-tech/mariadb/commit/0e0f1126e6665a5f0277275929784a3081b23a22

Comment by Eugene Kosov (Inactive) [ 2017-12-18 ]

Fixed here https://github.com/MariaDB/server/commit/0e0f1126e6665a5f0277275929784a3081b23a22

Generated at Thu Feb 08 08:15:13 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.