|
Different testcase with different stack, same assert
SET SQL_MODE='';
|
CREATE TABLE t (a INT AS (b + 1), b INT, row_start BIGINT UNSIGNED AS ROW START INVISIBLE, row_end BIGINT UNSIGNED AS ROW END INVISIBLE, PERIOD FOR system_time (row_start, row_end)) WITH SYSTEM VERSIONING;
|
INSERT INTO test.t (a) VALUES (poINT (1,1));
|
SELECT * FROM t FOR system_time FROM '0-0-0' TO CURRENT_TIMESTAMP(6);
|
Leads to:
|
10.5.6 2bac9782aa81ad386beaf00eb126ccf2d15031a1 (Debug)
|
mysqld: /test/10.5_dbg/sql/sql_type.h:2249: bool Datetime::is_valid_datetime_slow() const: Assertion `time_type == MYSQL_TIMESTAMP_DATETIME' failed.
|
|
10.5.6 2bac9782aa81ad386beaf00eb126ccf2d15031a1 (Debug)
|
Core was generated by `/test/MD150920-mariadb-10.5.6-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 0x150e6765a700 (LWP 2966268))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x000055785bb9085a in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:424
|
#2 0x000055785b3573a9 in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:330
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
|
#5 0x0000150e658f08b1 in __GI_abort () at abort.c:79
|
#6 0x0000150e658e042a in __assert_fail_base (fmt=0x150e65a67a38 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55785bce9c90 "time_type == MYSQL_TIMESTAMP_DATETIME", file=file@entry=0x55785bce9b3f "/test/10.5_dbg/sql/sql_type.h", line=line@entry=2249, function=function@entry=0x55785bd37040 <_ZZNK8Datetime22is_valid_datetime_slowEvE19__PRETTY_FUNCTION__> "bool Datetime::is_valid_datetime_slow() const") at assert.c:92
|
#7 0x0000150e658e04a2 in __GI___assert_fail (assertion=assertion@entry=0x55785bce9c90 "time_type == MYSQL_TIMESTAMP_DATETIME", file=file@entry=0x55785bce9b3f "/test/10.5_dbg/sql/sql_type.h", line=line@entry=2249, function=function@entry=0x55785bd37040 <_ZZNK8Datetime22is_valid_datetime_slowEvE19__PRETTY_FUNCTION__> "bool Datetime::is_valid_datetime_slow() const") at assert.c:101
|
#8 0x000055785b1bb17c in Datetime::is_valid_datetime_slow (this=0x150e676572c0) at /test/10.5_dbg/sql/sql_type.h:2249
|
#9 Datetime::Datetime (from=0x150e67657b70, this=0x150e676572c0) at /test/10.5_dbg/sql/sql_type.h:2401
|
#10 TR_table::query (this=this@entry=0x150e67657440, commit_time=@0x150e67657b70: {year = 0, month = 0, day = 0, hour = 0, minute = 0, second = 0, second_part = 0, neg = 0 '\000', time_type = MYSQL_TIMESTAMP_DATE}, backwards=backwards@entry=true) at /test/10.5_dbg/sql/table.cc:9603
|
#11 0x000055785b2aa93b in Item_func_trt_id::get_by_commit_ts (this=this@entry=0x150e43076140, commit_ts=@0x150e67657b70: {year = 0, month = 0, day = 0, hour = 0, minute = 0, second = 0, second_part = 0, neg = 0 '\000', time_type = MYSQL_TIMESTAMP_DATE}, backwards=true) at /test/10.5_dbg/sql/item_vers.cc:120
|
#12 0x000055785b2aab3e in Item_func_trt_id::val_int (this=0x150e43076140) at /test/10.5_dbg/sql/item_vers.cc:154
|
#13 0x000055785afb5bad in Item::val_int_result (this=<optimized out>) at /test/10.5_dbg/sql/item.h:1565
|
#14 0x000055785b376f04 in Item_cache_int::cache_value (this=0x150e43078b90) at /test/10.5_dbg/sql/item.cc:9840
|
#15 0x000055785b376fab in Item_cache::has_value (this=0x150e43078b90) at /test/10.5_dbg/sql/item.h:6801
|
#16 Item_cache_int::val_int (this=0x150e43078b90) at /test/10.5_dbg/sql/item.cc:9873
|
#17 0x000055785b2aa08c in Item::val_uint (this=<optimized out>) at /test/10.5_dbg/sql/item.h:1288
|
#18 Item_func_trt_trx_sees::val_int (this=0x150e430763b8) at /test/10.5_dbg/sql/item_vers.cc:174
|
#19 0x000055785b27a0e0 in Type_handler_int_result::Item_val_bool (this=<optimized out>, item=<optimized out>) at /test/10.5_dbg/sql/sql_type.cc:5019
|
#20 0x000055785afb5b30 in Item::val_bool (this=0x150e430763b8) at /test/10.5_dbg/sql/item.h:1483
|
#21 0x000055785b3a33fb in Item_cond_and::val_int (this=0x150e43078e20) at /test/10.5_dbg/sql/item_cmpfunc.cc:5427
|
#22 0x000055785b0e3c9f in evaluate_join_record (join=join@entry=0x150e43075920, join_tab=join_tab@entry=0x150e43078250, error=error@entry=0) at /test/10.5_dbg/sql/sql_select.cc:20735
|
#23 0x000055785b0eb20b in sub_select (join=0x150e43075920, join_tab=0x150e43078250, end_of_records=<optimized out>) at /test/10.5_dbg/sql/sql_select.cc:20637
|
#24 0x000055785b125476 in do_select (procedure=0x0, join=0x150e43075920) at /test/10.5_dbg/sql/sql_select.cc:20171
|
#25 JOIN::exec_inner (this=this@entry=0x150e43075920) at /test/10.5_dbg/sql/sql_select.cc:4455
|
#26 0x000055785b125a91 in JOIN::exec (this=this@entry=0x150e43075920) at /test/10.5_dbg/sql/sql_select.cc:4236
|
#27 0x000055785b123d8d in mysql_select (thd=thd@entry=0x150e43015088, tables=<optimized out>, fields=@0x150e430742e0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x150e43074740, last = 0x150e43076c00, elements = 2}, <No data fields>}, conds=0x0, og_num=0, order=<optimized out>, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x150e430758f8, unit=0x150e43019220, select_lex=0x150e43074190) at /test/10.5_dbg/sql/sql_select.cc:4663
|
#28 0x000055785b1240bc in handle_select (thd=thd@entry=0x150e43015088, lex=lex@entry=0x150e43019158, result=result@entry=0x150e430758f8, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.5_dbg/sql/sql_select.cc:417
|
#29 0x000055785b0ab348 in execute_sqlcom_select (thd=thd@entry=0x150e43015088, all_tables=0x150e43074928) at /test/10.5_dbg/sql/sql_parse.cc:6210
|
#30 0x000055785b0a441c in mysql_execute_command (thd=thd@entry=0x150e43015088) at /test/10.5_dbg/sql/sql_parse.cc:3932
|
#31 0x000055785b0b1324 in mysql_parse (thd=thd@entry=0x150e43015088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x150e67659350, 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:7994
|
#32 0x000055785b09dd54 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x150e43015088, packet=packet@entry=0x150e43067089 "", packet_length=packet_length@entry=68, 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:1867
|
#33 0x000055785b09c53e in do_command (thd=0x150e43015088) at /test/10.5_dbg/sql/sql_parse.cc:1348
|
#34 0x000055785b1fb893 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x150e464d4808, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1410
|
#35 0x000055785b1fbfb7 in handle_one_connection (arg=arg@entry=0x150e464d4808) at /test/10.5_dbg/sql/sql_connect.cc:1312
|
#36 0x000055785b6665c2 in pfs_spawn_thread (arg=0x150e64446508) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#37 0x0000150e665d36db in start_thread (arg=0x150e6765a700) at pthread_create.c:463
|
#38 0x0000150e659d1a3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.4.15 (dbg), 10.5.6 (dbg)
Bug confirmed not present in:
MariaDB: 10.1.47 (dbg), 10.1.47 (opt), 10.2.34 (dbg), 10.2.34 (opt), 10.3.25 (dbg), 10.3.25 (opt), 10.4.15 (opt), 10.5.6 (opt), 10.6.0 (dbg), 10.6.0 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.49 (dbg), 5.6.49 (opt), 5.7.31 (dbg), 5.7.31 (opt), 8.0.21 (dbg), 8.0.21 (opt)
sanja Please let me know if you consider this a different bug altogether.
|