[MDEV-2516] LP:902654 - MariaDB consistently crashes in collect_tables on Aria checkpoint execution Created: 2011-12-11 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Scott Feldstein (Inactive) | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Hi, OS info: Memory (with MariaDB running): This occurs just about every 5 minutes on the dot, but sometimes it crashes out of band. mysqld_safe continuously restarts it. Attached info includes: To repro, simply create a db, run the data_tables.sql script to create all the tables and it will start to crash. |
| Comments |
| Comment by Scott Feldstein (Inactive) [ 2011-12-11 ] |
|
Re: MariaDB consistently crashes |
| Comment by Scott Feldstein (Inactive) [ 2011-12-11 ] |
|
mariadb.crash.info.tgz |
| Comment by Elena Stepanova [ 2011-12-12 ] |
|
Re: MariaDB consistently crashes Just creating the tables doesn't seem to cause the crash, at least it isn't crashing for me so far. I used the same settings as you. Your log suggests that your server is not idle, you have some scheduled activity, in a cronjob or such – something that connects to the server and apparently executes something. Could you find out what is executed? The connection looks local, that is whatever is running, is probably on the same box. If you could turn on the general log temporarily, its output could help to understand what flow causes the problem. To turn on logging, set general_log=1 and global general_log_file=<file location>. If you do it on a running server, please make sure you are changing global variables (set global); but it would be more useful if you could set them in the cnf file, so we see the whole activity from the server restart and till the crash. One more thing, in the log file, when the problem started, the server complains about mysql.user and mysql.db tables being crashed. Could you please check if they are OK now (run check table on them), just so we know we are not dealing with an underlying condition? Thank you |
| Comment by Scott Feldstein (Inactive) [ 2011-12-15 ] |
|
Re: MariaDB consistently crashes |
| Comment by Scott Feldstein (Inactive) [ 2011-12-15 ] |
|
attaching mysql general log |
| Comment by Elena Stepanova [ 2011-12-19 ] |
|
Re: MariaDB consistently crashes Thank you for the provided log. I have not succeeded so far at reproducing the problem, even by imitating the flow similar to yours, and using the identical data structures; ran tests both on RHEL 5.6 (although with less memory), and OpenSUSE with the same memory-related settings. I'll try to find configuration resembling yours more closely. Is it correct that you only had the problem on RHEL 5.6, and only with aria-pagecache-buffer-size=12G? Also, the general log that you provided has a bit different crashing pattern comparing to the previous error log. the first log shows that the server crashed about every 5 min for the first hour, then in 10 min, then in 50 min; and further with the same 2-hour cycle. If you happen to have a general log from any of such servers (where the crashes follow an uneven but stable pattern), it could also help. |
| Comment by Scott Feldstein (Inactive) [ 2011-12-20 ] |
|
Re: MariaDB consistently crashes thanks. |
| Comment by Scott Feldstein (Inactive) [ 2011-12-20 ] |
|
Hi, thanks. |
| Comment by Scott Feldstein (Inactive) [ 2012-02-04 ] |
|
Re: MariaDB consistently crashes I have attached a bundle which will allow you to do the same. follow these instructions:
It turns out that the monitoring solution that we use calls "show /*!50002 global */ status" by default this runs every 5 mins (same interval as the crash). When i change the interval on the monitoring solution to 20 mins, then mariadb crashes every 20 mins. When i turn it off the agent then mariadb is stable. Please let me know if you are having issues with the script or are not able to reproduce. It works every time for me and the version of centos / rhel has nothing to do with it as i previously thought. thanks. |
| Comment by Scott Feldstein (Inactive) [ 2012-02-04 ] |
|
Hi, I have attached a bundle which will allow you to do the same. follow these instructions:
It turns out that the monitoring solution that we use calls "show /*!50002 global */ status" by default this runs every 5 mins (same interval as the crash). When i change the interval on the monitoring solution to 20 mins, then mariadb crashes every 20 mins. When i turn it off the agent then mariadb is stable. Please let me know if you are having issues with the script or are not able to reproduce. It works every time for me and the version of centos / rhel has nothing to do with it as i previously thought. thanks. |
| Comment by Elena Stepanova [ 2012-02-07 ] |
|
Re: MariaDB consistently crashes I am attaching an MTR testcase, it is based on the flow that Scott provided, only converted in mysqltest format and reduced. The test fails for me reliably on 5.2 and 5.3 debug server. If it doesn't cause the crash, try the algorithm suggested by Scott, it worked for me too. Debug assertion: mysqld: ma_checkpoint.c:949: collect_tables: Assertion `state_copy < state_copies_end' failed #8 0xb7571014 in __assert_fail () from /lib/libc.so.6 Release crash: #3 0x0825ab96 in handle_segfault (sig=11) at mysqld.cc:2838 |
| Comment by Elena Stepanova [ 2012-02-07 ] |
|
Thank you, now I can reproduce the problem. I am attaching an MTR testcase, it is based on the flow that Scott provided, only converted in mysqltest format and reduced. The test fails for me reliably on 5.2 and 5.3 debug server. If it doesn't cause the crash, try the algorithm suggested by Scott, it worked for me too. Debug assertion: mysqld: ma_checkpoint.c:949: collect_tables: Assertion `state_copy < state_copies_end' failed #8 0xb7571014 in __assert_fail () from /lib/libc.so.6 Release crash: #3 0x0825ab96 in handle_segfault (sig=11) at mysqld.cc:2838 bug902654.test |
| Comment by Michael Widenius [ 2012-02-20 ] |
|
Re: MariaDB consistently crashes in collect_tables on Aria checkpoint execution |
| Comment by Rasmus Johansson (Inactive) [ 2012-03-05 ] |
|
Launchpad bug id: 902654 |
| Comment by Scott Feldstein (Inactive) [ 2012-03-05 ] |
|
Re: MariaDB consistently crashes in collect_tables on Aria checkpoint execution I'm very impressed with the quick turnover. Thanks! |