[MDEV-6489] rpl.rpl_insert, rpl.rpl_insert_delayed and main.mysqlslap fail on PPC64 Created: 2014-07-25 Updated: 2014-07-31 Resolved: 2014-07-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.12 |
| Fix Version/s: | 10.0.13 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Sergey Vojtovich | Assignee: | Sergey Vojtovich |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
All of these tests execute mysqlslap, which deadlocks. Below is simplified code from mysqlslap which also deadlocks on PPC64:
If we move broadcast call up one line so that it is protected by the mutex, the program won't deadlock. I believe there should be no difference when we call broadcase, because the manual says:
|
| Comments |
| Comment by Sergey Vojtovich [ 2014-07-25 ] | ||||||||||||||||
|
Sergei, please review fix for this bug. A patch has been pushed to 10.0.13:
| ||||||||||||||||
| Comment by Sergei Golubchik [ 2014-07-30 ] | ||||||||||||||||
|
Also, the manpage for pthread_cond_broadcast() is very explicit about it:
| ||||||||||||||||
| Comment by Sergei Golubchik [ 2014-07-30 ] | ||||||||||||||||
|
ok to push |