Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.6, 10.11, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL)
Description
SET unique_checks=0,foreign_key_checks=0,autocommit=0; |
CREATE TABLE t (c INT KEY) ENGINE=InnoDB; |
INSERT INTO t VALUES (0,0); |
SAVEPOINT a;
|
INSERT INTO t VALUES (0),(0); |
SAVEPOINT a;
|
Leads to (please note the differences in output 10.11 dbg vs opt and 10.6 dbg, note also different crash in 10.6 dbg only):
10.11.1 50c5743adc87e1cdec1431a02558f6540fe5a6d5 (Optimized) |
10.11.0-opt>INSERT INTO t VALUES (0,0);
|
ERROR 1136 (21S01): Column count doesn't match value count at row 1
|
10.11.0-opt>SAVEPOINT a;
|
Query OK, 0 rows affected (0.000 sec)
|
|
10.11.0-opt>INSERT INTO t VALUES (0),(0);
|
ERROR 1180 (HY000): Got error 1 "Operation not permitted" during COMMIT
|
10.11.0-opt>SAVEPOINT a;
|
ERROR 1030 (HY000): Got error 153 "No savepoint with that name" from storage engine InnoDB
|
10.11.1 50c5743adc87e1cdec1431a02558f6540fe5a6d5 (Debug) |
10.11.1-dbg>INSERT INTO t VALUES (0,0);
|
ERROR 1136 (21S01): Column count doesn't match value count at row 1
|
10.11.1-dbg>SAVEPOINT a;
|
Query OK, 0 rows affected (0.000 sec)
|
|
10.11.1-dbg>INSERT INTO t VALUES (0),(0);
|
ERROR 1180 (HY000): Got error 1 "Operation not permitted" during COMMIT
|
10.11.1-dbg>SAVEPOINT a;
|
ERROR 2013 (HY000): Lost connection to server during query
|
10.6.10 5e270ca28d05acb72c6aec9f1d37f9610fc11a0e (Debug) |
10.6.10-dbg>INSERT INTO t VALUES (0,0);
|
ERROR 1136 (21S01): Column count doesn't match value count at row 1
|
10.6.10-dbg>SAVEPOINT a;
|
Query OK, 0 rows affected (0.000 sec)
|
|
10.6.10-dbg>INSERT INTO t VALUES (0),(0);
|
ERROR 1062 (23000): Duplicate entry '0' for key 'PRIMARY'
|
10.6.10-dbg>SAVEPOINT a;
|
ERROR 2013 (HY000): Lost connection to server during query
|
10.11.1 50c5743adc87e1cdec1431a02558f6540fe5a6d5 (Debug) |
mysqld: /test/10.11_dbg/sql/sql_error.h:1052: uint Diagnostics_area::sql_errno() const: Assertion `m_status == DA_ERROR' failed.
|
10.11.1 50c5743adc87e1cdec1431a02558f6540fe5a6d5 (Debug) |
Core was generated by `/test/MD221022-mariadb-10.11.1-linux-x86_64-dbg/bin/mysqld --no-defaults --core'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
[Current thread is 1 (Thread 0x14f950d35700 (LWP 2679047))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x000014f97baf7859 in __GI_abort () at abort.c:79
|
#2 0x000014f97baf7729 in __assert_fail_base (fmt=0x14f97bc8d588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55b4007d514c "m_status == DA_ERROR", file=0x55b4007c9a08 "/test/10.11_dbg/sql/sql_error.h", line=1052, function=<optimized out>) at assert.c:92
|
#3 0x000014f97bb08fd6 in __GI___assert_fail (assertion=assertion@entry=0x55b4007d514c "m_status == DA_ERROR", file=file@entry=0x55b4007c9a08 "/test/10.11_dbg/sql/sql_error.h", line=line@entry=1052, function=function@entry=0x55b4007d0830 "uint Diagnostics_area::sql_errno() const") at assert.c:101
|
#4 0x000055b3ffbc1145 in Diagnostics_area::sql_errno (this=0x14f8cc006c50) at /test/10.11_dbg/sql/sql_error.h:1052
|
#5 thd_get_error_number (thd=<optimized out>) at /test/10.11_dbg/sql/sql_class.cc:540
|
#6 0x000055b40041e3da in trx_state_eq (relaxed=true, state=TRX_STATE_ACTIVE, trx=0x14f973391b80) at /test/10.11_dbg/storage/innobase/include/trx0trx.inl:65
|
#7 trx_release_savepoint_for_mysql (trx=trx@entry=0x14f973391b80, savepoint_name=savepoint_name@entry=0x14f950d33b50 "8692IDQQ0") at /test/10.11_dbg/storage/innobase/trx/trx0roll.cc:552
|
#8 0x000055b4001fcd89 in innobase_release_savepoint (hton=<optimized out>, thd=<optimized out>, savepoint=0x14f8cc017288) at /test/10.11_dbg/storage/innobase/handler/ha_innodb.cc:4875
|
#9 0x000055b3fff12978 in ha_release_savepoint (thd=thd@entry=0x14f8cc000d48, sv=sv@entry=0x14f8cc017250) at /test/10.11_dbg/sql/handler.cc:2967
|
#10 0x000055b3ffda26a8 in trans_savepoint (thd=thd@entry=0x14f8cc000d48, name=<optimized out>) at /test/10.11_dbg/sql/transaction.cc:599
|
#11 0x000055b3ffc38850 in mysql_execute_command (thd=thd@entry=0x14f8cc000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.11_dbg/sql/sql_parse.cc:5705
|
#12 0x000055b3ffc21f90 in mysql_parse (thd=thd@entry=0x14f8cc000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14f950d34300) at /test/10.11_dbg/sql/sql_parse.cc:8023
|
#13 0x000055b3ffc2f4ac in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14f8cc000d48, packet=packet@entry=0x14f8cc00af09 "SAVEPOINT a", packet_length=packet_length@entry=11, blocking=blocking@entry=true) at /test/10.11_dbg/sql/sql_class.h:1346
|
#14 0x000055b3ffc318f4 in do_command (thd=0x14f8cc000d48, blocking=blocking@entry=true) at /test/10.11_dbg/sql/sql_parse.cc:1407
|
#15 0x000055b3ffd8e067 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55b4022edf28, put_in_cache=put_in_cache@entry=true) at /test/10.11_dbg/sql/sql_connect.cc:1416
|
#16 0x000055b3ffd8e536 in handle_one_connection (arg=0x55b4022edf28) at /test/10.11_dbg/sql/sql_connect.cc:1318
|
#17 0x000014f97c008609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#18 0x000014f97bbf4133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
10.6.10 5e270ca28d05acb72c6aec9f1d37f9610fc11a0e (Debug) |
mysqld: /test/10.6_dbg/sql/sql_error.cc:334: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed.
|
10.6.10 5e270ca28d05acb72c6aec9f1d37f9610fc11a0e (Debug) |
Core was generated by `/test/MD190922-mariadb-10.6.10-linux-x86_64-dbg/bin/mysqld --no-defaults --core'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
[Current thread is 1 (Thread 0x147f040e2700 (LWP 4017024))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x0000147f328b7859 in __GI_abort () at abort.c:79
|
#2 0x0000147f328b7729 in __assert_fail_base (fmt=0x147f32a4d588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55b812b1e0c8 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=0x55b812b1dfa8 "/test/10.6_dbg/sql/sql_error.cc", line=334, function=<optimized out>) at assert.c:92
|
#3 0x0000147f328c8fd6 in __GI___assert_fail (assertion=assertion@entry=0x55b812b1e0c8 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=file@entry=0x55b812b1dfa8 "/test/10.6_dbg/sql/sql_error.cc", line=line@entry=334, function=function@entry=0x55b812b1e100 "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at assert.c:101
|
#4 0x000055b811f09109 in Diagnostics_area::set_ok_status (this=0x147e900069c0, affected_rows=affected_rows@entry=0, last_insert_id=last_insert_id@entry=0, message=message@entry=0x0) at /test/10.6_dbg/sql/sql_error.h:1036
|
#5 0x000055b811f6171d in my_ok (message=0x0, id=0, affected_rows_arg=0, thd=0x147e90000d48) at /test/10.6_dbg/sql/sql_class.h:5607
|
#6 mysql_execute_command (thd=thd@entry=0x147e90000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.6_dbg/sql/sql_parse.cc:5701
|
#7 0x000055b811f4aa3d in mysql_parse (thd=thd@entry=0x147e90000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x147f040e1330) at /test/10.6_dbg/sql/sql_parse.cc:8030
|
#8 0x000055b811f5815a in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x147e90000d48, packet=packet@entry=0x147e9000ac49 "SAVEPOINT a", packet_length=packet_length@entry=11, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1364
|
#9 0x000055b811f5a880 in do_command (thd=0x147e90000d48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1409
|
#10 0x000055b8120a4a11 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55b814b90568, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1416
|
#11 0x000055b8120a4f1b in handle_one_connection (arg=0x55b814b90568) at /test/10.6_dbg/sql/sql_connect.cc:1318
|
#12 0x0000147f32dc8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#13 0x0000147f329b4133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Crash confirmed present in:
MariaDB: 10.6.10 (dbg) (different crash), 10.7.6 (dbg), 10.8.5 (dbg), 10.9.3 (dbg), 10.10.2 (dbg), 10.11.1 (dbg)
Also affected:
MariaDB: 10.6.10 (opt), 10.7.6 (opt), 10.8.5 (opt), 10.9.3 (opt), 10.10.2 (opt), 10.11.1 (opt)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.3.37 (dbg), 10.3.37 (opt), 10.4.27 (dbg), 10.4.27 (opt), 10.5.18 (dbg), 10.5.18 (opt), 10.6.10 (opt), 10.7.6 (opt), 10.8.5 (opt), 10.9.3 (opt), 10.10.2 (opt), 10.11.1 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.38 (dbg), 5.7.38 (opt), 8.0.29 (dbg), 8.0.29 (opt)
Attachments
Issue Links
- is duplicated by
-
MDEV-25401 Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed in Diagnostics_area::set_ok_status on SAVEPOINT
- Closed
- relates to
-
MDEV-515 innodb bulk insert
- Closed