[debian-mysql] Bug#1154767: mariadb-server-core: InnoDB statistics worker repeatedly terminates mariadbd with SIGFPE on a corrupted secondary index

Christian Clas christian at clas.de
Sun Nov 22 10:52:07 GMT 2026


Package: mariadb-server-core
Version: 1:11.8.6-0+deb13u1
Severity: important

MariaDB terminated 24 times with the same integer divide error while an
InnoDB background worker was calculating persistent statistics. Each
automatic restart initially restored service. After the last crash, normal
startup could no longer complete because redo recovery encountered a
corrupted secondary-index page.

Environment

Debian 13, amd64, MariaDB 11.8.6. InnoDB used 16 KiB pages, full_crc32
checksums, doublewrite enabled and Linux native AIO. Persistent statistics
and automatic recalculation were enabled.

Observed failure

Before the first crash, InnoDB reported a missing secondary-index entry
during transaction rollback. It subsequently reported reads beyond the end
of the affected tablespace.

All 24 crashes had the same four build-relative offsets. The kernel
recorded an integer divide error in the InnoDB worker. The crashing thread
had no active client query. Using the matching Debian debug symbols, we
resolved the stack to:

0xff3fc4 dict_stats_analyze_index dict0stats.cc, line 2259
0xff45cc dict_stats_update_persistent dict0stats.cc, line 2668
0xff4a62 dict_stats_update_persistent_try dict0stats.cc, line 2712
0xff579a dict_stats_func dict0stats_bg.cc, line 333

The faulting instruction maps to division by data->n_recs_on_level. The
caller at line 2668 was analyzing a secondary index.

An offline examination found invalid child-page references in the index
root, although the page passed its physical checksum. We rebuilt the
affected table from verified rows. The rebuilt index passed CHECK TABLE and
subsequent verification after a normal restart. We could establish the
crash mechanism, but we could not determine what originally damaged the
index. We do not have a standalone reproducer.

Expected behavior

When an index scan returns zero records at a level where the statistics
calculation requires a positive count, InnoDB should abandon the
calculation, report the index error and keep the database server available.

Question for the maintainers

In MDEV-33512, a MariaDB maintainer identified the same denominator in a
SIGFPE involving tablespace import. We have no evidence that an import
caused this incident. Is the statistics-worker failure tracked
independently of the original corruption? If a fix exists, which 11.8
release includes it, and is it a candidate for Debian stable?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-mysql-maint/attachments/20261122/915432fe/attachment.htm>


More information about the pkg-mysql-maint mailing list