[MDEV-4823] Server crashes in Item_func_not::fix_fields on creating a table with a virtual column using NOT Created: 2013-07-29  Updated: 2013-08-06  Resolved: 2013-08-06

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.3, 5.5.32, 5.2.14, 5.3.12
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Oleksandr Byelkin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates

 Description   

CREATE TABLE t1 ( f1 INT, v4 INT AS ( NOT f1 ) VIRTUAL );

#4  0x00000000005f97b5 in Item_func_not::fix_fields (this=0x7f918802dbe0, thd=0x450cca8, ref=0x0) at item_cmpfunc.cc:5334
#5  0x00000000007b2578 in fix_vcol_expr (thd=0x450cca8, table=0x7f91a20a3810, vcol_field=0x7f918802da00) at table.cc:1863
#6  0x00000000007b2e27 in unpack_vcol_info_from_frm (thd=0x450cca8, mem_root=0x7f91a20a4028, table=0x7f91a20a3810, field=0x7f918802da00, vcol_expr=0x7f918802cde8, error_reported=0x7f91a20a37ab) at table.cc:2040
#7  0x00000000007b3bce in open_table_from_share (thd=0x450cca8, share=0x7f91a20a4130, alias=0x126a29e "", db_stat=0, prgflag=1, ha_open_flags=0, outparam=0x7f91a20a3810, is_create_table=true) at table.cc:2270
#8  0x00000000009267aa in ha_create_table (thd=0x450cca8, path=0x7f91a20a4b30 "./test/t1", db=0x7f9188019268 "test", table_name=0x7f9188018ee0 "t1", create_info=0x7f91a20a4e50, update_create_info=false) at handler.cc:3850
#9  0x000000000089f6d1 in rea_create_table (thd=0x450cca8, path=0x7f91a20a4b30 "./test/t1", db=0x7f9188019268 "test", table_name=0x7f9188018ee0 "t1", create_info=0x7f91a20a4e50, create_fields=..., keys=0, key_info=0x7f9188019b58, file=0x7f91880197b8) at unireg.cc:461
#10 0x0000000000967ce0 in mysql_create_table_no_lock (thd=0x450cca8, db=0x7f9188019268 "test", table_name=0x7f9188018ee0 "t1", create_info=0x7f91a20a4e50, alter_info=0x7f91a20a4f50, internal_tmp_table=false, select_field_count=0) at sql_table.cc:4140
#11 0x00000000009683ec in mysql_create_table (thd=0x450cca8, db=0x7f9188019268 "test", table_name=0x7f9188018ee0 "t1", create_info=0x7f91a20a4e50, alter_info=0x7f91a20a4f50, internal_tmp_table=false, select_field_count=0) at sql_table.cc:4235
#12 0x000000000070791b in mysql_execute_command (thd=0x450cca8) at sql_parse.cc:2877
#13 0x0000000000718d46 in mysql_parse (thd=0x450cca8, rawbuf=0x7f9188018df0 "CREATE TABLE t1 ( f1 INT, v4 INT AS ( NOT f1 ) VIRTUAL )", length=56, found_semicolon=0x7f91a20a5890) at sql_parse.cc:6216
#14 0x00000000007010d9 in dispatch_command (command=COM_QUERY, thd=0x450cca8, packet=0x4581099 "CREATE TABLE t1 ( f1 INT, v4 INT AS ( NOT f1 ) VIRTUAL )", packet_length=56) at sql_parse.cc:1248
#15 0x00000000006ffa9e in do_command (thd=0x450cca8) at sql_parse.cc:920
#16 0x00000000006fa205 in handle_one_connection (arg=0x450cca8) at sql_connect.cc:1226
#17 0x00007f91a3dbce9a in start_thread (arg=0x7f91a20a6700) at pthread_create.c:308
#18 0x00007f91a32e5cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

bzr version-info
revision-id: wlad@montyprogram.com-20130709202457-6n9syq59jdd2sy3b
revno: 3214
branch-nick: 5.2



 Comments   
Comment by Oleksandr Byelkin [ 2013-07-30 ]

It was incorrectly called fix_fields().

Comment by Oleksandr Byelkin [ 2013-07-30 ]

committed for review

Comment by Oleksandr Byelkin [ 2013-08-01 ]

pushed to 5.2 tree

Generated at Thu Feb 08 06:59:28 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.