Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Duplicate
-
12.2.2
-
None
-
ubuntu 22.04
-
Not for Release Notes
Description
MariaDB debug build (12.2.2-MariaDB-asan-debug) crashes with an assertion failure when using FLOOR function on CURRENT_TIME result in a CTE with Aria engine. The assertion `maybe_null() || !null_value` fails in `Item_func_floor::time_op()`.
DROP DATABASE IF EXISTS sqlcraft; |
CREATE DATABASE sqlcraft; |
USE sqlcraft; |
CREATE TABLE t0(c0 SMALLINT PRIMARY KEY) engine=Aria; |
|
|
|
|
WITH tom2 AS ( SELECT tom1.c0 AS c1 FROM ( SELECT CURRENT_TIME( 2 ) AS c0 FROM t0 AS tom0 LIMIT 42 ) AS tom1 ) |
SELECT LEAST( IFNULL( '2025' , MIN( '2025' ) ) , MIN( '2025' ) , MIN( '2025' ) ) AS c14 |
FROM tom2 AS tom16 |
WHERE FLOOR( tom16.c1 ) |
GROUP BY tom16.c1 |
HAVING ADDTIME( '2025-12-31 14:30:00' , '14:30:00' ) |
ORDER BY c14 DESC LIMIT 4; |
|
crash logs:
|
|
|
mariadbd: /app/dbms/mariadb-12.2.2/sql/item_func.cc:2507: virtual bool Item_func_floor::time_op(THD*, MYSQL_TIME*): Assertion `maybe_null() || !null_value' failed.
|
260420 9:53:46 [ERROR] /usr/local/mariadb-asan/bin/mariadbd got signal 6 ;
|
Sorry, we probably made a mistake, and this is a bug.
|
|
|
Your assistance in bug reporting will enable us to fix this for the next release.
|
To report this bug, see https://mariadb.com/kb/en/reporting-bugs about how to report
|
a bug on https://jira.mariadb.org/.
|
|
|
Server version: 12.2.2-MariaDB-asan-debug source revision: d26a6f44c1f2119377e79a9540886c6d8c01472f
|
|
|
Query (0x52d00024e438): WITH tom2 AS ( SELECT tom1.c0 AS c1 FROM ( SELECT CURRENT_TIME( 2 ) AS c0 FROM t0 AS tom0
|
LIMIT 42 ) AS tom1 )
|
SELECT LEAST( IFNULL( '2025' , MIN( '2025' ) ) , MIN( '2025' ) , MIN( '2025' ) ) AS c14
|
FROM tom2 AS tom16
|
WHERE FLOOR( tom16.c1 )
|
GROUP BY tom16.c1
|
HAVING ADDTIME( '2025-12-31 14:30:00' , '14:30:00' )
|
ORDER BY c14 DESC LIMIT 4
|
Status: NOT_KILLED
|
Attachments
Issue Links
- duplicates
-
MDEV-23928 Assertion `maybe_null || !null_value' fails in Item_func_ceiling::time_op
-
- Confirmed
-