Bug #35777 | Server crashes on table specific GRANT | ||
---|---|---|---|
Submitted: | 2 Apr 2008 22:20 | Modified: | 17 Jul 2013 12:40 |
Reporter: | Clint Byrum | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: Security: Privileges | Severity: | S2 (Serious) |
Version: | 5.0.51A, 5.0 BK | OS: | Linux (x86-64 CentOS 4) |
Assigned to: | CPU Architecture: | Any |
[2 Apr 2008 22:20]
Clint Byrum
[3 Apr 2008 5:14]
Sveta Smirnova
Thank you for the report. Did you upgrade to version 5.0.51a before having problems? Did you run mysql_upgrade? How much physical RAM do you have?
[3 Apr 2008 8:27]
Clint Byrum
I never tried any table specific grants on the previous verison of MySQL. All of the data in this instance was imported from mysql 4.1.22 by mysqldump from 4.1 piped directly to the 'mysql' CLI. mysql_upgrade was indeed run, in fact I just re-ran it to be sure. It did find a couple of MyISAM tables that were copied directly from a 4.1.22 server, but none that were mentioned in these GRANTS, and none from the mysql database. The server is an HP DL580 w/ 4 dual core CPU's and 64GB of RAM installed.
[3 Apr 2008 19:04]
Clint Byrum
Well I just finished running mysql_upgrade and it reminded me that I hadn't run mysql_fix_privilege_tables yet. After running that, the server no longer crashes on grant. After performing the mysql_upgrade, I shut down the server, moved the old "mysql" database back into place from backup, and started the server again. The grants mentioned before again crashed the server. Running mysql_upgrade on this database again, prevented the crash again. Seems the server should just print an error when the tables need updating, rather than crashing...
[3 Apr 2008 19:15]
Sveta Smirnova
Clint, thank you for the feedback. You are right: not crash, but error would be displayed. But to fix this we need to repeat the problem first. If you could upload compressed old mysql database to us would be helpful to find the problem.
[3 Apr 2008 20:34]
Clint Byrum
mysql-from-41.tgz has the database that causes the crash.
[3 Apr 2008 21:04]
Sveta Smirnova
Thank you for the feedback. Verified as described.
[8 Apr 2008 20:23]
Sveta Smirnova
Changing Impact and Workaround values, but set to "Verified" again as server should not crash.
[29 Oct 2008 1:05]
Dan Fulbright
This bug also exists in MySQL 5.0.67 for Windows. My apologies if there is a separate bug for the Windows version.
[17 Jul 2013 12:40]
Erlend Dahl
[11 Jul 2013 3:46] Anirudh Mangipudi The bug is reproducible only in the version reported(5.0). But it is not reproducible in 5.1+ versions.