Project

General

Profile

Actions

Bug #61559

closed

RGW crash upon parsing a TPCDS query (Trino push-down)

Added by Gal Salomon 11 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

upon processing TPCDS benchmark
the RGW had crashed on segfault.
the s3select-parser(boost-spirit) accesses "bad" memory.

the query is
"SELECT s._1, s._7 FROM S3Object s WHERE (case s._7 when ' ' then null else CAST end = 2000);"

(*) seems like the parser does not accept correctly capital characters in CAST statement.

Actions #1

Updated by Gal Salomon 11 months ago

Gal Salomon wrote:

upon processing TPCDS benchmark
the RGW had crashed on segfault.
the s3select-parser(boost-spirit) accesses "bad" memory.

the query is
"SELECT s._1, s._7 FROM S3Object s WHERE (case s._7 when '' then null else CAST end = 2000);"

(*) seems like the parser does not accept correctly capital characters in CAST statement.

the crash is caused by "skipping" data-type upon the parsing stage (for CAST operator)
the engine failed to identify the data-type(wrong comparison), thus did not push that data-type into parser-stack.

Actions #2

Updated by Gal Salomon 10 months ago

  • Status changed from New to Resolved
  • Pull request ID set to 52186
Actions

Also available in: Atom PDF