[MDEV-32733] Two JSON related tests running in PS mode fail on server built with -DWITH_PROTECT_STATEMENT_MEMROOT=YES Created: 2023-11-08  Updated: 2023-11-24  Resolved: 2023-11-14

Status: Closed
Project: MariaDB Server
Component/s: Prepared Statements
Affects Version/s: 10.4
Fix Version/s: 11.3.1, 10.4.33, 10.5.24, 10.6.17, 10.11.7, 11.0.5, 11.1.4, 11.2.3, 11.4.1

Type: Bug Priority: Critical
Reporter: Dmitry Shulga Assignee: Dmitry Shulga
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDEV-14959 Control over memory allocated for SP/PS Stalled
Problem/Incident
causes MDEV-32867 ASAN errors in Item_func_json_contain... Closed

 Description   

These tests are main.func_json and json.json_no_table
Both tests fail on running similar queries that use JSON function json_contains_path().

The test main.func_json fails on running the following statement

PREPARE stmt FROM "select json_contains_path('{\"key1\":1}', 'oNE', '$.key2[1]') as exp";
EXECUTE stmt;
EXECUTE stmt; <<== Attempt to run the statement the second time results in assert hit

The test json.json_no_table fails on running the following statement

PREPARE stmt FROM "select json_contains_path('{ \"a\": tru }', 'all', '$' )";
EXECUTE stmt;
EXECUTE stmt; <<== Attempt to run the statement the second time results in assert hit



 Comments   
Comment by Dmitry Shulga [ 2023-11-10 ]

Branch for review is bb-10.4-MDEV-32733

Comment by Oleksandr Byelkin [ 2023-11-14 ]

OK to push

Generated at Thu Feb 08 10:33:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.