[MDEV-17818] Server crashes in parse_vcol_defs upon opening a temporary table Created: 2018-11-23  Updated: 2023-09-02  Resolved: 2023-09-02

Status: Closed
Project: MariaDB Server
Component/s: Data Definition - Temporary, Virtual Columns
Affects Version/s: 10.2, 10.3, 10.4
Fix Version/s: 10.3.35, 10.4.25, 10.5.16, 10.6.8

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-21848 Server crashes in handle_if_exists_op... Closed

 Description   

CREATE TEMPORARY TABLE t (a INT, b INT, v INT AS (a));
ALTER TABLE t MODIFY b DATETIME ON UPDATE CURRENT_TIMESTAMP;
UPDATE t t1, t t2 SET t1.a = NULL;

10.2 b86e18cb44f

#3  <signal handler called>
#4  0x0000561cdcc23332 in parse_vcol_defs (thd=0x7f6114000b00, mem_root=0x7f6114009bd8, table=0x7f6114009120, error_reported=0x7f6124c93391) at /data/src/10.2/sql/table.cc:1116
#5  0x0000561cdcc2a575 in open_table_from_share (thd=0x7f6114000b00, share=0x7f611416f0d0, alias=0x7f6114012b70 "t", db_stat=1, prgflag=8, ha_open_flags=16, outparam=0x7f6114009120, is_create_table=false) at /data/src/10.2/sql/table.cc:3202
#6  0x0000561cdcd1c5b8 in THD::open_temporary_table (this=0x7f6114000b00, share=0x7f611416f0d0, alias=0x7f6114012b70 "t", open_in_engine=true) at /data/src/10.2/sql/temporary_tables.cc:1105
#7  0x0000561cdcd1af31 in THD::open_temporary_table (this=0x7f6114000b00, tl=0x7f6114012bb8) at /data/src/10.2/sql/temporary_tables.cc:371
#8  0x0000561cdcd1b14d in THD::open_temporary_tables (this=0x7f6114000b00, tl=0x7f6114012548) at /data/src/10.2/sql/temporary_tables.cc:439
#9  0x0000561cdcb247bd in mysql_execute_command (thd=0x7f6114000b00) at /data/src/10.2/sql/sql_parse.cc:3394
#10 0x0000561cdcb32b45 in mysql_parse (thd=0x7f6114000b00, rawbuf=0x7f6114012448 "UPDATE t t1, t t2 SET t1.a = NULL", length=33, parser_state=0x7f6124c94200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8012
#11 0x0000561cdcb2048f in dispatch_command (command=COM_QUERY, thd=0x7f6114000b00, packet=0x7f611408c171 "UPDATE t t1, t t2 SET t1.a = NULL", packet_length=33, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1824
#12 0x0000561cdcb1edf2 in do_command (thd=0x7f6114000b00) at /data/src/10.2/sql/sql_parse.cc:1378
#13 0x0000561cdcc7151f in do_handle_one_connection (connect=0x561cdf47d930) at /data/src/10.2/sql/sql_connect.cc:1335
#14 0x0000561cdcc712ac in handle_one_connection (arg=0x561cdf47d930) at /data/src/10.2/sql/sql_connect.cc:1241
#15 0x0000561cdd096e6a in pfs_spawn_thread (arg=0x561cdf3e10b0) at /data/src/10.2/storage/perfschema/pfs.cc:1862
#16 0x00007f612c474494 in start_thread (arg=0x7f6124c95700) at pthread_create.c:333
#17 0x00007f612aa7593f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Reproducible with at least MyISAM and InnoDB.



 Comments   
Comment by Aleksey Midenkov [ 2023-09-01 ]

Not reproducible in 10.4 at least since 7498978e6af

Generated at Thu Feb 08 08:39:20 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.