[MCOL-675] calsettrace(1) can cause a mysqld crash Created: 2017-04-21  Updated: 2017-09-08  Resolved: 2017-09-08

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

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


 Description   

MariaDB [tpch1]> select calsettrace(1);
----------------

calsettrace(1)

----------------

0

----------------
1 row in set (0.00 sec)

MariaDB [tpch1]> (select n_nationkey K from nation limit 1) union all (select n_nationkey K from nation limit 2) limit 1;
ERROR 2013 (HY000): Lost connection to MySQL server during query
MariaDB [tpch1]> select calsettrace(1);

In ha_calpont_impl_external_lock(), we try to access the connection info without checking if it exists (around lin 4406 of ha_calpont_impl.cpp):
else // vtable mode
{
if (thd->infinidb_vtable.vtable_state == THD::INFINIDB_SELECT_VTABLE)
{
if (ci->traceFlags & 1)
push_warning(thd, Sql_condition::WARN_LEVEL_NOTE, 9999, ci->cal_conn_hndl->queryStats.c_str());

ci->cal_conn_hndl is NULL in this case.



 Comments   
Comment by David Hall (Inactive) [ 2017-04-21 ]

This is fixed in the 10.2 merge of columnstore 1.1 develop

Comment by David Thompson (Inactive) [ 2017-06-05 ]

Updated status to reflect ready for testing.

Comment by Daniel Lee (Inactive) [ 2017-09-08 ]

Build verified: 1.1.0-1

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