[MDEV-9569] Crash during import with failed assertion purge_sys->rseg->last_page_no != FIL_NULL Created: 2016-02-16 Updated: 2022-11-10 Resolved: 2022-11-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 10.0.16 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Ettore Pasquini | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | crash, innodb, mysqldump, xtradb | ||
| Environment: |
OpenBSD 5.7 |
||
| Description |
|
I have a small MySQL 5.1.70 InnoDB database: 4 tables; ~3K, ~23K, ~500K, ~600K rows. This runs on OpenBSD 5.4 with no issues. I'm testing an upgrade to OpenBSD 5.7 / MariaDB 10.0.16 on a staging server (500 Mhz PPC iBook). I've recreated the db schema to match the prod one and ran `mysql_upgrade --force` just to be safe. I dumped the prod data (just text/numbers, no blobs/binaries) with:
The dump file size is 116M. The problem is that MariaDB keeps aborting randomly while importing the first table from the dump, which is just ~23K rows. Importing a different table first yields equal results.
The line where it crashes is a normal INSERT no different from thousands before that one, such as: INSERT INTO `atable` VALUES (477, 'a@example.com', 'abc', 'abc', 'abcde', 1200, 0, 0, 0, '2ba53bc6de4e8e66c9bd19da2414725c53033e8bd76e942a7a282de54cb3d834', 0,'LPLHUCORFZGRSROEMHRZG', NULL, 1329510762, NULL, 'N'); In fact repeating the import again (after truncating tables and ensuring server starts ok) will NOT crash at the same line. I've seen it crash anywhere between 1000 to 9000 rows, never at the same row. So I ruled out the bad data hypothesis. During the import there's no high memory pressure (`top` reported 200+Mb free RAM) and there's plenty of disk space (3.3 GB). I've also ruled out possible hardware issues because using MySQL never gave me a problem on the same data set. The error log shows the following (from server startup to crash):
Here's my my.cnf file:
Increasing `innodb_buffer_pool_size/innodb_log_file_size` to `256M/64M` seemed to post-pone the crash a little but didn't help significantly. Reducing/Increasing max_allowed_packet (also using extended-inserts) didn't help either. I also tried to completely uninstall/reinstall MariaDB and use the default my.cnf, to no avail. |
| Comments |
| Comment by Elena Stepanova [ 2016-02-17 ] | |||||||
|
Could you please upload the dump to our ftp.askmonty.org/private ? Only MariaDB developers will have access to it. Also, it would be a big help if you could
Do you build the server from sources, or do you use a binary tarball, or some OpenBSD-specific binary package? | |||||||
| Comment by Ettore Pasquini [ 2016-02-17 ] | |||||||
|
I will upload what you ask soon. To answer some of your questions:
| |||||||
| Comment by Ettore Pasquini [ 2016-02-17 ] | |||||||
|
elenst,
but when the server crashes I am not able to see any core dump being saved, even after scanning the whole disk for files like "core*". Not sure why it's not writing the core. I've seen some documentation mentioning --core-file and --stack-trace options but at least the latter is not being accepted. I uploaded the dump + schema SQL + the error log to the private website. The archive is called | |||||||
| Comment by Elena Stepanova [ 2016-02-22 ] | |||||||
|
Could you please take a look for any idea what it could be? Something PPC-related, perhaps? |