[MCOL-3934] xml parser memory leak Created: 2020-04-09  Updated: 2020-11-12  Resolved: 2020-06-11

Status: Closed
Project: MariaDB ColumnStore
Component/s: MDB Plugin
Affects Version/s: 1.5.3
Fix Version/s: 1.5.1

Type: Bug Priority: Major
Reporter: David Hall (Inactive) Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2020-6, 2020-7

 Description   

While running, the connector parses the Columnstore.xml file. This creates a large parse tree. We never clean up this memory allocation, and so if SAFEMALLOC is on, it may dump out hundreds of lines of memory leaks which can take minutes causing the casual observer to believe that mysqld is frozen. No other harm is done.



 Comments   
Comment by David Hall (Inactive) [ 2020-04-09 ]

Added memory cleanup to the ha_mcs handler destructor:

    ~ha_mcs()
    {
        config::Config::deleteInstanceMap();
    }

Comment by Roman [ 2020-04-13 ]

4QA:
The only way to check is to build debug MCS 1.5 with debug MDB 10.5. Prior this patch MDB crashes with complains about memory leak when one tries to stop MDB.
David.Hallconfirms this change eliminates this leak.

Comment by Daniel Lee (Inactive) [ 2020-06-11 ]

Build verified: 1.5.0-1 (Drone build #59)

Verified on a debug build on Centos 7.

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