Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Duplicate
-
12.3, 13.0, 12.2.2
-
12.2.2-MariaDB-ubu2404
-
Can result in hang or crash
-
Q3/2026 Server Maintenance
Description
Executing the attached read-only SELECT causes the MariaDB server to terminate or stop accepting connections.
The database was healthy immediately before the query. When the query was executed, the client received:
ERROR 2013 (HY000): Lost connection to MySQL server during query |
All subsequent connection attempts failed with:
ERROR 2003 (HY000): Can't connect to MySQL server |
Connection refused
|
A SQL error should not terminate the server. The server should either return a result or report an error while continuing to accept connections.
How to repeat
DROP DATABASE IF EXISTS round25;
|
CREATE DATABASE round25;
|
USE round25;
|
|
|
CREATE TABLE t (c TEXT);
|
INSERT INTO t VALUES (REPEAT('x',1025)),(REPEAT('x',1025)); |
|
|
SELECT NTILE(2) OVER(PARTITION BY c) FROM t; |
|
Attachments
Issue Links
- duplicates
-
MDEV-39451 Floating point exception: division by zero in Item_sum_ntile::val_int
-
- Closed
-
- relates to
-
MDEV-39451 Floating point exception: division by zero in Item_sum_ntile::val_int
-
- Closed
-