Bug #52266 | Trying to lock unitialized mutex at storage/myisam/ha_myisam.cc, line 1712 | ||
---|---|---|---|
Submitted: | 22 Mar 2010 6:18 | Modified: | 16 Sep 2010 5:43 |
Reporter: | Philip Stoev | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Locking | Severity: | S2 (Serious) |
Version: | mysql-trunk-runtime-exp | OS: | Any |
Assigned to: | Konstantin Osipov | CPU Architecture: | Any |
[22 Mar 2010 6:18]
Philip Stoev
[22 Mar 2010 6:28]
Philip Stoev
Core and binary: http://mysql-systemqa.s3.amazonaws.com/var-bug52266.zip Source: revision-id: kostja@sun.com-20100319105459-qa2716enp8v22cj1 date: 2010-03-19 13:54:59 +0300 build-date: 2010-03-22 08:20:37 +0200 revno: 2999 branch-nick: mysql-trunk-runtime-exp
[22 Mar 2010 8:24]
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/103930 3000 Konstantin Osipov 2010-03-22 An attempt to fix Bug#52266 "Trying to lock unitialized mutex at storage/myisam/ha_myisam.cc": when we call open_table_from_share() there is almost no reference to the share except the one on MDL_lock, and this can go away quickly if someone releases a lock/table in a concurrent connection. Make sure we conservatively reference the share so that it doesn't disappear while we add a new table to its list of used tables.
[22 Mar 2010 8:28]
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/103932 3000 Konstantin Osipov 2010-03-22 An attempt to fix Bug#52266 "Trying to lock unitialized mutex at storage/myisam/ha_myisam.cc": when we call open_table_from_share() there is almost no reference to the share except the one on MDL_lock, and this can go away quickly if someone releases a lock/table in a concurrent connection. Make sure we conservatively reference the share so that it doesn't disappear while we add a new table to its list of used tables.
[29 Mar 2010 16:02]
Philip Stoev
The patch provided by Kostja appears to fix this issue.
[16 Sep 2010 5:43]
Konstantin Osipov
The bug is not in any released version, the project this bug was found in is complete.