Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL)
Description
CREATE OR REPLACE TABLE t1 (col1 INT DEFAULT(-(DEFAULT(col1)))); |
Stack trace from 10.2 commit 848d211c5c4df00b819cd84d7530cf7d29bb0524 |
#3 <signal handler called>
|
#4 0x00007f23cdd95d0d in Field::set_default (this=0x7f239dc1ef90) at /data/src/10.2-bug/sql/field.cc:2313
|
#5 0x00007f23cddeafb3 in Item_default_value::calculate (this=0x7f239dc1ec28) at /data/src/10.2-bug/sql/item.cc:8262
|
#6 0x00007f23cddeb034 in Item_default_value::val_int (this=0x7f239dc1ec28) at /data/src/10.2-bug/sql/item.cc:8279
|
#7 0x00007f23cde2dd4f in Item_func_neg::fix_length_and_dec (this=0x7f239dc1ee88) at /data/src/10.2-bug/sql/item_func.cc:1987
|
#8 0x00007f23cde2795f in Item_func::fix_fields (this=0x7f239dc1ee88, thd=0x7f239dcbb070, ref=0x7f239dc1ef60) at /data/src/10.2-bug/sql/item_func.cc:236
|
#9 0x00007f23cdc6bc78 in fix_vcol_expr (thd=0x7f239dcbb070, table=0x7f23ceace7a0, field=0x7f239dc1e9a0, vcol=0x7f239dc1ef58) at /data/src/10.2-bug/sql/table.cc:2563
|
#10 0x00007f23cdc6c3f9 in unpack_vcol_info_from_frm (thd=0x7f239dcbb070, mem_root=0x7f23ceacf238, table=0x7f23ceace7a0, field=0x7f239dc1e9a0, vcol=0x7f239dc1e0e8, error_reported=0x7f23ceace609) at /data/src/10.2-bug/sql/table.cc:2757
|
#11 0x00007f23cdc6d219 in open_table_from_share (thd=0x7f239dcbb070, share=0x7f23ceacf4f0, alias=0x7f23ce55dbef "", db_stat=0, prgflag=1, ha_open_flags=0, outparam=0x7f23ceace7a0, is_create_table=true) at /data/src/10.2-bug/sql/table.cc:3032
|
#12 0x00007f23cddccccd in ha_create_table (thd=0x7f239dcbb070, path=0x7f23cead0f70 "./test/t1", db=0x7f239dd127a8 "test", table_name=0x7f239dd12178 "t1", create_info=0x7f23cead1570, frm=0x7f23cead0f60) at /data/src/10.2-bug/sql/handler.cc:4680
|
#13 0x00007f23cdc82b48 in rea_create_table (thd=0x7f239dcbb070, frm=0x7f23cead0f60, path=0x7f23cead0f70 "./test/t1", db=0x7f239dd127a8 "test", table_name=0x7f239dd12178 "t1", create_info=0x7f23cead1570, file=0x7f239dd135b8, no_ha_create_table=false) at /data/src/10.2-bug/sql/unireg.cc:403
|
#14 0x00007f23cdc38339 in create_table_impl (thd=0x7f239dcbb070, orig_db=0x7f239dd127a8 "test", orig_table_name=0x7f239dd12178 "t1", db=0x7f239dd127a8 "test", table_name=0x7f239dd12178 "t1", path=0x7f23cead0f70 "./test/t1", options=..., create_info=0x7f23cead1570, alter_info=0x7f23cead14c0, create_table_mode=0, is_trans=0x7f23cead11ce, key_info=0x7f23cead0f50, key_count=0x7f23cead0f44, frm=0x7f23cead0f60) at /data/src/10.2-bug/sql/sql_table.cc:4879
|
#15 0x00007f23cdc388d6 in mysql_create_table_no_lock (thd=0x7f239dcbb070, db=0x7f239dd127a8 "test", table_name=0x7f239dd12178 "t1", create_info=0x7f23cead1570, alter_info=0x7f23cead14c0, is_trans=0x7f23cead11ce, create_table_mode=0) at /data/src/10.2-bug/sql/sql_table.cc:4990
|
#16 0x00007f23cdc38b4a in mysql_create_table (thd=0x7f239dcbb070, create_table=0x7f239dd121b0, create_info=0x7f23cead1570, alter_info=0x7f23cead14c0) at /data/src/10.2-bug/sql/sql_table.cc:5053
|
#17 0x00007f23cdb7c9bf in mysql_execute_command (thd=0x7f239dcbb070) at /data/src/10.2-bug/sql/sql_parse.cc:3848
|
#18 0x00007f23cdb88ed1 in mysql_parse (thd=0x7f239dcbb070, rawbuf=0x7f239dd12088 "CREATE OR REPLACE TABLE t1 (col1 INT DEFAULT(-(DEFAULT(col1))))", length=63, parser_state=0x7f23cead1e30, is_com_multi=false, is_next_command=false) at /data/src/10.2-bug/sql/sql_parse.cc:7742
|
#19 0x00007f23cdb7733d in dispatch_command (command=COM_QUERY, thd=0x7f239dcbb070, packet=0x7f239dcdc071 "CREATE OR REPLACE TABLE t1 (col1 INT DEFAULT(-(DEFAULT(col1))))", packet_length=63, is_com_multi=false, is_next_command=false) at /data/src/10.2-bug/sql/sql_parse.cc:1790
|
#20 0x00007f23cdb75da9 in do_command (thd=0x7f239dcbb070) at /data/src/10.2-bug/sql/sql_parse.cc:1353
|
#21 0x00007f23cdcae1a2 in do_handle_one_connection (connect=0x7f23ca85cad0) at /data/src/10.2-bug/sql/sql_connect.cc:1354
|
#22 0x00007f23cdcadf2f in handle_one_connection (arg=0x7f23ca85cad0) at /data/src/10.2-bug/sql/sql_connect.cc:1260
|
#23 0x00007f23cd23f0a4 in start_thread (arg=0x7f23cead3300) at pthread_create.c:309
|
#24 0x00007f23cb3f787d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
|
Attachments
Issue Links
- relates to
-
MDEV-10134 Add full support for DEFAULT
- Closed
-
MDEV-26061 MariaDB server crash at Field::set_default
- Closed