[MDEV-19365] Assertion failure in LONG Unique after 10.3 merge Created: 2019-04-30  Updated: 2020-05-26  Resolved: 2020-05-26

Status: Closed
Project: MariaDB Server
Component/s: Server
Affects Version/s: 10.4
Fix Version/s: 10.4.9, 10.5.0

Type: Bug Priority: Major
Reporter: Sachin Setiya (Inactive) Assignee: Sachin Setiya (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

It fails because while calling ha_index_init it , inited is RND instead of NONE

CURRENT_TEST: main.long_unique_bugs
mysqltest: At line 74: query 'replace into t values ('foo')' failed: 2013: Lost connection to MySQL server during query

#6  0x00007f04a58c50f2 in __GI___assert_fail (assertion=0x55d2a8932146 "inited==NONE", file=0x55d2a893212a "/mariadb/10.4/sql/handler.h", line=3172, function=0x55d2a8932153 "int handler::ha_index_init(uint, bool)") at assert.c:101
#7  0x000055d2a7ef5ac6 in handler::ha_index_init (this=0x7f042c128010, idx=0, sorted=<optimized out>) at /mariadb/10.4/sql/handler.h:3172
#8  0x000055d2a81dfedb in check_duplicate_long_entry_key (table=0x7f042c127218, h=0x7f042c128010, new_rec=0x7f042c110c68 "\374\003", key_no=0) at /mariadb/10.4/sql/handler.cc:6407
#9  0x000055d2a81dccbf in check_duplicate_long_entries (table=0x7f042c127218, h=0x7f042c128010, new_rec=<optimized out>) at /mariadb/10.4/sql/handler.cc:6482
#10 handler::ha_write_row (this=0x7f042c128010, buf=0x7f042c110c68 "\374\003") at /mariadb/10.4/sql/handler.cc:6561
#11 0x000055d2a7f3dea2 in write_record (thd=0x7f042c000cf8, table=0x7f042c127218, info=0x7f049a638db0) at /mariadb/10.4/sql/sql_insert.cc:1711
#12 0x000055d2a7f3b7a7 in mysql_insert (thd=<optimized out>, table_list=<optimized out>, fields=..., values_list=..., update_fields=..., update_values=..., duplic=<optimized out>, ignore=<optimized out>) at /mariadb/10.4/sql/sql_insert.cc:1075
#13 0x000055d2a7f79744 in mysql_execute_command (thd=0x7f042c000cf8) at /mariadb/10.4/sql/sql_parse.cc:4786
#14 0x000055d2a7f6fc6a in mysql_parse (thd=0x7f042c000cf8, rawbuf=0x7f042c014850 "replace into t values ('foo')", length=<optimized out>, parser_state=0x7f049a63a280, is_com_multi=<optimized out>, is_next_command=<optimized out>) at /mariadb/10.4/sql/sql_parse.cc:8150



 Comments   
Comment by Sachin Setiya (Inactive) [ 2020-05-26 ]

Already fixed in 10.4 10.5

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