Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.11, 11.1(EOL), 11.2(EOL), 11.4, 11.6(EOL), 11.7(EOL)
Description
# mysqld options required for replay: --log-bin |
CREATE DATABASE db CHARACTER SET filename; |
USE db; |
CREATE TABLE t1 (a CHAR(209)) ENGINE=InnoDB; |
CREATE TABLE t2 (c INT) ENGINE=InnoDB; |
CREATE TEMPORARY TABLE t3 (c INT) ENGINE=InnoDB; |
SELECT * FROM t2 GROUP BY abc LIMIT 1; # ERROR 1054 (42S22): Unknown column 'abc' in 'group statement' |
INSERT INTO t1 VALUES (0); |
Leads to:
10.6.2 6c39eaeb126328e7813b146ecf652d51e4508981 (Debug) |
mysqld: /test/10.6_dbg/sql/field.cc:7680: Binlog_type_info_fixed_string::Binlog_type_info_fixed_string(uchar, uint32, CHARSET_INFO*): Assertion `octets < 1024' failed.
|
10.6.2 6c39eaeb126328e7813b146ecf652d51e4508981 (Debug) |
Core was generated by `/test/MD120621-mariadb-10.6.2-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 0x15321804c700 (LWP 2209916))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x000015321a058859 in __GI_abort () at abort.c:79
|
#2 0x000015321a058729 in __assert_fail_base (fmt=0x15321a1ee588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5570a8f1a2b2 "octets < 1024", file=0x5570a8f19f43 "/test/10.6_dbg/sql/field.cc", line=7680, function=<optimized out>) at assert.c:92
|
#3 0x000015321a069f36 in __GI___assert_fail (assertion=assertion@entry=0x5570a8f1a2b2 "octets < 1024", file=file@entry=0x5570a8f19f43 "/test/10.6_dbg/sql/field.cc", line=line@entry=7680, function=function@entry=0x5570a8f1ce10 "Binlog_type_info_fixed_string::Binlog_type_info_fixed_string(uchar, uint32, CHARSET_INFO*)") at assert.c:101
|
#4 0x00005570a839fc59 in Binlog_type_info_fixed_string::Binlog_type_info_fixed_string (this=0x15321804a290, type_code=<optimized out>, octets=1045, cs=<optimized out>) at /test/10.6_dbg/sql/field.cc:7680
|
#5 0x00005570a839fd2c in Field_string::binlog_type_info (this=0x1531c807cb48) at /test/10.6_dbg/sql/field.h:1256
|
#6 0x00005570a85585d1 in Table_map_log_event::Table_map_log_event (this=0x15321804a400, thd=<optimized out>, tbl=0x1531c807a358, tid=<optimized out>, is_transactional=<optimized out>) at /test/10.6_dbg/sql/log_event_server.cc:6254
|
#7 0x00005570a8530b61 in THD::binlog_write_table_map (this=this@entry=0x1531c8000db8, table=table@entry=0x1531c807a358, with_annotate=with_annotate@entry=true) at /test/10.6_dbg/sql/log.cc:6050
|
#8 0x00005570a8530f75 in THD::binlog_write_table_maps (this=this@entry=0x1531c8000db8) at /test/10.6_dbg/sql/log.cc:6002
|
#9 0x00005570a83d6a5b in handler::binlog_log_row (this=this@entry=0x1531c807cfa0, table=0x1531c807a358, before_record=before_record@entry=0x0, after_record=after_record@entry=0x1531c807d800 "\375\060", ' ' <repeats 198 times>..., log_func=log_func@entry=0x5570a83deda9 <Write_rows_log_event::binlog_row_logging_function(THD*, TABLE*, bool, unsigned char const*, unsigned char const*)>) at /test/10.6_dbg/sql/handler.cc:6964
|
#10 0x00005570a83d8954 in handler::ha_write_row (this=0x1531c807cfa0, buf=0x1531c807d800 "\375\060", ' ' <repeats 198 times>...) at /test/10.6_dbg/sql/handler.cc:7496
|
#11 0x00005570a80a1f56 in write_record (thd=thd@entry=0x1531c8000db8, table=table@entry=0x1531c807a358, info=info@entry=0x15321804acb0, sink=sink@entry=0x0) at /test/10.6_dbg/sql/sql_insert.cc:2113
|
#12 0x00005570a80adadc in mysql_insert (thd=thd@entry=0x1531c8000db8, table_list=0x1531c80141a8, fields=@0x1531c8005fd8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x5570a96dbf80 <end_of_list>, last = 0x1531c8005fd8, elements = 0}, <No data fields>}, values_list=@0x1531c8006020: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x1531c8014db0, last = 0x1531c8014db0, elements = 1}, <No data fields>}, update_fields=@0x1531c8006008: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x5570a96dbf80 <end_of_list>, last = 0x1531c8006008, elements = 0}, <No data fields>}, update_values=@0x1531c8005ff0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x5570a96dbf80 <end_of_list>, last = 0x1531c8005ff0, elements = 0}, <No data fields>}, duplic=DUP_ERROR, ignore=false, result=0x0) at /test/10.6_dbg/sql/sql_insert.cc:1104
|
#13 0x00005570a80f3d38 in mysql_execute_command (thd=thd@entry=0x1531c8000db8) at /test/10.6_dbg/sql/sql_parse.cc:4556
|
#14 0x00005570a80de890 in mysql_parse (thd=thd@entry=0x1531c8000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x15321804b400) at /test/10.6_dbg/sql/sql_parse.cc:8016
|
#15 0x00005570a80ed3fa in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x1531c8000db8, packet=packet@entry=0x1531c800b889 "INSERT INTO t1 VALUES (0)", packet_length=packet_length@entry=25, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1340
|
#16 0x00005570a80f07da in do_command (thd=0x1531c8000db8, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1406
|
#17 0x00005570a8254c8e in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5570ac1b3e58, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1410
|
#18 0x00005570a8255293 in handle_one_connection (arg=arg@entry=0x5570ac1b3e58) at /test/10.6_dbg/sql/sql_connect.cc:1312
|
#19 0x00005570a8703166 in pfs_spawn_thread (arg=0x5570ac083e28) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
|
#20 0x000015321a566609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#21 0x000015321a155293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.2.38 (dbg), 10.3.29 (dbg), 10.4.19 (dbg), 10.5.10 (dbg), 10.6.2 (dbg)
MySQL: 5.5.62 (dbg), 5.6.51 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.38 (opt), 10.3.29 (opt), 10.4.19 (opt), 10.5.10 (opt), 10.6.2 (opt)
MySQL: 5.5.62 (opt), 5.6.51 (opt), 5.7.34 (dbg), 5.7.34 (opt), 8.0.24 (dbg), 8.0.24 (opt)
This (the original t/c above) produces a different assert in 10.4:
10.4.19 9e6310e323a3abd411f852ff57fe41c9f149ff3a (Debug)
mysqld: /test/10.4_dbg/sql/field.cc:7639: virtual int Field_string::save_field_metadata(uchar*): Assertion `field_length < 1024' failed.
10.4.19 9e6310e323a3abd411f852ff57fe41c9f149ff3a (Debug)
Core was generated by `/test/MD270421-mariadb-10.4.19-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 0x155284051700 (LWP 266294))]
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x0000155285e6d859 in __GI_abort () at abort.c:79
#2 0x0000155285e6d729 in __assert_fail_base (fmt=0x155286003588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55578180798a "field_length < 1024", file=0x5557818075a4 "/test/10.4_dbg/sql/field.cc", line=7639, function=<optimized out>) at assert.c:92
#3 0x0000155285e7ef36 in __GI___assert_fail (assertion=assertion@entry=0x55578180798a "field_length < 1024", file=file@entry=0x5557818075a4 "/test/10.4_dbg/sql/field.cc", line=line@entry=7639, function=function@entry=0x55578180a358 "virtual int Field_string::save_field_metadata(uchar*)") at assert.c:101
#4 0x0000555780ca8176 in Field_string::save_field_metadata (this=0x155220076d60, metadata_ptr=0x1552200079d8 "") at /test/10.4_dbg/sql/field.cc:7639
#5 0x0000555780e40dd2 in Table_map_log_event::save_field_metadata (this=this@entry=0x15528404e580) at /test/10.4_dbg/sql/log_event.cc:12527
#6 0x0000555780e595c1 in Table_map_log_event::Table_map_log_event (this=0x15528404e580, thd=<optimized out>, tbl=<optimized out>, tid=<optimized out>, is_transactional=<optimized out>) at /test/10.4_dbg/sql/log_event.cc:12609
#7 0x0000555780e3c48f in THD::binlog_write_table_map (this=this@entry=0x155220000d90, table=table@entry=0x155220078ed0, is_transactional=true, with_annotate=with_annotate@entry=0x15528404e6ef "\001") at /test/10.4_dbg/sql/log.cc:5840
#8 0x0000555780cdf297 in write_locked_table_maps (thd=0x155220000d90) at /test/10.4_dbg/sql/handler.cc:6385
#9 binlog_log_row_internal (log_func=0x555780ce6d4f <Write_rows_log_event::binlog_row_logging_function(THD*, TABLE*, bool, unsigned char const*, unsigned char const*)>, after_record=0x15522007a528 "\375\060", ' ' <repeats 198 times>..., before_record=0x0, table=0x155220078ed0) at /test/10.4_dbg/sql/handler.cc:6413
#10 binlog_log_row (table=0x155220078ed0, before_record=before_record@entry=0x0, after_record=after_record@entry=0x15522007a528 "\375\060", ' ' <repeats 198 times>..., log_func=log_func@entry=0x555780ce6d4f <Write_rows_log_event::binlog_row_logging_function(THD*, TABLE*, bool, unsigned char const*, unsigned char const*)>) at /test/10.4_dbg/sql/handler.cc:6446
#11 0x0000555780cdfe24 in handler::ha_write_row (this=0x155220079d38, buf=0x15522007a528 "\375\060", ' ' <repeats 198 times>...) at /test/10.4_dbg/sql/handler.cc:6764
#12 0x00005557809b25fa in write_record (thd=thd@entry=0x155220000d90, table=table@entry=0x155220078ed0, info=info@entry=0x15528404e9d0) at /test/10.4_dbg/sql/sql_insert.cc:2060
#13 0x00005557809bed16 in mysql_insert (thd=thd@entry=0x155220000d90, table_list=0x155220013400, fields=@0x155220005b98: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x555781f6df80 <end_of_list>, last = 0x155220005b98, elements = 0}, <No data fields>}, values_list=@0x155220005be0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x155220014010, last = 0x155220014010, elements = 1}, <No data fields>}, update_fields=@0x155220005bc8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x555781f6df80 <end_of_list>, last = 0x155220005bc8, elements = 0}, <No data fields>}, update_values=@0x155220005bb0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x555781f6df80 <end_of_list>, last = 0x155220005bb0, elements = 0}, <No data fields>}, duplic=DUP_ERROR, ignore=false) at /test/10.4_dbg/sql/sql_insert.cc:1078
#14 0x00005557809f94d3 in mysql_execute_command (thd=thd@entry=0x155220000d90) at /test/10.4_dbg/sql/sql_parse.cc:4603
#15 0x0000555780a0127a in mysql_parse (thd=thd@entry=0x155220000d90, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x155284050490, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_parse.cc:7995
#16 0x0000555780a03bf1 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x155220000d90, packet=packet@entry=0x15522001a451 "INSERT INTO t1 VALUES (0)", packet_length=packet_length@entry=25, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_class.h:1183
#17 0x0000555780a0746d in do_command (thd=0x155220000d90) at /test/10.4_dbg/sql/sql_parse.cc:1373
#18 0x0000555780b414e8 in do_handle_one_connection (connect=connect@entry=0x555784ac10a0) at /test/10.4_dbg/sql/sql_connect.cc:1412
#19 0x0000555780b41607 in handle_one_connection (arg=0x555784ac10a0) at /test/10.4_dbg/sql/sql_connect.cc:1316
#20 0x000015528637b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#21 0x0000155285f6a293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
And MySQL 5.5 and 5.6 produce a different assert again:
MySQL 5.6 (Debug)
InnoDB: Failing assertion: *mbmaxlen < 5
MySQL 5.6 (Debug)
Core was generated by `/test/MS280421-mysql-5.6.51-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 0x150aa0dc5700 (LWP 272171))]
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x0000150ac7537859 in __GI_abort () at abort.c:79
#2 0x000055b4a241ee3a in innobase_get_cset_width (cset=cset@entry=17, mbminlen=mbminlen@entry=0x150aa0dc0758, mbmaxlen=mbmaxlen@entry=0x150aa0dc0760) at /test/5.6_dbg/storage/innobase/handler/ha_innodb.cc:1747
#3 0x000055b4a26a5582 in dtype_get_mblen (mbmaxlen=0x150aa0dc0760, mbminlen=0x150aa0dc0758, prtype=1114366, mtype=94234307351938) at /test/5.6_dbg/storage/innobase/include/data0type.ic:103
#4 dict_mem_fill_column_struct (column=0x150a74049e68, col_pos=col_pos@entry=0, mtype=mtype@entry=13, prtype=prtype@entry=1114366, col_len=col_len@entry=1045) at /test/5.6_dbg/storage/innobase/dict/dict0mem.cc:510
#5 0x000055b4a26a574d in dict_mem_table_add_col (table=table@entry=0x150a74049c08, heap=heap@entry=0x150a7404a310, name=0x150a7401f919 "a", mtype=mtype@entry=13, prtype=<optimized out>, len=len@entry=1045) at /test/5.6_dbg/storage/innobase/dict/dict0mem.cc:270
#6 0x000055b4a2433345 in create_table_def (trx=trx@entry=0x150a74048b08, form=form@entry=0x150aa0dc1530, table_name=<optimized out>, table_name@entry=0x150aa0dc0b50 "db/t1", temp_path=temp_path@entry=0x150aa0dc0d50 "", remote_path=remote_path@entry=0x150aa0dc0f50 "", flags=1, flags2=80) at /test/5.6_dbg/storage/innobase/handler/ha_innodb.cc:8868
#7 0x000055b4a2433965 in ha_innobase::create (this=<optimized out>, name=<optimized out>, form=0x150aa0dc1530, create_info=0x150aa0dc3740) at /test/5.6_dbg/storage/innobase/handler/ha_innodb.cc:9791
#8 0x000055b4a2009f65 in handler::ha_create (this=0x150a74020320, name=0x150aa0dc3350 "./db/t1", form=form@entry=0x150aa0dc1530, info=info@entry=0x150aa0dc3740) at /test/5.6_dbg/sql/handler.cc:4541
#9 0x000055b4a200a6f4 in ha_create_table (thd=thd@entry=0x55b4a39acec0, path=path@entry=0x150aa0dc3350 "./db/t1", db=db@entry=0x150a740058d8 "db", table_name=table_name@entry=0x150a74005340 "t1", create_info=create_info@entry=0x150aa0dc3740, update_create_info=update_create_info@entry=false, is_temp_table=false) at /test/5.6_dbg/sql/handler.cc:4785
#10 0x000055b4a222514d in rea_create_table (thd=thd@entry=0x55b4a39acec0, path=path@entry=0x150aa0dc3350 "./db/t1", db=db@entry=0x150a740058d8 "db", table_name=table_name@entry=0x150a74005340 "t1", create_info=create_info@entry=0x150aa0dc3740, create_fields=@0x150aa0dc36f8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x150a740059b0, last = 0x150a740059b0, elements = 1}, <No data fields>}, keys=0, key_info=0x150a74005ed8, file=0x150a74005c10, no_ha_table=false) at /test/5.6_dbg/sql/unireg.cc:552
#11 0x000055b4a21ceacc in create_table_impl (thd=thd@entry=0x55b4a39acec0, db=db@entry=0x150a740058d8 "db", table_name=table_name@entry=0x150a74005340 "t1", error_table_name=error_table_name@entry=0x150a74005340 "t1", path=path@entry=0x150aa0dc3350 "./db/t1", create_info=create_info@entry=0x150aa0dc3740, alter_info=0x150aa0dc36b0, internal_tmp_table=false, select_field_count=0, no_ha_table=false, is_trans=0x150aa0dc35b3, key_info=0x150aa0dc3348, key_count=0x150aa0dc3344) at /test/5.6_dbg/sql/sql_table.cc:5015
#12 0x000055b4a21cef65 in mysql_create_table_no_lock (thd=thd@entry=0x55b4a39acec0, db=0x150a740058d8 "db", table_name=0x150a74005340 "t1", create_info=create_info@entry=0x150aa0dc3740, alter_info=alter_info@entry=0x150aa0dc36b0, select_field_count=select_field_count@entry=0, is_trans=0x150aa0dc35b3) at /test/5.6_dbg/sql/sql_table.cc:5131
#13 0x000055b4a21cf0b6 in mysql_create_table (thd=thd@entry=0x55b4a39acec0, create_table=create_table@entry=0x150a74005378, create_info=create_info@entry=0x150aa0dc3740, alter_info=alter_info@entry=0x150aa0dc36b0) at /test/5.6_dbg/sql/sql_table.cc:5180
#14 0x000055b4a2173535 in mysql_execute_command (thd=thd@entry=0x55b4a39acec0) at /test/5.6_dbg/sql/sql_parse.cc:3142
#15 0x000055b4a217a94e in mysql_parse (thd=thd@entry=0x55b4a39acec0, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x150aa0dc45d0) at /test/5.6_dbg/sql/sql_parse.cc:6538
#16 0x000055b4a217c65a in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x55b4a39acec0, packet=packet@entry=0x55b4a3a8e491 "CREATE TABLE t1 (a CHAR(209)) ENGINE=InnoDB", packet_length=packet_length@entry=43) at /test/5.6_dbg/sql/sql_class.h:888
#17 0x000055b4a217e56a in do_command (thd=0x55b4a39acec0) at /test/5.6_dbg/sql/sql_parse.cc:1070
#18 0x000055b4a213d7c7 in do_handle_one_connection (thd_arg=thd_arg@entry=0x55b4a39acec0) at /test/5.6_dbg/sql/sql_connect.cc:989
#19 0x000055b4a213d8ab in handle_one_connection (arg=arg@entry=0x55b4a39acec0) at /test/5.6_dbg/sql/sql_connect.cc:906
#20 0x000055b4a279cf8b in pfs_spawn_thread (arg=0x55b4a3962d90) at /test/5.6_dbg/storage/perfschema/pfs.cc:1868
#21 0x0000150ac7a58609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#22 0x0000150ac7634293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95