Bug #16626 | SELECT on information_schema causes the server to crash | ||
---|---|---|---|
Submitted: | 19 Jan 2006 9:59 | Modified: | 23 Jan 2006 9:35 |
Reporter: | Karl Nyberg | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.18-standard-log | OS: | Linux (RHEL4 WS x86) |
Assigned to: | CPU Architecture: | Any |
[19 Jan 2006 9:59]
Karl Nyberg
[19 Jan 2006 10:36]
Karl Nyberg
Problem was isolated to the errorneous size of the innoDB log file From the previous error log (message on server startup): InnoDB: Error: log file /var/lib/mysql/iblogs/ib_logfile0 is of different size 0 5242880 bytes InnoDB: than specified in the .cnf file 0 67108864 bytes! The problem occured when switching to a new .cnf file where the innoDB log size setting was altered from the vanilla startup settings. After removing the old log files (this is a test system) and restarting the server everything seems to work fine. I would still consider this a bug even though it was caused by a faulty setting.
[21 Jan 2006 11:12]
Valeriy Kravchuk
Thank you for a problem report. Sorry, but I was not able to repeat the problem with latest 5.0.19-BK on Fedora Core. I intentionally started server with incorrect log size: [openxs@Fedora 5.0]$ bin/mysqld_safe --innodb_log_file_size=52428800 & and got the same message upon startup: 060121 13:48:33 mysqld started InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes InnoDB: than specified in the .cnf file 0 52428800 bytes! 060121 13:48:34 [Note] /home/openxs/dbs/5.0/libexec/mysqld: ready for connections. Then I tried SELECT * (and SELECT COUNT(*)) from all the tables you mentioned, and got correct results, but plenty of error messages in the error log like: Version: '5.0.19' socket: '/tmp/mysql.sock' port: 3306 Source distribution 060121 13:49:07 [ERROR] /home/openxs/dbs/5.0/libexec/mysqld: Incorrect information in file: './test/comp2drugs.frm' 060121 13:49:07 [ERROR] /home/openxs/dbs/5.0/libexec/mysqld: Incorrect information in file: './test/comp2drugs.frm' 060121 13:49:07 [ERROR] /home/openxs/dbs/5.0/libexec/mysqld: Incorrect information in file: './test/compounds.frm' ... But no crash.
[23 Jan 2006 9:35]
Karl Nyberg
Hi Valeriy, I have been able to repeat the behaviour when doing as you did so the problem still remains on my installation. Good thing if the problem is gone in 5.0.19 on Fedora and I will check if upgrading solves the issue when 5.0.19 for RedHat goes public and otherwise I will resend the bug. Still, if the error messages that you get are reflecting errorneous information in the information_schema this might still pose a problem for people like me who have stopped parsing the SHOW CREATE statements for metadata. Errorneous size of the logfile could possibly be considered a killer for the startup script to avoid pointer exceptions? Best regards, Karl