Server crashes in add_identifier on concurrent ALTER TABLE and SHOW ENGINE INNODB STATUS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
|||
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Critical
|
Sergei Glushchenko | ||
5.5 |
Fix Released
|
Critical
|
Sergei Glushchenko |
Bug Description
Percona XtraDB 1.1.8-27.0 started
#3 <signal handler called>
#4 0x000000000066373a in add_identifier (thd=0x2854b30, to_p=0x7f6f26df5c6a "\337&o\177", end_p=0x7f6f26d
#5 0x000000000066433d in explain_filename (thd=0x2854b30, from=0x7f6f26df5d40 "#sql-4d62_2#P#p0", to=0x7f6f26df5c40 "`#sql-4d62_2#P#p0` /* Temporary Partition \337&o\177", to_length=256, explain_
#6 0x00000000008c9ac0 in innobase_
#7 0x00000000008c9df4 in innobase_
#8 0x000000000095aeba in ut_print_namel (f=0x26d0260, trx=0x28f6798, table_id=1, name=0x7f6f1c002b40 "test/#
#9 0x000000000095ae30 in ut_print_name (f=0x26d0260, trx=0x28f6798, table_id=1, name=0x7f6f1c002b40 "test/#
#10 0x0000000000a1ecc8 in lock_table_print (file=0x26d0260, lock=0x28ee1c8) at storage/
#11 0x0000000000a1faad in lock_print_
#12 0x00000000009233c5 in srv_printf_
#13 0x00000000008d7c4f in innodb_show_status (hton=0x2288840, thd=0x28f9830, stat_print=0x756c8f <stat_print(THD*, char const*, uint, char const*, uint, char const*, uint)>) at storage/
#14 0x00000000008d86e9 in innobase_
#15 0x0000000000756fde in ha_show_status (thd=0x28f9830, db_type=0x2288840, stat=HA_
#16 0x00000000005e6873 in mysql_execute_
#17 0x00000000005ef600 in mysql_parse (thd=0x28f9830, rawbuf=0x2904990 "SHOW ENGINE INNODB STATUS", length=25, parser_
#18 0x00000000005e34f0 in dispatch_command (command=COM_QUERY, thd=0x28f9830, packet=0x28fc961 "", packet_length=25) at sql/sql_
#19 0x00000000005e27d1 in do_command (thd=0x28f9830) at sql/sql_
#20 0x00000000006c9024 in do_handle_
#21 0x00000000006c8a0a in handle_
#22 0x0000000000aa5fa7 in pfs_spawn_thread (arg=0x2857e80) at storage/
#23 0x00007f6f2eea0efc in start_thread (arg=0x7f6f26df
#24 0x00007f6f2e21359d in clone () at ../sysdeps/
bzr version-info
revision-id: <email address hidden>
date: 2012-06-21 14:36:22 +0200
build-date: 2012-06-24 20:18:16 +0400
revno: 270
# MTR test case:
--source include/
--source include/
CREATE TABLE IF NOT EXISTS t1 (`a` INT) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1),(2),(3),(4);
--connect (con1,localhost
--let $run = 100
while ($run)
{
--send ALTER TABLE t1 PARTITION BY HASH (`a`) PARTITIONS 4
--let $show = 300
while ($show)
{
}
--reap
--dec $run
}
DROP TABLE t1;
# End of MTR test case
# If it does not work, try the RQG grammar
# cat 1.yy
query_init:
CREATE TABLE IF NOT EXISTS t1 (`a` INT) ENGINE=InnoDB
; INSERT INTO t1 VALUES (1),(2),(3),(4);
thread1:
SHOW ENGINE INNODB STATUS;
query:
ALTER TABLE t1 PARTITION BY HASH (`a`) PARTITIONS 4 ;
# End of RQG grammar
# run as
perl ./runall.pl \
--threads=2 \
--queries=100M \
--duration=300 \
--skip-gendata \
--grammar=1.yy \
--basedir=<your basedir>
Related branches
- Stewart Smith (community): Approve
-
Diff: 142 lines (+65/-7)3 files modifiedPercona-Server/mysql-test/r/percona_bug1017192.result (+10/-0)
Percona-Server/mysql-test/t/percona_bug1017192.test (+40/-0)
Percona-Server/sql/sql_table.cc (+15/-7)
Changed in percona-server: | |
importance: | Undecided → High |
Changed in percona-server: | |
status: | New → In Progress |
importance: | High → Critical |
assignee: | nobody → Stewart Smith (stewart) |
milestone: | none → 5.5.27-28.1 |
no longer affects: | maria |
tags: | added: upstream |
See bug#1036506 which is a possible duplicate