Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 11.0(EOL)
-
None
Description
That's a non-specific assertion, it's possible that other open bugs referring to it have the same root cause.
CREATE TABLE t1 (f TIMESTAMP DEFAULT FROM_UNIXTIME(POW(10,0))); |
CREATE TRIGGER tr BEFORE INSERT ON t1 FOR EACH ROW SET @a=1; |
INSERT INTO t1 VALUES (),(); |
|
# Cleanup
|
DROP TABLE t1; |
10.3 7d96cb47 |
mysqld: /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item_func.cc:694: virtual my_decimal* Item_real_func::val_decimal(my_decimal*): Assertion `fixed' failed.
|
221101 15:48:39 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f59af1eb662 in __GI___assert_fail (assertion=0x560377569bc0 "fixed", file=0x56037756cac0 "/home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item_func.cc", line=694, function=0x56037756d400 "virtual my_decimal* Item_real_func::val_decimal(my_decimal*)") at assert.c:101
|
#8 0x0000560375e665f3 in Item_real_func::val_decimal (this=0x619000083540, decimal_value=0x7f59a45fd490) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item_func.cc:694
|
#9 0x0000560375d764b5 in Item::get_seconds (this=0x619000083540, sec=0x7f59a45fd590, sec_part=0x7f59a45fd5b0) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item.cc:1633
|
#10 0x0000560375fb64b6 in Item_func_from_unixtime::get_date (this=0x619000083620, ltime=0x7f59a45fd650, fuzzy_date=0) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item_timefunc.cc:2054
|
#11 0x0000560375d6c4b6 in Item::save_date_in_field (this=0x619000083620, field=0x619000082fe8, no_conversions=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item.cc:496
|
#12 0x0000560375ac879e in Type_handler_temporal_with_date::Item_save_in_field (this=0x5603781791e0 <type_handler_datetime2>, item=0x619000083620, field=0x619000082fe8, no_conversions=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_type.cc:2568
|
#13 0x0000560375da1ed1 in Item::save_in_field (this=0x619000083620, field=0x619000082fe8, no_conversions=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item.cc:7012
|
#14 0x00005603758de50a in TABLE::update_default_fields (this=0x61f000044488, ignore_errors=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/table.cc:8253
|
#15 0x00005603754826e9 in fill_record (thd=0x62a000060208, table_arg=0x61f000044488, fields=..., values=..., ignore_errors=false, update=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_base.cc:8500
|
#16 0x00005603754833d9 in fill_record_n_invoke_before_triggers (thd=0x62a000060208, table=0x61f000044488, fields=..., values=..., ignore_errors=false, event=TRG_EVENT_INSERT) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_base.cc:8635
|
#17 0x000056037552daf5 in mysql_insert (thd=0x62a000060208, table_list=0x62b000000338, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_insert.cc:974
|
#18 0x00005603755d39c3 in mysql_execute_command (thd=0x62a000060208) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_parse.cc:4505
|
#19 0x00005603755eb666 in mysql_parse (thd=0x62a000060208, rawbuf=0x62b000000228 "INSERT INTO t1 VALUES (),()", length=27, parser_state=0x7f59a45ff950, is_com_multi=false, is_next_command=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_parse.cc:7855
|
#20 0x00005603755c2cb4 in dispatch_command (command=COM_QUERY, thd=0x62a000060208, packet=0x6290000eb209 "INSERT INTO t1 VALUES (),()", packet_length=27, is_com_multi=false, is_next_command=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_parse.cc:1852
|
#21 0x00005603755bf86c in do_command (thd=0x62a000060208) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_parse.cc:1398
|
#22 0x000056037598315a in do_handle_one_connection (connect=0x608000000ca8) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_connect.cc:1403
|
#23 0x0000560375982a56 in handle_one_connection (arg=0x608000000ca8) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_connect.cc:1308
|
#24 0x0000560376f301af in pfs_spawn_thread (arg=0x615000004e08) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/storage/perfschema/pfs.cc:1869
|
#25 0x00007f59af396ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#26 0x00007f59af2b6aef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
On 10.4+ the stack trace is somewhat different:
10.4 ce443c85 |
mysqld: /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item_func.cc:2073: virtual double Item_func_pow::val_real(): Assertion `fixed == 1' failed.
|
221101 15:49:23 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f70d1dda662 in __GI___assert_fail (assertion=0x55b3c9ce1300 "fixed == 1", file=0x55b3c9ce4220 "/home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item_func.cc", line=2073, function=0x55b3c9ce60a0 "virtual double Item_func_pow::val_real()") at assert.c:101
|
#8 0x000055b3c8459144 in Item_func_pow::val_real (this=0x619000085840) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item_func.cc:2073
|
#9 0x000055b3c80b3b11 in VSec9::VSec9 (this=0x7f70c83e12f0, thd=0x62b00005b208, item=0x619000085840, type_str=0x55b3c9d1c780 "unixtime", limit=2147483647) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_type.cc:447
|
#10 0x000055b3c859f800 in Item_func_from_unixtime::get_date (this=0x619000085920, thd=0x62b00005b208, ltime=0x7f70c83e13e0, fuzzydate=...) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item_timefunc.cc:1951
|
#11 0x000055b3c8347137 in Item::save_date_in_field (this=0x619000085920, field=0x6190000852e8, no_conversions=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item.cc:374
|
#12 0x000055b3c80c7fd6 in Type_handler_temporal_with_date::Item_save_in_field (this=0x55b3caa4cd60 <type_handler_datetime2>, item=0x619000085920, field=0x6190000852e8, no_conversions=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_type.cc:3802
|
#13 0x000055b3c837af2b in Item::save_in_field (this=0x619000085920, field=0x6190000852e8, no_conversions=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/item.cc:6714
|
#14 0x000055b3c7eb28ec in TABLE::update_default_fields (this=0x62000003d088, ignore_errors=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/table.cc:8714
|
#15 0x000055b3c7a15e27 in fill_record (thd=0x62b00005b208, table_arg=0x62000003d088, fields=..., values=..., ignore_errors=false, update=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_base.cc:8666
|
#16 0x000055b3c7a16b17 in fill_record_n_invoke_before_triggers (thd=0x62b00005b208, table=0x62000003d088, fields=..., values=..., ignore_errors=false, event=TRG_EVENT_INSERT) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_base.cc:8801
|
#17 0x000055b3c7ac7f14 in mysql_insert (thd=0x62b00005b208, table_list=0x62b000062338, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_insert.cc:980
|
#18 0x000055b3c7b82dae in mysql_execute_command (thd=0x62b00005b208) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_parse.cc:4599
|
#19 0x000055b3c7b9a78c in mysql_parse (thd=0x62b00005b208, rawbuf=0x62b000062228 "INSERT INTO t1 VALUES (),()", length=27, parser_state=0x7f70c83e3800, is_com_multi=false, is_next_command=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_parse.cc:7982
|
#20 0x000055b3c7b71731 in dispatch_command (command=COM_QUERY, thd=0x62b00005b208, packet=0x62900023f209 "INSERT INTO t1 VALUES (),()", packet_length=27, is_com_multi=false, is_next_command=false) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_parse.cc:1857
|
#21 0x000055b3c7b6e2d0 in do_command (thd=0x62b00005b208) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_parse.cc:1378
|
#22 0x000055b3c7f5c245 in do_handle_one_connection (connect=0x608000000da8) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_connect.cc:1420
|
#23 0x000055b3c7f5bb2b in handle_one_connection (arg=0x608000000da8) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/sql/sql_connect.cc:1324
|
#24 0x000055b3c8b97c91 in pfs_spawn_thread (arg=0x615000004e08) at /home/jenkins/workspace/sandbox-elenst/Nightly-Build-CS/src/storage/perfschema/pfs.cc:1869
|
#25 0x00007f70d22b8ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#26 0x00007f70d1ea5aef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Attachments
Issue Links
- is duplicated by
-
MDEV-29357 Assertion (fixed) in Item_func_dayname on INSERT
- Closed
- relates to
-
MDEV-29173 Assertion `fixed()' or fixed == 1 failed in Item_func_date_format::val_str on INSERT when using binary logging
- Open