Bug #52432 | Crash in check_table_is_closed on an information_schema query | ||
---|---|---|---|
Submitted: | 29 Mar 2010 11:25 | Modified: | 31 Jul 2010 16:48 |
Reporter: | Philip Stoev | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Locking | Severity: | S2 (Serious) |
Version: | trunk-runtime-exp, next-mr-wl5136-stage | OS: | Any |
Assigned to: | Ingo Strüwing | CPU Architecture: | Any |
[29 Mar 2010 11:25]
Philip Stoev
[29 Mar 2010 11:33]
Philip Stoev
Location of crash: (gdb) list 175 (void) fn_format(filename,name,"",MI_NAME_IEXT,4+16+32); 176 for (pos=myisam_open_list ; pos ; pos=pos->next) 177 { 178 MI_INFO *info=(MI_INFO*) pos->data; 179 MYISAM_SHARE *share=info->s; 180 if (!strcmp(share->unique_file_name,filename)) 181 { 182 if (share->last_version) 183 { 184 fprintf(stderr,"Warning: Table: %s is open on %s\n", name,where); (gdb) print share $1 = (MYISAM_SHARE *) 0x0 Source: revision-id: mikael@mysql.com-20100318145400-vws1fr0ac9o81lwd date: 2010-03-18 15:54:00 +0100 build-date: 2010-03-29 14:26:58 +0300 revno: 3054 branch-nick: mysql-next-mr-wl5136-stage Core and binary: http://mysql-systemqa.s3.amazonaws.com/var-bug52432.zip
[1 Apr 2010 16:33]
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/104925 3009 Konstantin Osipov 2010-04-01 A fix for Bug#52432 "Crash in check_table_is_closed on an information_schema query"
[7 Jun 2010 12:06]
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/110347 3041 Konstantin Osipov 2010-06-07 A fix for Bug#52432 "Crash in check_table_is_closed on an information_schema query. Porting a fix done for a feature tree by Ingo Struewing. No test case since the crash only occurs under a stress load. @ storage/myisam/mi_dbug.c Iterate over the list of MyISAM shares and access the MyISAM share internals under a lock.
[7 Jun 2010 13:33]
Konstantin Osipov
Queued in trunk-runtime.
[22 Jun 2010 13:07]
Bugs System
Pushed into 5.5.5-m3 (revid:alik@sun.com-20100622130139-u05awgya93zvbsop) (version source revid:marko.makela@oracle.com-20100603095032-v5ptkkzt1bhz0m1d) (merge vers: 5.1.48) (pib:16)
[22 Jun 2010 13:09]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100622130623-r7yhm89fz9n5t9nb) (version source revid:alik@sun.com-20100622130528-187gd949sa9b6pa6) (pib:16)
[31 Jul 2010 16:48]
Paul DuBois
Noted in 5.5.5 changelog. The check_table_is_closed() debugging function did not protect access to the MyISAM open tables list, with the result that server crashes could occur during table drop or rename operations.