[MDEV-17898] FLUSH PRIVILEGES crashes server with segfault Created: 2018-12-04 Updated: 2020-08-25 Resolved: 2018-12-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.0, 10.1, 10.1.26, 10.1.37, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.1.38, 10.0.38, 10.2.20, 10.3.12 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Claudio Nanni | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
With a set of data in the mysql system schema `FLUSH PRIVILEGES` crashes the server with segfault. sql_acl.cc:5306:
What I noticed is that when the problem occurs `cur` is valued before the call to update_role_db(), but after it comes back `cur` is empty (at least if I'm not mistaken). Stack trace:
|
| Comments |
| Comment by Elena Stepanova [ 2018-12-04 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2018-12-04 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Note: the test case uses explicit lists of column names to make it applicable to all 10.x versions. The presence of the list is not essential for the issue. Note: if it doesn't crash, try ASAN builds. Non-ASAN and ASAN variations of the failure are in the previous comment.
|