Bug #99835 | mysql system table corrupted randomly for several times | ||
---|---|---|---|
Submitted: | 10 Jun 2020 8:07 | Modified: | 12 Jun 2020 1:11 |
Reporter: | wu winnie | Email Updates: | |
Status: | Unsupported | Impact on me: | |
Category: | MySQL Server: Windows | Severity: | S3 (Non-critical) |
Version: | 5.6.30 | OS: | Windows |
Assigned to: | MySQL Verification Team | CPU Architecture: | x86 |
Tags: | corrupted |
[10 Jun 2020 8:07]
wu winnie
[10 Jun 2020 8:09]
wu winnie
frm file
Attachment: procs_priv.frm (application/octet-stream, text), 8.67 KiB.
[10 Jun 2020 8:10]
wu winnie
broken MYI file
Attachment: procs_priv.myi (application/octet-stream, text), 8.00 KiB.
[11 Jun 2020 11:39]
MySQL Verification Team
Hi, This looks like not related to MySQL at all. The MYI file is corrupted with 2020-06-05 02:01:12.686 [10812] [root] [3] QuestKey.cpp:325 [ERROR] Cannot launch process: qklclw.exe Neither QuestKey.cpp nor qklclw.exe are related to MySQL server so I believe you have some external process corrupting the file. all best Bogdan
[11 Jun 2020 11:53]
MySQL Verification Team
The exe this error is complaining is failing to start seems to be part of Toad Data Point ( https://www.toadworld.com/products/toad-data-point ) and I'm not sure what's trying to start it, but possibly your storage engine, so looks like bug was introduced with your code. all best Bogdan
[11 Jun 2020 12:11]
wu winnie
Hi, Thanks for your response. yes, our product is TDP. and we have a self-designed storage engine in Mysql server. the error is thrown by our storage engine. My question is: 1. Usually, the error message is printed in MySQL error log, but why was it written into MySQL system tables randomly? Note this issue happens randomly, not always. 2. How could our own storage engine break the MYSQL's system tables?
[11 Jun 2020 12:14]
wu winnie
note even the error message is written into MySQL system table, MySQL seems could work well. but next time when MySQL tries to start, it will report their system table is broken.
[11 Jun 2020 12:22]
MySQL Verification Team
Hi, > 1. Usually, the error message is printed in MySQL error log, > but why was it written into MySQL system tables randomly? > Note this issue happens randomly, not always. Really nothing I can answer without looking at your code. > 2. How could our own storage engine break the MYSQL's system tables? Your code is operating from inside mysqld, there's nothing we can do to prevent you from writing into that file nor to write all over mysqld ram. A simple roaming pointer and you can write over output buffer.. all best Bogdan p.s. I'm sure you can get better help by opening a support ticket than bug report as this def. is not a MySQL bug; but in support ticket you can share code and get direct analysis of the problematic code.
[11 Jun 2020 13:14]
wu winnie
ok, thanks. I'll check my source code and open a support ticket. by the way, it's unnormal for a MySQL system table MYI file contains an error message, correct?
[11 Jun 2020 13:34]
MySQL Verification Team
Hi, > ok, thanks. I'll check my source code and open a support ticket. Please do. Start with the file mentioned in the error message :) and with the file logging errors. > by the way, it's unnormal for a MySQL system table MYI file contains an error message, correct? Of course, that should never happen. But how that string eded up in the index file is impossible to determine without analysis of your code and that's code is I assume proprietary and not something you would like to have in public bug report hence my suggestion you open a support ticket. all best Bogdan
[12 Jun 2020 1:11]
wu winnie
thanks very much. I will do some investigation and I think you can close this item now.