[MCOL-550] Possible mem leak and crash in columnstore's mysqld Created: 2017-02-07  Updated: 2017-04-21  Resolved: 2017-04-21

Status: Closed
Project: MariaDB ColumnStore
Component/s: MariaDB Server
Affects Version/s: 1.0.7
Fix Version/s: 1.1.0

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

All



 Description   

There's a data item in lex called result, a pointer to a select_result item. This is created and set by parse_sql().

During columnstore processing, we run parse_sql multiple times, throwing away the result object. Not deleteing – throwing away.

When certain queries are sent via pipe to the client, the result item isn't thrown away and an assert happens. I believe we throw it away in most processing just to avoid the assert, but it needs to be cleaned up instead.

Put the following query into a file and pipe it to the client to cause the assert:

select lo_orderkey into outfile '/tmp/bug3520.txt' from (select lo_orderkey from lineorder group by 1 union all select lo_orderkey from lineorder group by 1 union all select lo_orderkey from lineorder group by 1 union all select lo_orderkey from lineorder group by 1 union all select lo_orderkey from lineorder group by 1) x;



 Comments   
Comment by David Hall (Inactive) [ 2017-02-07 ]

Got rid of all the result=0 lines and replaced with a delete result

Comment by Daniel Lee (Inactive) [ 2017-04-21 ]

Build verified: Github source

[root@localhost mariadb-columnstore-server]# git show
commit 0a6aea3145f55cebffd86fdb6717284a83fbd2b7
Merge: ef372bf d9dbe2f
Author: david hill <david.hill@mariadb.com>
Date: Thu Apr 6 13:56:52 2017 -0500

Merge pull request #42 from mariadb-corporation/MCOL-377

Make audit plugin display columnstore original query in logging

[root@localhost mariadb-columnstore-server]# cd mariadb-columnstore-engine/
[root@localhost mariadb-columnstore-engine]# git show
commit f240c89faf2e2f8a7e27a7d2f9f1ebd2d6eeed90
Merge: f8f045f 6128293
Author: dhall-InfiniDB <david.hall@mariadb.com>
Date: Fri Apr 21 10:06:34 2017 -0500

Merge pull request #156 from mariadb-corporation/MCOL-671

MCOL-671 Fix TEXT/BLOB single row SELECT WHERE

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