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 DAYOFWEEK on MAX in UNION with LAST_INSERT_ID containing GROUP_CONCAT. The assertion `precision > 0` fails in `decimal_bin_size()`.
DROP DATABASE IF EXISTS sqlcraft; |
CREATE DATABASE sqlcraft; |
USE sqlcraft; |
|
|
|
|
SELECT DAYOFWEEK( MAX( 'A' ) ) AS c13 |
UNION SELECT LAST_INSERT_ID( GROUP_CONCAT( IFNULL( '2025' , '2025' ) ) ) AS c16 ; |
crash logs:
|
|
|
mariadbd: /app/dbms/mariadb-12.2.2/strings/decimal.c:1563: decimal_bin_size: Assertion `precision > 0' failed.
|
260420 9:54:48 [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): SELECT DAYOFWEEK( MAX( 'A' ) ) AS c13
|
UNION SELECT LAST_INSERT_ID( GROUP_CONCAT( IFNULL( '2025' , '2025' ) ) ) AS c16
|
Status: NOT_KILLED
|
Attachments
Issue Links
- duplicates
-
MDEV-23444 ASAN dynamic-stack-buffer-overflow or Assertion `precision > 0' failed in decimal_bin_size with div_precision_increment=0
-
- Confirmed
-