Bug #111983 | Assertion failed in field.cc:4963: virtual longlong Field_temporal_with_date_and | ||
---|---|---|---|
Submitted: | 7 Aug 2023 3:10 | Modified: | 7 Aug 2023 8:53 |
Reporter: | QI XIAODONG | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S6 (Debug Builds) |
Version: | 8.1.0, 8.0.34 | OS: | Ubuntu |
Assigned to: | CPU Architecture: | Any |
[7 Aug 2023 3:10]
QI XIAODONG
[7 Aug 2023 3:11]
QI XIAODONG
case.sql
Attachment: case14.sql (application/octet-stream, text), 33.38 KiB.
[7 Aug 2023 8:53]
MySQL Verification Team
Hello QI XIAODONG, Thank you for the report and test case. Observed that only debug build is affected. regards, Umesh
[7 Aug 2023 8:54]
MySQL Verification Team
- 8.0.34 debug build with provided test case (gdb) bt #0 0x00007fb39ac27aa1 in pthread_kill () from /lib64/libpthread.so.0 #1 0x000000000402c28e in my_write_core(int) () #2 0x00000000032d235e in handle_fatal_signal () #3 <signal handler called> #4 0x00007fb398f72387 in raise () from /lib64/libc.so.6 #5 0x00007fb398f73a78 in abort () from /lib64/libc.so.6 #6 0x00007fb398f6b1a6 in __assert_fail_base () from /lib64/libc.so.6 #7 0x00007fb398f6b252 in __assert_fail () from /lib64/libc.so.6 #8 0x00000000033c1ada in Field_temporal_with_date_and_timef::val_int() const () #9 0x0000000003414391 in Item_field::val_int() () #10 0x00000000034b4147 in Item_func_make_set::val_str(String*) () #11 0x000000000341b384 in Item::evaluate(THD*, String*) () #12 0x000000000341b4c2 in Item::update_null_value() () #13 0x000000000309dcf3 in Item_func::is_null() () #14 0x0000000003416727 in Item_view_ref::is_null() () #15 0x0000000003436f7a in Item_func_isnull::resolve_type(THD*) () #16 0x000000000347b300 in Item_func::fix_fields(THD*, Item**) () #17 0x000000000343ae39 in Item_func_isnull::fix_fields(THD*, Item**) () #18 0x00000000034440e0 in Item_cond::fix_fields(THD*, Item**) () #19 0x000000000347b10b in Item_func::fix_func_arg(THD*, Item**) () #20 0x000000000347b2ee in Item_func::fix_fields(THD*, Item**) () #21 0x0000000003432910 in Item_func_case::fix_fields(THD*, Item**) () #22 0x00000000030a9f4a in setup_fields(THD*, unsigned long, bool, bool, bool, mem_root_deque<Item*> const*, mem_root_deque<Item*>*, Bounds_checked_array<Item*>) () #23 0x00000000031aa0c9 in Query_block::prepare(THD*, mem_root_deque<Item*>*) () #24 0x000000000322bc7b in Query_expression::prepare(THD*, Query_result*, mem_root_deque<Item*>*, unsigned long long, unsigned long long) () #25 0x0000000003619b29 in Table_ref::resolve_derived(THD*, bool) () #26 0x000000000319e256 in Query_block::resolve_placeholder_tables(THD*, bool) () #27 0x00000000031a9f3e in Query_block::prepare(THD*, mem_root_deque<Item*>*) () #28 0x000000000322bc7b in Query_expression::prepare(THD*, Query_result*, mem_root_deque<Item*>*, unsigned long long, unsigned long long) () #29 0x00000000034c6300 in SubqueryWithResult::prepare(THD*) () #30 0x00000000034cc86c in Item_subselect::fix_fields(THD*, Item**) () #31 0x00000000034440e0 in Item_cond::fix_fields(THD*, Item**) () #32 0x00000000031a590a in Query_block::setup_join_cond(THD*, mem_root_deque<Table_ref*>*, bool) [clone .localalias] () #33 0x00000000031a5a78 in Query_block::setup_join_cond(THD*, mem_root_deque<Table_ref*>*, bool) [clone .localalias] () #34 0x00000000031a5d3c in Query_block::setup_conds(THD*) () #35 0x00000000031aa144 in Query_block::prepare(THD*, mem_root_deque<Item*>*) () #36 0x00000000031b6a51 in Sql_cmd_select::prepare_inner(THD*) () #37 0x00000000031c05c5 in Sql_cmd_dml::prepare(THD*) () #38 0x00000000031c08ed in Sql_cmd_dml::execute(THD*) () #39 0x0000000003161263 in mysql_execute_command(THD*, bool) () #40 0x00000000031626a2 in dispatch_sql_command(THD*, Parser_state*) () #41 0x0000000003163cd5 in dispatch_command(THD*, COM_DATA const*, enum_server_command) () #42 0x000000000316596c in do_command(THD*) () #43 0x00000000032c437c in handle_connection () #44 0x00000000047e1af5 in pfs_spawn_thread () #45 0x00007fb39ac22ea5 in start_thread () from /lib64/libpthread.so.0 #46 0x00007fb39903ab2d in clone () from /lib64/libc.so.6 (gdb)