<p>Package: mariadb-server-core<br>
Version: 1:11.8.6-0+deb13u1<br>
Severity: important</p>
<p>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.</p>
<p>Environment</p>
<p>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.</p>
<p>Observed failure</p>
<p>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.</p>
<p>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:</p>
<p>0xff3fc4 dict_stats_analyze_index dict0stats.cc, line 2259<br>
0xff45cc dict_stats_update_persistent dict0stats.cc, line 2668<br>
0xff4a62 dict_stats_update_persistent_try dict0stats.cc, line 2712<br>
0xff579a dict_stats_func dict0stats_bg.cc, line 333</p>
<p>The faulting instruction maps to division by data->n_recs_on_level. The caller at line 2668 was analyzing a secondary index.</p>
<p>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.</p>
<p>Expected behavior</p>
<p>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.</p>
<p>Question for the maintainers</p>
<p>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?</p>