#1144315 mysqltuner: Program crash with a division by 0

#1144315#5
Date:
2026-08-13 14:43:44 UTC
From:
To:
Dear Maintainer,

Just running mysqltuner against mariadb it crash with:

...
[--] InnoDB is enabled.
[OK] InnoDB File per table is activated
[OK] InnoDB Buffer Pool size ( 2.0G ) under limit for 64 bits architecture: (17179869184.0G )
[OK] InnoDB buffer pool / data size: 2.0G / 41.8M
[OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 512.0M * 1/2.0G should be equal to 25%
Illegal division by zero at /usr/bin/mysqltuner line 6547 (#1)
    (F) You tried to divide a number by 0.  Either something was wrong in
    your logic, or you need to put a conditional in to guard against
    meaningless input.

Uncaught exception from user code:
	Illegal division by zero at /usr/bin/mysqltuner line 6547.
	main::mysql_innodb() called at /usr/bin/mysqltuner line 7414

this seems due to division by innodb_buffer_pool_chunk_size value that's 0 by default in mariadb

Regards
Simone

#1144315#8
Date:
2026-08-13 16:42:33 UTC
From:
To:
Hallo! Du (Simone Piccardi) hast geschrieben:

Can you try with the recent version 2.9.1?
--> https://packages.debian.org/sid/mysqltuner
(Download-Link is at the end of the page.)

Cord