Browse Source
MDEV-12023 Assertion failure sym_node->table != NULL on startup
MDEV-12023 Assertion failure sym_node->table != NULL on startup
row_drop_table_for_mysql(): Avoid accessing non-existing dictionary tables. dict_create_or_check_foreign_constraint_tables(): Add debug instrumentation for creating and dropping a table before the creation of any non-core dictionary tables. trx_purge_add_update_undo_to_history(): Adjust a debug assertion, so that it will not fail due to the test instrumentation.pull/899/head
15 changed files with 588 additions and 174 deletions
-
5mysql-test/include/maybe_debug.combinations
-
3mysql-test/include/maybe_debug.inc
-
3mysql-test/suite.pm
-
128mysql-test/suite/innodb/r/table_flags,4k,debug.rdiff
-
0mysql-test/suite/innodb/r/table_flags,4k,release.rdiff
-
128mysql-test/suite/innodb/r/table_flags,8k,debug.rdiff
-
0mysql-test/suite/innodb/r/table_flags,8k,release.rdiff
-
128mysql-test/suite/innodb/r/table_flags,debug.rdiff
-
4mysql-test/suite/innodb/t/table_flags.test
-
16storage/innobase/dict/dict0crea.cc
-
163storage/innobase/row/row0mysql.cc
-
2storage/innobase/trx/trx0purge.cc
-
17storage/xtradb/dict/dict0crea.cc
-
163storage/xtradb/row/row0mysql.cc
-
2storage/xtradb/trx/trx0purge.cc
@ -0,0 +1,5 @@ |
|||
[debug] |
|||
--enable-gdb |
|||
|
|||
[release] |
|||
--disable-gdb |
|||
@ -0,0 +1,3 @@ |
|||
# include file for test files that can be run with and without debug |
|||
# having debug and non-debug tests. |
|||
let $have_debug=`select version() like '%debug%'`; |
|||
@ -0,0 +1,128 @@ |
|||
--- suite/innodb/r/table_flags.result |
|||
+++ suite/innodb/r/table_flags,4k,debug.reject |
|||
@@ -10,81 +10,81 @@ |
|||
CREATE TABLE tp(a INT PRIMARY KEY)ENGINE=InnoDB ROW_FORMAT=DYNAMIC; |
|||
SYS_TABLES clustered index root page (8): |
|||
N_RECS=9; LEVEL=0; INDEX_ID=0x0000000000000001 |
|||
-header=0x01000003016e (NAME=0x696e66696d756d00) |
|||
-header=0x00002815008d (NAME='SYS_DATAFILES', |
|||
- DB_TRX_ID=0x000000000301, |
|||
- DB_ROLL_PTR=0x81000001320194, |
|||
- ID=0x000000000000000e, |
|||
+header=0x0100000301bf (NAME=0x696e66696d756d00) |
|||
+header=0x0000301500de (NAME='SYS_DATAFILES', |
|||
+ DB_TRX_ID=0x000000000302, |
|||
+ DB_ROLL_PTR=0x81000003270194, |
|||
+ ID=0x000000000000000f, |
|||
N_COLS=0x00000002, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000040, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000000) |
|||
-header=0x0000101500d5 (NAME='SYS_FOREIGN', |
|||
+header=0x000018150126 (NAME='SYS_FOREIGN', |
|||
DB_TRX_ID=0x000000000300, |
|||
- DB_ROLL_PTR=0x800000012d0110, |
|||
- ID=0x000000000000000b, |
|||
+ DB_ROLL_PTR=0x8000000320016f, |
|||
+ ID=0x000000000000000c, |
|||
N_COLS=0x00000004, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000040, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000000) |
|||
-header=0x000018150122 (NAME='SYS_FOREIGN_COLS', |
|||
+header=0x000020150173 (NAME='SYS_FOREIGN_COLS', |
|||
DB_TRX_ID=0x000000000300, |
|||
- DB_ROLL_PTR=0x800000012d0201, |
|||
- ID=0x000000000000000c, |
|||
+ DB_ROLL_PTR=0x80000003200260, |
|||
+ ID=0x000000000000000d, |
|||
N_COLS=0x00000004, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000040, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000000) |
|||
-header=0x0400201501fc (NAME='SYS_TABLESPACES', |
|||
- DB_TRX_ID=0x000000000301, |
|||
- DB_ROLL_PTR=0x81000001320110, |
|||
- ID=0x000000000000000d, |
|||
+header=0x040028150209 (NAME='SYS_TABLESPACES', |
|||
+ DB_TRX_ID=0x000000000302, |
|||
+ DB_ROLL_PTR=0x81000003270110, |
|||
+ ID=0x000000000000000e, |
|||
N_COLS=0x00000003, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000040, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000000) |
|||
-header=0x000038150240 (NAME='test/tc', |
|||
- DB_TRX_ID=0x000000000303, |
|||
- DB_ROLL_PTR=0x83000001360110, |
|||
- ID=0x0000000000000010, |
|||
+header=0x00003815024d (NAME='test/tc', |
|||
+ DB_TRX_ID=0x000000000304, |
|||
+ DB_ROLL_PTR=0x830000032c0110, |
|||
+ ID=0x0000000000000011, |
|||
N_COLS=0x80000001, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000050, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000002) |
|||
-header=0x0000401502c8 (NAME='test/td', |
|||
- DB_TRX_ID=0x000000000304, |
|||
- DB_ROLL_PTR=0x84000001370110, |
|||
- ID=0x0000000000000011, |
|||
+header=0x0000401502d5 (NAME='test/td', |
|||
+ DB_TRX_ID=0x000000000305, |
|||
+ DB_ROLL_PTR=0x840000032d0110, |
|||
+ ID=0x0000000000000012, |
|||
N_COLS=0x80000001, |
|||
TYPE=0x00000021, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000050, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000003) |
|||
-header=0x0000501501b8 (NAME='test/tp', |
|||
- DB_TRX_ID=0x000000000306, |
|||
- DB_ROLL_PTR=0x86000001390110, |
|||
- ID=0x0000000000000013, |
|||
+header=0x00005015008d (NAME='test/tp', |
|||
+ DB_TRX_ID=0x000000000307, |
|||
+ DB_ROLL_PTR=0x86000003300110, |
|||
+ ID=0x0000000000000014, |
|||
N_COLS=0x80000001, |
|||
TYPE=0x00000021, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000050, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000005) |
|||
-header=0x000030150284 (NAME='test/tr', |
|||
- DB_TRX_ID=0x000000000302, |
|||
- DB_ROLL_PTR=0x82000001350110, |
|||
- ID=0x000000000000000f, |
|||
+header=0x000010150291 (NAME='test/tr', |
|||
+ DB_TRX_ID=0x000000000303, |
|||
+ DB_ROLL_PTR=0x820000032b0110, |
|||
+ ID=0x0000000000000010, |
|||
N_COLS=0x00000001, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
@@ -92,9 +92,9 @@ |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000001) |
|||
header=0x000048150074 (NAME='test/tz', |
|||
- DB_TRX_ID=0x000000000305, |
|||
- DB_ROLL_PTR=0x85000001380110, |
|||
- ID=0x0000000000000012, |
|||
+ DB_TRX_ID=0x000000000306, |
|||
+ DB_ROLL_PTR=0x850000032e0110, |
|||
+ ID=0x0000000000000013, |
|||
N_COLS=0x80000001, |
|||
TYPE=0x00000023, |
|||
MIX_ID=0x0000000000000000, |
|||
@ -0,0 +1,128 @@ |
|||
--- suite/innodb/r/table_flags.result |
|||
+++ suite/innodb/r/table_flags,8k,debug.reject |
|||
@@ -10,81 +10,81 @@ |
|||
CREATE TABLE tp(a INT PRIMARY KEY)ENGINE=InnoDB ROW_FORMAT=DYNAMIC; |
|||
SYS_TABLES clustered index root page (8): |
|||
N_RECS=9; LEVEL=0; INDEX_ID=0x0000000000000001 |
|||
-header=0x01000003016e (NAME=0x696e66696d756d00) |
|||
-header=0x00002815008d (NAME='SYS_DATAFILES', |
|||
- DB_TRX_ID=0x000000000301, |
|||
- DB_ROLL_PTR=0x81000001320194, |
|||
- ID=0x000000000000000e, |
|||
+header=0x0100000301bf (NAME=0x696e66696d756d00) |
|||
+header=0x0000301500de (NAME='SYS_DATAFILES', |
|||
+ DB_TRX_ID=0x000000000302, |
|||
+ DB_ROLL_PTR=0x81000001d80194, |
|||
+ ID=0x000000000000000f, |
|||
N_COLS=0x00000002, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000040, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000000) |
|||
-header=0x0000101500d5 (NAME='SYS_FOREIGN', |
|||
+header=0x000018150126 (NAME='SYS_FOREIGN', |
|||
DB_TRX_ID=0x000000000300, |
|||
- DB_ROLL_PTR=0x800000012d0110, |
|||
- ID=0x000000000000000b, |
|||
+ DB_ROLL_PTR=0x80000001d1016f, |
|||
+ ID=0x000000000000000c, |
|||
N_COLS=0x00000004, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000040, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000000) |
|||
-header=0x000018150122 (NAME='SYS_FOREIGN_COLS', |
|||
+header=0x000020150173 (NAME='SYS_FOREIGN_COLS', |
|||
DB_TRX_ID=0x000000000300, |
|||
- DB_ROLL_PTR=0x800000012d0201, |
|||
- ID=0x000000000000000c, |
|||
+ DB_ROLL_PTR=0x80000001d10260, |
|||
+ ID=0x000000000000000d, |
|||
N_COLS=0x00000004, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000040, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000000) |
|||
-header=0x0400201501fc (NAME='SYS_TABLESPACES', |
|||
- DB_TRX_ID=0x000000000301, |
|||
- DB_ROLL_PTR=0x81000001320110, |
|||
- ID=0x000000000000000d, |
|||
+header=0x040028150209 (NAME='SYS_TABLESPACES', |
|||
+ DB_TRX_ID=0x000000000302, |
|||
+ DB_ROLL_PTR=0x81000001d80110, |
|||
+ ID=0x000000000000000e, |
|||
N_COLS=0x00000003, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000040, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000000) |
|||
-header=0x000038150240 (NAME='test/tc', |
|||
- DB_TRX_ID=0x000000000303, |
|||
- DB_ROLL_PTR=0x83000001360110, |
|||
- ID=0x0000000000000010, |
|||
+header=0x00003815024d (NAME='test/tc', |
|||
+ DB_TRX_ID=0x000000000304, |
|||
+ DB_ROLL_PTR=0x83000001dc0110, |
|||
+ ID=0x0000000000000011, |
|||
N_COLS=0x80000001, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000050, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000002) |
|||
-header=0x0000401502c8 (NAME='test/td', |
|||
- DB_TRX_ID=0x000000000304, |
|||
- DB_ROLL_PTR=0x84000001370110, |
|||
- ID=0x0000000000000011, |
|||
+header=0x0000401502d5 (NAME='test/td', |
|||
+ DB_TRX_ID=0x000000000305, |
|||
+ DB_ROLL_PTR=0x84000001dd0110, |
|||
+ ID=0x0000000000000012, |
|||
N_COLS=0x80000001, |
|||
TYPE=0x00000021, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000050, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000003) |
|||
-header=0x0000501501b8 (NAME='test/tp', |
|||
- DB_TRX_ID=0x000000000306, |
|||
- DB_ROLL_PTR=0x86000001390110, |
|||
- ID=0x0000000000000013, |
|||
+header=0x00005015008d (NAME='test/tp', |
|||
+ DB_TRX_ID=0x000000000307, |
|||
+ DB_ROLL_PTR=0x86000001df0110, |
|||
+ ID=0x0000000000000014, |
|||
N_COLS=0x80000001, |
|||
TYPE=0x00000021, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000050, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000005) |
|||
-header=0x000030150284 (NAME='test/tr', |
|||
- DB_TRX_ID=0x000000000302, |
|||
- DB_ROLL_PTR=0x82000001350110, |
|||
- ID=0x000000000000000f, |
|||
+header=0x000010150291 (NAME='test/tr', |
|||
+ DB_TRX_ID=0x000000000303, |
|||
+ DB_ROLL_PTR=0x82000001db0110, |
|||
+ ID=0x0000000000000010, |
|||
N_COLS=0x00000001, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
@@ -92,9 +92,9 @@ |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000001) |
|||
header=0x000048150074 (NAME='test/tz', |
|||
- DB_TRX_ID=0x000000000305, |
|||
- DB_ROLL_PTR=0x85000001380110, |
|||
- ID=0x0000000000000012, |
|||
+ DB_TRX_ID=0x000000000306, |
|||
+ DB_ROLL_PTR=0x85000001de0110, |
|||
+ ID=0x0000000000000013, |
|||
N_COLS=0x80000001, |
|||
TYPE=0x00000023, |
|||
MIX_ID=0x0000000000000000, |
|||
@ -0,0 +1,128 @@ |
|||
--- suite/innodb/r/table_flags.result |
|||
+++ suite/innodb/r/table_flags,debug.reject |
|||
@@ -10,81 +10,81 @@ |
|||
CREATE TABLE tp(a INT PRIMARY KEY)ENGINE=InnoDB ROW_FORMAT=DYNAMIC; |
|||
SYS_TABLES clustered index root page (8): |
|||
N_RECS=9; LEVEL=0; INDEX_ID=0x0000000000000001 |
|||
-header=0x01000003016e (NAME=0x696e66696d756d00) |
|||
-header=0x00002815008d (NAME='SYS_DATAFILES', |
|||
- DB_TRX_ID=0x000000000301, |
|||
- DB_ROLL_PTR=0x81000001320194, |
|||
- ID=0x000000000000000e, |
|||
+header=0x0100000301bf (NAME=0x696e66696d756d00) |
|||
+header=0x0000301500de (NAME='SYS_DATAFILES', |
|||
+ DB_TRX_ID=0x000000000302, |
|||
+ DB_ROLL_PTR=0x81000001330194, |
|||
+ ID=0x000000000000000f, |
|||
N_COLS=0x00000002, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000040, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000000) |
|||
-header=0x0000101500d5 (NAME='SYS_FOREIGN', |
|||
+header=0x000018150126 (NAME='SYS_FOREIGN', |
|||
DB_TRX_ID=0x000000000300, |
|||
- DB_ROLL_PTR=0x800000012d0110, |
|||
- ID=0x000000000000000b, |
|||
+ DB_ROLL_PTR=0x800000012d016f, |
|||
+ ID=0x000000000000000c, |
|||
N_COLS=0x00000004, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000040, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000000) |
|||
-header=0x000018150122 (NAME='SYS_FOREIGN_COLS', |
|||
+header=0x000020150173 (NAME='SYS_FOREIGN_COLS', |
|||
DB_TRX_ID=0x000000000300, |
|||
- DB_ROLL_PTR=0x800000012d0201, |
|||
- ID=0x000000000000000c, |
|||
+ DB_ROLL_PTR=0x800000012d0260, |
|||
+ ID=0x000000000000000d, |
|||
N_COLS=0x00000004, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000040, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000000) |
|||
-header=0x0400201501fc (NAME='SYS_TABLESPACES', |
|||
- DB_TRX_ID=0x000000000301, |
|||
- DB_ROLL_PTR=0x81000001320110, |
|||
- ID=0x000000000000000d, |
|||
+header=0x040028150209 (NAME='SYS_TABLESPACES', |
|||
+ DB_TRX_ID=0x000000000302, |
|||
+ DB_ROLL_PTR=0x81000001330110, |
|||
+ ID=0x000000000000000e, |
|||
N_COLS=0x00000003, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000040, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000000) |
|||
-header=0x000038150240 (NAME='test/tc', |
|||
- DB_TRX_ID=0x000000000303, |
|||
- DB_ROLL_PTR=0x83000001360110, |
|||
- ID=0x0000000000000010, |
|||
+header=0x00003815024d (NAME='test/tc', |
|||
+ DB_TRX_ID=0x000000000304, |
|||
+ DB_ROLL_PTR=0x83000001370110, |
|||
+ ID=0x0000000000000011, |
|||
N_COLS=0x80000001, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000050, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000002) |
|||
-header=0x0000401502c8 (NAME='test/td', |
|||
- DB_TRX_ID=0x000000000304, |
|||
- DB_ROLL_PTR=0x84000001370110, |
|||
- ID=0x0000000000000011, |
|||
+header=0x0000401502d5 (NAME='test/td', |
|||
+ DB_TRX_ID=0x000000000305, |
|||
+ DB_ROLL_PTR=0x84000001380110, |
|||
+ ID=0x0000000000000012, |
|||
N_COLS=0x80000001, |
|||
TYPE=0x00000021, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000050, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000003) |
|||
-header=0x0000501501b8 (NAME='test/tp', |
|||
- DB_TRX_ID=0x000000000306, |
|||
- DB_ROLL_PTR=0x86000001390110, |
|||
- ID=0x0000000000000013, |
|||
+header=0x00005015008d (NAME='test/tp', |
|||
+ DB_TRX_ID=0x000000000307, |
|||
+ DB_ROLL_PTR=0x860000013a0110, |
|||
+ ID=0x0000000000000014, |
|||
N_COLS=0x80000001, |
|||
TYPE=0x00000021, |
|||
MIX_ID=0x0000000000000000, |
|||
MIX_LEN=0x00000050, |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000005) |
|||
-header=0x000030150284 (NAME='test/tr', |
|||
- DB_TRX_ID=0x000000000302, |
|||
- DB_ROLL_PTR=0x82000001350110, |
|||
- ID=0x000000000000000f, |
|||
+header=0x000010150291 (NAME='test/tr', |
|||
+ DB_TRX_ID=0x000000000303, |
|||
+ DB_ROLL_PTR=0x82000001360110, |
|||
+ ID=0x0000000000000010, |
|||
N_COLS=0x00000001, |
|||
TYPE=0x00000001, |
|||
MIX_ID=0x0000000000000000, |
|||
@@ -92,9 +92,9 @@ |
|||
CLUSTER_NAME=NULL(0 bytes), |
|||
SPACE=0x00000001) |
|||
header=0x000048150074 (NAME='test/tz', |
|||
- DB_TRX_ID=0x000000000305, |
|||
- DB_ROLL_PTR=0x85000001380110, |
|||
- ID=0x0000000000000012, |
|||
+ DB_TRX_ID=0x000000000306, |
|||
+ DB_ROLL_PTR=0x85000001390110, |
|||
+ ID=0x0000000000000013, |
|||
N_COLS=0x80000001, |
|||
TYPE=0x00000023, |
|||
MIX_ID=0x0000000000000000, |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue