Bug #38786 | InnoDB plugin crashes on drop table/create table with FK | ||
---|---|---|---|
Submitted: | 14 Aug 2008 0:23 | Modified: | 20 Jun 2010 17:30 |
Reporter: | Vadim TKACHENKO | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB Plugin storage engine | Severity: | S1 (Critical) |
Version: | 5.1.26, 5.1 bzr + 1.0.1 plugin | OS: | Any |
Assigned to: | Marko Mäkelä | CPU Architecture: | Any |
Tags: | qc |
[14 Aug 2008 0:23]
Vadim TKACHENKO
[15 Aug 2008 10:28]
Sveta Smirnova
Thank you for the report. Verified as described. Stack trace: (gdb) bt #0 0x002ce402 in __kernel_vsyscall () #1 0x0046264f in pthread_kill () from /lib/libpthread.so.0 #2 0x086c49ad in my_write_core (sig=11) at stacktrace.c:310 #3 0x08271d8b in handle_segfault (sig=11) at mysqld.cc:2507 #4 <signal handler called> #5 0x08530c75 in cmp_cols_are_equal (col1=0xb72bb178, col2=0x2, check_charsets=1) at rem/rem0cmp.c:129 #6 0x084ec9da in dict_foreign_find_index (table=0xb72bb068, columns=0xb72c59e8, n_cols=1, types_idx=0xb72ba068, check_charsets=1, check_null=0) at dict/dict0dict.c:2111 #7 0x084ecdd9 in dict_foreign_add_to_cache (foreign=0xb72bff68, check_charsets=1) at dict/dict0dict.c:2284 #8 0x084f3622 in dict_load_foreign (id=0xb72bfc98 "test/fk_t2_ca", check_charsets=1) at dict/dict0load.c:1294 #9 0x084f38f8 in dict_load_foreigns (table_name=0xb2b12edc "test/t1", check_charsets=1) at dict/dict0load.c:1410 #10 0x0853eb30 in row_table_add_foreign_constraints (trx=0xb72be468, sql_string=0xa03ef58 "CREATE TABLE t1(\nc1 BIGINT(12) NOT NULL,\nPRIMARY KEY (c1)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1", name=0xb2b12edc "test/t1", reject_fks=0) at row/row0mysql.c:2057 #11 0x084c7359 in ha_innobase::create (this=0xa030458, name=0xb2b14144 "./test/t1", form=0xb2b1337c, create_info=0xb2b14634) at handler/ha_innodb.cc:5880 #12 0x083a605e in handler::ha_create (this=0xa030458, name=0xb2b14144 "./test/t1", form=0xb2b1337c, info=0xb2b14634) at handler.cc:3216 #13 0x083a67a6 in ha_create_table (thd=0x9fe7468, path=0xb2b14144 "./test/t1", db=0xa03f270 "test", table_name=0xa03f068 "t1", create_info=0xb2b14634, update_create_info=false) at handler.cc:3487 #14 0x0835b5b4 in rea_create_table (thd=0x9fe7468, path=0xb2b14144 "./test/t1", db=0xa03f270 "test", table_name=0xa03f068 "t1", create_info=0xb2b14634, create_fields=@0xb2b14b24, keys=1, key_info=0xa03f558, file=0xa03f410) at unireg.cc:408 #15 0x083c1526 in mysql_create_table_no_lock (thd=0x9fe7468, db=0xa03f270 "test", table_name=0xa03f068 "t1", create_info=0xb2b14634, alter_info=0xb2b14b00, internal_tmp_table=false, select_field_count=0) at sql_table.cc:3552 #16 0x083c1958 in mysql_create_table (thd=0x9fe7468, db=0xa03f270 "test", table_name=0xa03f068 "t1", create_info=0xb2b14634, alter_info=0xb2b14b00, internal_tmp_table=false, select_field_count=0) at sql_table.cc:3659 #17 0x08287e93 in mysql_execute_command (thd=0x9fe7468) at sql_parse.cc:2524 #18 0x0828fd94 in mysql_parse (thd=0x9fe7468, inBuf=0xa03ef58 "CREATE TABLE t1(\nc1 BIGINT(12) NOT NULL,\nPRIMARY KEY (c1)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1", length=99, found_semicolon=0xb2b152fc) at sql_parse.cc:5656 #19 0x0829099c in dispatch_command (command=COM_QUERY, thd=0x9fe7468, packet=0xa02c039 "CREATE TABLE t1(\nc1 BIGINT(12) NOT NULL,\nPRIMARY KEY (c1)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1", packet_length=99) at sql_parse.cc:1137 #20 0x08291ba4 in do_command (thd=0x9fe7468) at sql_parse.cc:794 #21 0x0827ed91 in handle_one_connection (arg=0x9fe7468) at sql_connect.cc:1115 #22 0x0045fbd4 in start_thread () from /lib/libpthread.so.0 #23 0x003b74fe in clone () from /lib/libc.so.6 (gdb)
[15 Aug 2008 10:33]
Sveta Smirnova
Bug is not repeatable with not-plugin version of InnoDB. To repeat one needs to run test several times.
[11 Sep 2008 10:22]
Marko Mäkelä
The fix will be included in the next version of the InnoDB plugin.
[7 Jan 2009 11:47]
Marko Mäkelä
This bug has been fixed in the InnoDB Plugin 1.0.2: http://www.innodb.com/wp/2008/12/01/innodb-plugin-102-released/
[5 May 2010 15:15]
Bugs System
Pushed into 5.1.47 (revid:joro@sun.com-20100505145753-ivlt4hclbrjy8eye) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[6 May 2010 15:59]
Paul DuBois
Push resulted from incorporation of InnoDB tree. No changes pertinent to this bug. Re-closing.
[28 May 2010 5:56]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100524190136-egaq7e8zgkwb9aqi) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (pib:16)
[28 May 2010 6:24]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100524190941-nuudpx60if25wsvx) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[28 May 2010 6:52]
Bugs System
Pushed into 5.5.5-m3 (revid:alik@sun.com-20100524185725-c8k5q7v60i5nix3t) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[30 May 2010 0:03]
Paul DuBois
Push resulted from incorporation of InnoDB tree. No changes pertinent to this bug. Re-closing.
[17 Jun 2010 11:53]
Bugs System
Pushed into 5.1.47-ndb-7.0.16 (revid:martin.skold@mysql.com-20100617114014-bva0dy24yyd67697) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[17 Jun 2010 12:31]
Bugs System
Pushed into 5.1.47-ndb-6.2.19 (revid:martin.skold@mysql.com-20100617115448-idrbic6gbki37h1c) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[17 Jun 2010 13:18]
Bugs System
Pushed into 5.1.47-ndb-6.3.35 (revid:martin.skold@mysql.com-20100617114611-61aqbb52j752y116) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)