Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
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 performing XOR operation between MAX function result and JSON_OBJECTAGG. The assertion `(m_ptr == __null) == item->null_value` fails in `VDec::VDec(Item*)`.
DROP DATABASE IF EXISTS sqlcraft; |
CREATE DATABASE sqlcraft; |
USE sqlcraft; |
CREATE TABLE IF NOT EXISTS t0(c0 VARCHAR(100) NOT NULL, c1 INT ); |
|
|
SELECT ( MAX( 'A' ) ) ^ ( JSON_OBJECTAGG( 1 ,1 ) ) AS c19 FROM t0 AS tom19 ; |
crash logs:
|
|
|
mariadbd: /app/dbms/mariadb-12.2.2/sql/sql_type.cc:335: VDec::VDec(Item*): Assertion `(m_ptr == __null) == item->null_value' failed.
|
260420 9:56:37 [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 ( MAX( 'A' ) ) ^ ( JSON_OBJECTAGG( 1 ,1 ) ) AS c19 FROM t0 AS tom19
|
Status: NOT_KILLED
|
Attachments
Issue Links
- duplicates
-
MDEV-39135 JSON_OBJECTAGG(NULL) in decimal context
-
- Closed
-