Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL)
-
None
Description
See also MDEV-24933, a complementary item where a similar failure is reproducible on 10.3 but not higher, while here it is the other way round.
--source include/have_innodb.inc
|
|
CREATE TABLE t (pk INT, |
a TIME NOT NULL, |
b TIME AS (TIME(a)) VIRTUAL, |
c DATE, |
PRIMARY KEY (pk) |
) ENGINE=InnoDB;
|
INSERT INTO t (pk, a, c) VALUES |
(1,'20:10:06','2034-09-11'),(2,'10:33:45','1950-10-17'), |
(3,'23:54:10','1908-09-04'),(4,'15:51:17','1908-06-07'), |
(5,'16:01:21','2008-09-27'),(6,'00:37:51','1992-06-24'); |
CREATE VIEW v AS SELECT * FROM t; |
|
SELECT c, MIN(VALUE(b)) AS field4 FROM v GROUP BY c; |
|
# Cleanup
|
DROP VIEW v; |
DROP TABLE t; |
10.4 ce443c85 |
mysqld: /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_type.h:1561: void Time::valid_MYSQL_TIME_to_valid_value(THD*, int*, Time::Options): Assertion `is_valid_time_slow()' failed.
|
221030 21:14:46 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007ff3e298d662 in __GI___assert_fail (assertion=0x55555a353760 "is_valid_time_slow()", file=0x55555a3527e0 "/home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_type.h", line=1561, function=0x55555a3537c0 "void Time::valid_MYSQL_TIME_to_valid_value(THD*, int*, Time::Options)") at assert.c:101
|
#8 0x000055555897386c in Time::valid_MYSQL_TIME_to_valid_value (this=0x7ff3cc08cc80, thd=0x62b00009a208, warn=0x7ff3cc08c9a0, opt=...) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_type.h:1561
|
#9 0x000055555893eae9 in Time::make_from_item (this=0x7ff3cc08cc80, thd=0x62b00009a208, warn=0x7ff3cc08c9a0, item=0x6190000ea3c8, opt=...) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_type.cc:655
|
#10 0x00005555581598cc in Time::Time (this=0x7ff3cc08cc80, thd=0x62b00009a208, item=0x6190000ea3c8, opt=<error reading variable: Cannot access memory at address 0xffffffffffffffe0>) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_type.h:1620
|
#11 0x0000555558b4cd4a in Time::Time (this=0x7ff3cc08cc80, thd=0x62b00009a208, item=0x6190000ea3c8, opt=..., dec=0) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_type.h:1663
|
#12 0x0000555558e2e0cb in Item_time_typecast::get_date (this=0x61d0002490a8, thd=0x62b00009a208, to=0x7ff3cc08cc80, mode=...) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item_timefunc.cc:2460
|
#13 0x000055555897f4a8 in Item::get_time (this=0x61d0002490a8, thd=0x62b00009a208, ltime=0x7ff3cc08cc80) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item.h:1789
|
#14 0x0000555558bcfe2e in Item::save_time_in_field (this=0x61d0002490a8, field=0x6190000e9ed8, no_conversions=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item.cc:363
|
#15 0x0000555558950fa4 in Type_handler_time_common::Item_save_in_field (this=0x55555b2d5ce0 <type_handler_time2>, item=0x61d0002490a8, field=0x6190000e9ed8, no_conversions=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_type.cc:3794
|
#16 0x0000555558c03f2b in Item::save_in_field (this=0x61d0002490a8, field=0x6190000e9ed8, no_conversions=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item.cc:6714
|
#17 0x000055555873a534 in TABLE::update_virtual_fields (this=0x62000003c088, h=0x61d0002486a8, update_mode=VCOL_UPDATE_FOR_READ) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/table.cc:8593
|
#18 0x0000555558b97c18 in handler::ha_rnd_next (this=0x61d0002486a8, buf=0x6190000e9cb8 "\272\006") at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/handler.cc:2906
|
#19 0x0000555558fab49c in rr_sequential (info=0x6290002b9950) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/records.cc:485
|
#20 0x000055555825b74c in READ_RECORD::read_record (this=0x6290002b9950) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/records.h:70
|
#21 0x0000555558547f99 in sub_select (join=0x6290002b7228, join_tab=0x6290002b9888, end_of_records=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_select.cc:20748
|
#22 0x0000555558545ce4 in do_select (join=0x6290002b7228, procedure=0x0) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_select.cc:20263
|
#23 0x00005555584d59b2 in JOIN::exec_inner (this=0x6290002b7228) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_select.cc:4565
|
#24 0x00005555584d2ff5 in JOIN::exec (this=0x6290002b7228) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_select.cc:4347
|
#25 0x00005555584d704a in mysql_select (thd=0x62b00009a208, tables=0x62b0000a1d18, wild_num=0, fields=..., conds=0x0, og_num=1, order=0x0, group=0x62b0000a2560, having=0x0, proc_param=0x0, select_options=2147748608, result=0x62b0000a6eb8, unit=0x62b00009e140, select_lex=0x62b0000a1300) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_select.cc:4786
|
#26 0x00005555584a8504 in handle_select (thd=0x62b00009a208, lex=0x62b00009e080, result=0x62b0000a6eb8, setup_tables_done_option=0) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_select.cc:436
|
#27 0x000055555841a782 in execute_sqlcom_select (thd=0x62b00009a208, all_tables=0x62b0000a1d18) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_parse.cc:6450
|
#28 0x0000555558408152 in mysql_execute_command (thd=0x62b00009a208) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_parse.cc:3964
|
#29 0x000055555842378c in mysql_parse (thd=0x62b00009a208, rawbuf=0x62b0000a1228 "SELECT c, MIN(VALUE(b)) AS field4 FROM v GROUP BY c", length=51, parser_state=0x7ff3cc08f800, is_com_multi=false, is_next_command=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_parse.cc:7982
|
#30 0x00005555583fa731 in dispatch_command (command=COM_QUERY, thd=0x62b00009a208, packet=0x62900029e209 "", packet_length=51, is_com_multi=false, is_next_command=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_parse.cc:1857
|
#31 0x00005555583f72d0 in do_command (thd=0x62b00009a208) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_parse.cc:1378
|
#32 0x00005555587e5245 in do_handle_one_connection (connect=0x608000000fa8) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_connect.cc:1420
|
#33 0x00005555587e4b2b in handle_one_connection (arg=0x608000000fa8) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_connect.cc:1324
|
#34 0x0000555559420c91 in pfs_spawn_thread (arg=0x615000007b08) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/storage/perfschema/pfs.cc:1869
|
#35 0x00007ff3e2e6bea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#36 0x00007ff3e2a58aef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
As said above, reproducible on 10.4+, not reproducible on 10.3.
Non-debug build returns a result set:
c field4
|
1908-06-07 NULL |
1908-09-04 NULL |
1950-10-17 NULL |
1992-06-24 NULL |
2008-09-27 NULL |
2034-09-11 NULL |
Attachments
Issue Links
- relates to
-
MDEV-24933 Assertion `is_valid_time_slow()' failed in Time::valid_MYSQL_TIME_to_valid_value
- Closed