| 1 |
--source include/have_innodb.inc |
| 2 |
--source include/have_debug.inc |
| 3 |
--source include/have_debug_sync.inc |
| 4 |
|
| 5 |
# |
| 6 |
# MDEV-17005 ASAN heap-use-after-free in innobase_get_computed_value |
| 7 |
# |
| 8 |
CREATE TABLE t1 (a INT, b INT AS (a), KEY(b)) ENGINE=InnoDB; |
| 9 |
|
| 10 |
INSERT INTO t1 () VALUES (),(); |
| 11 |
--connect (con1,localhost,root,,test) |
| 12 |
ALTER TABLE t1 ADD COLUMN x INT as (a), add key(x), ALGORITHM=COPY; |
| 13 |
SET debug_sync= "ib_open_after_dict_open SIGNAL delete_open WAIT_FOR another_open"; |
| 14 |
--send |
| 15 |
DELETE FROM t1; |
| 16 |
--connection default |
| 17 |
SET debug_sync= "now WAIT_FOR delete_open"; |
| 18 |
SELECT a FROM t1; |
| 19 |
SET debug_sync= "now SIGNAL another_open"; |
| 20 |
--connection con1 |
| 21 |
--reap |
| 22 |
|
| 23 |
# Cleanup |
| 24 |
--disconnect con1 |
| 25 |
--connection default |
| 26 |
SET debug_sync= "RESET"; |
| 27 |
DROP TABLE t1; |