Bug #2505 MySQL reports "out of memory" when DROP USER if --skip-grant-tables
Submitted: 25 Jan 2004 8:58 Modified: 26 Jan 2004 8:33
Reporter: Guilhem Bichot Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.1 OS:Any (all)
Assigned to: Sergei Glukhov CPU Architecture:Any

[25 Jan 2004 8:58] Guilhem Bichot
Description:
Run mysqld with --skip-grant-tables and do
drop user lkjzlljzdkz;

How to repeat:
Run mysqld with --skip-grant-tables and do
drop user lkjzlljzdkz;

Suggested fix:
We have this:

int open_grant_tables(THD *thd, TABLE_LIST *tables)
{
  DBUG_ENTER("open_grant_tables");

  if (!initialized)
  {
    send_error(thd, ER_OUT_OF_RESOURCES, ER(ER_OUT_OF_RESOURCES));
    DBUG_RETURN(-1);
  }

But when skip-grant-tables, initialized==0 ...