Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug 1519094 (MySQL hangs randomly) #252

Merged
merged 1 commit into from
Dec 3, 2015

Conversation

laurynas-biveinis
Copy link
Contributor

The issue is incorrect upstream fix for
https://bugs.mysql.com/bug.php?id=76135. On x86, it replaced full
memory barriers at mutex lock/unlock with acquire/release ones. This
broke synchronisation between mutex lock_word and waiters flag,
resulting in missed waiting thread wakeups. These, in combination with
error monitor thread trying to acquire the mutex with a missed wakeup,
result in a server hang.

Fix by restoring previous behavior of full memory barriers on x86_64.

Not an upmerge because of 5.5.46 merge dependency.
http://jenkins.percona.com/job/percona-server-5.6-param/1036/

The issue is incorrect upstream fix for
https://bugs.mysql.com/bug.php?id=76135. On x86, it replaced full
memory barriers at mutex lock/unlock with acquire/release ones. This
broke synchronisation between mutex lock_word and waiters flag,
resulting in missed waiting thread wakeups. These, in combination with
error monitor thread trying to acquire the mutex with a missed wakeup,
result in a server hang.

Fix by restoring previous behavior of full memory barriers on x86_64.
laurynas-biveinis added a commit that referenced this pull request Dec 3, 2015
Fix bug 1519094 (MySQL hangs randomly)
@laurynas-biveinis laurynas-biveinis merged commit e5a6182 into percona:5.6 Dec 3, 2015
@laurynas-biveinis laurynas-biveinis deleted the bug1519094-5.6 branch December 3, 2015 08:37
@laurynas-biveinis laurynas-biveinis restored the bug1519094-5.6 branch December 3, 2015 08:37
@laurynas-biveinis laurynas-biveinis deleted the bug1519094-5.6 branch December 3, 2015 08:39
@laurynas-biveinis laurynas-biveinis restored the bug1519094-5.6 branch December 3, 2015 08:42
@laurynas-biveinis laurynas-biveinis deleted the bug1519094-5.6 branch September 30, 2016 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant