Numerous test failures due to NULL dereference in trx_search_latch_if_reserved()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Invalid
|
Undecided
|
Unassigned | ||
5.1 |
Invalid
|
Undecided
|
Unassigned | ||
5.5 |
Fix Released
|
Critical
|
Laurynas Biveinis | ||
5.6 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
A large number of tests on trunk fail on debug builds. A sample test can be reduced to
--source include/
connect (a,localhost,
connect (b,localhost,
CREATE TABLE bug47622(
`rule_key` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB;
connection a;
ALTER TABLE bug47622 ADD UNIQUE IDX_B (rule_key);
DROP TABLE bug47622;
resulting in
Thread 1 (Thread 0x7fe3e2046700 (LWP 16007)):
#0 0x00007fe3ee198f2c in __pthread_kill (threadid=
#1 0x0000000000904455 in my_write_core (sig=11) at /home/laurynas/
#2 0x000000000078587d in handle_fatal_signal (sig=11) at /home/laurynas/
#3 <signal handler called>
#4 0x00000000009a4778 in trx_search_
#5 0x00000000009a4cf3 in innobase_
#6 0x00000000009aa2fa in ha_innobase::open (this=0x7fe3d00
#7 0x000000000078a2ba in handler::ha_open (this=0x7fe3d00
#8 0x00000000006c0b17 in open_table_
#9 0x00000000005afd92 in open_table (thd=0x3b01990, table_list=
#10 0x00000000005b238f in open_and_
#11 0x00000000005b334d in open_tables (thd=0x3b01990, start=0x7fe3e20
#12 0x00000000005b4226 in open_and_
#13 0x000000000069aabb in mysql_alter_table (thd=0x3b01990, new_db=
#14 0x00000000008d8d35 in Alter_table_
#15 0x000000000060e6a0 in mysql_execute_
#16 0x00000000006113df in mysql_parse (thd=0x3b01990, rawbuf=
#17 0x0000000000604957 in dispatch_command (command=COM_QUERY, thd=0x3b01990, packet=0x3b052a1 "ALTER TABLE bug47622 ADD UNIQUE IDX_B (rule_key)", packet_length=48) at /home/laurynas/
#18 0x0000000000603b4d in do_command (thd=0x3b01990) at /home/laurynas/
#19 0x00000000006f7ab0 in do_handle_
#20 0x00000000006f75d7 in handle_
#21 0x000000000099f06e in pfs_spawn_thread (arg=0x3ae5120) at /home/laurynas/
#22 0x00007fe3ee193f8e in start_thread (arg=0x7fe3e204
#23 0x00007fe3ed478e1d in clone () at ../sysdeps/
This was caused by an incorrect lp:~akopytov/percona-server/ahi-fixes-5.5 merge to trunk (the original branch was correct, it was the merge necessitated by the GCA and trunk tip differences):
=== modified file 'Percona-
--- Percona-
+++ Percona-
@@ -1123,9 +1123,8 @@
trx = thd_to_trx(thd);
- if (trx != NULL) {
- trx_search_
- }
+ /* No-op in XtraDB */
+ trx_search_
return(0);
}
Related branches
- Laurynas Biveinis (community): Approve
-
Diff: 17 lines (+5/-2)1 file modifiedPercona-Server/storage/innobase/handler/ha_innodb.cc (+5/-2)
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PS-3045