Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
Description
# mysqld options required for replay: --sql_mode=
|
SET @@SESSION.max_sort_length=4;
|
CREATE TABLE t (c TIMESTAMP(1)) ENGINE=InnoDB;
|
INSERT INTO t VALUES(0);
|
DELETE FROM t ORDER BY c;
|
Leads to:
10.5.3 364e7a9ae6b5fbf69494cec30733b5ad28738cbb |
mysqld: /test/10.5_dbg/sql/field.h:3220: virtual void Field_timestamp_with_dec::sort_string(uchar*, uint): Assertion `length == pack_length()' failed.
|
10.5.3 364e7a9ae6b5fbf69494cec30733b5ad28738cbb |
Core was generated by `/test/MD110420-mariadb-10.5.3-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
[Current thread is 1 (Thread 0x7fdd7f90a700 (LWP 23456))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x0000557fbfd5e21e in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
|
#2 0x0000557fbf50408f in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:329
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
|
#5 0x00007fdd7e04e801 in __GI_abort () at abort.c:79
|
#6 0x00007fdd7e03e39a in __assert_fail_base (fmt=0x7fdd7e1c57d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x557fc00639b1 "length == pack_length()", file=file@entry=0x557fbfead529 "/test/10.5_dbg/sql/field.h", line=line@entry=3220, function=function@entry=0x557fc005d9e0 <Field_timestamp_with_dec::sort_string(unsigned char*, unsigned int)::__PRETTY_FUNCTION__> "virtual void Field_timestamp_with_dec::sort_string(uchar*, uint)") at assert.c:92
|
#7 0x00007fdd7e03e412 in __GI___assert_fail (assertion=assertion@entry=0x557fc00639b1 "length == pack_length()", file=file@entry=0x557fbfead529 "/test/10.5_dbg/sql/field.h", line=line@entry=3220, function=function@entry=0x557fc005d9e0 <Field_timestamp_with_dec::sort_string(unsigned char*, unsigned int)::__PRETTY_FUNCTION__> "virtual void Field_timestamp_with_dec::sort_string(uchar*, uint)") at assert.c:101
|
#8 0x0000557fbf4f63ec in Field_timestamp_with_dec::sort_string (this=0x7fdd5204a0c8, to=0x7fdd52173088 '\245' <repeats 200 times>..., length=4) at /test/10.5_dbg/sql/field.h:3220
|
#9 0x0000557fbf4de05c in Field::make_sort_key_part (this=this@entry=0x7fdd5204a0c8, buff=<optimized out>, buff@entry=0x7fdd52173088 '\245' <repeats 200 times>..., length=<optimized out>) at /test/10.5_dbg/sql/field.cc:1035
|
#10 0x0000557fbf4feaa9 in make_sortkey (to=0x7fdd52173088 '\245' <repeats 200 times>..., param=0x7fdd7f907a90) at /test/10.5_dbg/sql/filesort.cc:3004
|
#11 make_sortkey (param=param@entry=0x7fdd7f907a90, to=0x7fdd52173088 '\245' <repeats 200 times>..., ref_pos=ref_pos@entry=0x7fdd5204a3b0 "", using_packed_sortkeys=using_packed_sortkeys@entry=false) at /test/10.5_dbg/sql/filesort.cc:1338
|
#12 0x0000557fbf50272f in find_all_keys (found_rows=0x7fdd5214a5f0, pq=0x0, tempfile=0x7fdd7f907b30, buffpek_pointers=0x7fdd7f907ca0, fs_info=0x7fdd5214a400, select=0x0, param=0x7fdd7f907a90, thd=0x7fdd52015088) at /test/10.5_dbg/sql/filesort.cc:955
|
#13 filesort (thd=thd@entry=0x7fdd52015088, table=table@entry=0x7fdd520bf088, filesort=filesort@entry=0x7fdd7f908380, tracker=0x7fdd52074f18, join=join@entry=0x0, first_table_bit=first_table_bit@entry=0) at /test/10.5_dbg/sql/filesort.cc:356
|
#14 0x0000557fbf6c92a5 in mysql_delete (thd=thd@entry=0x7fdd52015088, table_list=0x7fdd52074180, conds=<optimized out>, order_list=order_list@entry=0x7fdd52019b30, limit=18446744073709551615, options=<optimized out>, result=0x0) at /test/10.5_dbg/sql/sql_delete.cc:636
|
#15 0x0000557fbf25c99b in mysql_execute_command (thd=thd@entry=0x7fdd52015088) at /test/10.5_dbg/sql/sql_parse.cc:4749
|
#16 0x0000557fbf2679d1 in mysql_parse (thd=thd@entry=0x7fdd52015088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7fdd7f909450, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:7953
|
#17 0x0000557fbf253719 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7fdd52015088, packet=packet@entry=0x7fdd52067089 "DELETE FROM t ORDER BY c", packet_length=packet_length@entry=24, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:1839
|
#18 0x0000557fbf251f6f in do_command (thd=0x7fdd52015088) at /test/10.5_dbg/sql/sql_parse.cc:1358
|
#19 0x0000557fbf3aca53 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x7fdd568433a8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1422
|
#20 0x0000557fbf3acd82 in handle_one_connection (arg=arg@entry=0x7fdd568433a8) at /test/10.5_dbg/sql/sql_connect.cc:1319
|
#21 0x0000557fbf80d080 in pfs_spawn_thread (arg=0x7fdd7d445888) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#22 0x00007fdd7ed316db in start_thread (arg=0x7fdd7f90a700) at pthread_create.c:463
|
#23 0x00007fdd7e12f88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.1.45 (dbg), 10.2.32 (dbg), 10.3.23 (dbg), 10.4.13 (dbg), 10.5.2 (dbg), 10.5.3 (dbg)
Bug confirmed not present in:
MariaDB: 10.1.45 (opt), 10.2.32 (opt), 10.3.23 (opt), 10.4.13 (opt), 10.5.2 (opt), 10.5.3 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.47 (dbg), 5.6.47 (opt), 5.7.29 (dbg), 5.7.29 (opt), 8.0.19 (dbg), 8.0.19 (opt)
Attachments
Issue Links
- relates to
-
MDEV-21831 Assertion `length == pack_length()' failed in Field_inet6::sort_string upon INSERT into RocksDB table
- Closed