Bug #20866 | show table status on innodb raises assertion | ||
---|---|---|---|
Submitted: | 5 Jul 2006 13:49 | Modified: | 18 Jun 2010 12:46 |
Reporter: | Andrei Elkin | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S1 (Critical) |
Version: | 5.1.12 | OS: | Linux (Ubuntu 5.10) |
Assigned to: | Guilhem Bichot | CPU Architecture: | Any |
[5 Jul 2006 13:49]
Andrei Elkin
[6 Jul 2006 7:07]
Marko Mäkelä
Please search for dbug_tmp_use_all_columns in http://lists.mysql.com/internals/33654. Without having looked at the test case, I guess that the auto-increment column does not belong to the result set of the query.
[16 Jul 2006 11:23]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/9208
[31 Jul 2006 14:12]
Heikki Tuuri
This might have something to do with http://bugs.mysql.com/bug.php?id=20493
[15 Aug 2006 10:21]
Andrei Elkin
A patch that was submitted merely modified disabled to blame this bug, instead of bug#19057 for rpl_row_func003 is on-hold. "Patch pending" state was set occasionally wrong! Note, that Bug#21173 should relate to this one or simply a dup.
[28 Aug 2006 12:37]
Guilhem Bichot
Heikki, don't bother, I have a patch for this, I'll fix: ===== ha_innodb.cc 1.286 vs edited ===== *** /tmp/bk_ha_innodb.cc-1.286_wl9WMI 2006-08-28 14:35:28 +02:00 --- edited/ha_innodb.cc 2006-08-28 14:06:15 +02:00 *************** *** 7063,7072 **** 'found_next_number_field' below because MySQL in SHOW TABLE STATUS does not seem to set 'next_number_field'. The comment in table.h says that 'next_number_field' is set when it is ! 'active'. */ auto_inc = (longlong) table->found_next_number_field-> val_int_offset(table->s->rec_buff_length) + 1; } dict_table_autoinc_initialize(prebuilt->table, auto_inc); --- 7063,7078 ---- 'found_next_number_field' below because MySQL in SHOW TABLE STATUS does not seem to set 'next_number_field'. The comment in table.h says that 'next_number_field' is set when it is ! 'active'. ! Since 5.1 MySQL enforces that we announce fields which we will ! read; as we only do a val_*() call, dbug_tmp_use_all_columns() ! is sufficient. */ + my_bitmap_map *old_map; + old_map= dbug_tmp_use_all_columns(table, table->read_set); auto_inc = (longlong) table->found_next_number_field-> val_int_offset(table->s->rec_buff_length) + 1; + dbug_tmp_restore_column_map(table->read_set, old_map); } dict_table_autoinc_initialize(prebuilt->table, auto_inc); Setting Chad as Lead as I'll push in his tree.
[28 Aug 2006 20:32]
Guilhem Bichot
sent some questions to Chad
[29 Aug 2006 13:08]
Guilhem Bichot
by the way the problem exists only in debug builds
[29 Aug 2006 13:38]
Guilhem Bichot
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/11009 ChangeSet@1.2288, 2006-08-29 15:35:05+02:00, guilhem@gbichot3.local +2 -0 Fix for BUG#20866 "show table status on innodb raises assertion" and its duplicate BUG#19057 "Test 'rpl_row_func003' fails on SuSE SLES9 x86". It was an assertion failure, only in debug builds, not present in released versions (nothing to document). It happened when doing SHOW TABLE STATUS on an InnoDB table having an auto_increment column, right after creating the table. The test which would have caught this problem was disabled in mid-April for another reason (how much I like tests disabled for months...).
[29 Aug 2006 19:39]
Guilhem Bichot
pushed in 5.1-maint tree. Nothing to document (bug was not released).
[13 Sep 2006 8:41]
Timothy Smith
Pushed to 5.1.12
[5 May 2010 15:09]
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 2:17]
Paul DuBois
Push resulted from incorporation of InnoDB tree. No changes pertinent to this bug. Re-closing.
[28 May 2010 6:02]
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:31]
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:59]
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)
[29 May 2010 2:49]
Paul DuBois
Push resulted from incorporation of InnoDB tree. No changes pertinent to this bug. Re-closing.
[17 Jun 2010 12:06]
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:51]
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:33]
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)