[MCOL-433] Small row results can cause CrossEngine buffer underflow Created: 2016-12-03  Updated: 2016-12-06  Resolved: 2016-12-06

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.6

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

Issue Links:
PartOf
is part of MCOL-430 invalid null date values for cross en... Closed
Sprint: 2016-23, 2016-24

 Description   

The libdrizzle version used does not detect whether or not there is enough data in the buffer for a single packet when the buffer is empty. It is possible to have less than one packet in the buffer which causes the buffer pointer to go below zero. This can cause hangs, corruption, crashes, etc...

This is a known problem in libdrizzle and is not fixed in our version of it.

It is observed when running the select query for MCOL-430 several times.



 Comments   
Comment by Andrew Hutchings (Inactive) [ 2016-12-03 ]

I don't know a good way of testing this beyond running the test in MCOL-430 many times and crossing your fingers. This is almost a race between the socket buffer filling and being purged.

Comment by Daniel Lee (Inactive) [ 2016-12-06 ]

Build verified: source from Github

Build verified: source from Github
[root@localhost columnstore]# ls
mariadb-columnstore-server
[root@localhost columnstore]# cd mariadb-columnstore-server/
[root@localhost mariadb-columnstore-server]# git show
commit 8592d353c5477940f9600566639302de9fa994c7
Merge: 3795bd4 7af4e57
Author: dhall-InfiniDB <david.hall@mariadb.com>
Date: Tue Dec 6 09:49:03 2016 -0600
Merge pull request #20 from mariadb-corporation/MCOL-441
MCOL-441 Fix segfault on SP error
[root@localhost mariadb-columnstore-server]# cd mariadb-columnstore-engine/
[root@localhost mariadb-columnstore-engine]# git show
commit d4a601b4fbc81a5929ed5b36890e70514b96803a
Merge: cb8ffed fe381ab
Author: dhall-InfiniDB <david.hall@mariadb.com>
Date: Tue Dec 6 12:26:09 2016 -0600
Merge pull request #68 from mariadb-corporation/MCOL-442
MCOL-442 Allow default zero date/datetime

Verified as part of MCOL-430. Repeatedly execute the test query.

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