[MDEV-15012] ASAN: numerous test failures in PS Created: 2018-01-20  Updated: 2018-01-29  Resolved: 2018-01-29

Status: Closed
Project: MariaDB Server
Component/s: Prepared Statements
Affects Version/s: 5.5, 10.0, 10.1, 10.2
Fix Version/s: 5.5.60, 10.0.34, 10.1.31, 10.2.13, 10.3.5

Type: Bug Priority: Major
Reporter: Sergei Golubchik Assignee: Oleksandr Byelkin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-15099 InnoDB partition tests fail in buildb... Closed
Sprint: 10.1.31

 Description   

Lits of tests failing: main.multi_update main.mysql_client_test main.mysql_client_test_nonblock main.derived_view main.ps_ddl main.subselect_sj main.subselect_sj_jcl6 main.view. In normal, not in --ps-protocol.

In all cases, the freed memory is read or written into in

    #0 0x603f51 in THD::rollback_item_tree_changes() sql/sql_class.cc:2257

usually called from

    #1 0x6d3951 in Prepared_statement::cleanup_stmt() sql/sql_prepare.cc:3235
    #2 0x6e0a45 in Prepared_statement::execute(String*, bool) sql/sql_prepare.cc:3958
    #3 0x6e13e8 in Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*) sql/sql_prepare.cc:3591
    #4 0x6e1e9d in mysql_sql_stmt_execute(THD*) sql/sql_prepare.cc:2740

At least in multi_update, it fails on the second execution of PS.



 Comments   
Comment by Oleksandr Byelkin [ 2018-01-24 ]

github branch: bb-5.5-MDEV-15012

revision-id: ee8755e3c51a1da8fcf108ad0257a7e62fc94347 (mariadb-5.5.59-32-gee8755e3c51)
parent(s): 76577e1e2602f3c30859a176808c433a263e1b0a
author: Oleksandr Byelkin
committer: Oleksandr Byelkin
timestamp: 2018-01-24 14:42:52 +0100
message:

MDEV-15012: ASAN: numerous test failures in PS

First roll back changes, then free Items which can lead to memory freeing.

Generated at Thu Feb 08 08:18:01 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.