summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorMagne Mahre <magne.mahre@sun.com>2009-12-08 13:19:38 +0100
committerMagne Mahre <magne.mahre@sun.com>2009-12-08 13:19:38 +0100
commit0eb255ee8dbe33c4004072ff64c288f8c882732b (patch)
tree18b6cd2a0d6c87cc451817b297e133775ef234ea /mysql-test
parent480537511320ab3db89a751c5214b1f724beee3d (diff)
downloadmariadb-git-0eb255ee8dbe33c4004072ff64c288f8c882732b.tar.gz
Bug#35589 SET PASSWORD caused a crash
Bug#35591 FLUSH PRIVILEGES caused a crash A race condition on the privilege hash tables (proc_priv_hash and func_priv_hash) caused one thread to try to delete elements that had already been deleted by another thread. The bug was caused by reading and saving the pointers to the hash tables outside mutex protection. This led to an inconsistency where a thread copied a pointer to a hash, another thread did the same, the first thread then deleted the hash, and the second then crashed when it in turn tried to delete the deleted hash. The fix is to ensure that operations on the shared hash structures happens under mutex protection (moving the locking up a little)
Diffstat (limited to 'mysql-test')
0 files changed, 0 insertions, 0 deletions