Project

General

Profile

Actions

Bug #64832

closed
CB GS

valgrind UninitCondition in RGWSelectObj_ObjStore_S3::run_s3select_on_csv

Bug #64832: valgrind UninitCondition in RGWSelectObj_ObjStore_S3::run_s3select_on_csv

Added by Casey Bodley over 2 years ago. Updated 29 days ago.

Status:
Backporting
Priority:
Urgent
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid tentacle umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-4084-ga46507ac4b
Released In:
v21.2.0~1718
Upkeep Timestamp:
2026-11-04T01:07:31+00:00

Description

from rgw/verify job: http://qa-proxy.ceph.com/teuthology/cbodley-2024-03-10_14:49:11-rgw-wip-cbodley-testing-distro-default-smithi/7589454/teuthology.log
valgrind log: http://qa-proxy.ceph.com/teuthology/cbodley-2024-03-10_14:49:11-rgw-wip-cbodley-testing-distro-default-smithi/7589454/remote/smithi154/log/valgrind/ceph.client.0.log.gz

<error>
  <unique>0xacb11</unique>
  <tid>298</tid>
  <threadname>io_context_pool</threadname>
  <kind>UninitCondition</kind>
  <what>Conditional jump or move depends on uninitialised value(s)</what>
  <stack>
    <frame>
      <ip>0x8F4C10</ip>
      <obj>/usr/bin/radosgw</obj>
      <fn>RGWSelectObj_ObjStore_S3::run_s3select_on_csv(char const*, char const*, unsigned long)</fn>
    </frame>
    <frame>
      <ip>0x8F76E1</ip>
      <obj>/usr/bin/radosgw</obj>
      <fn>RGWSelectObj_ObjStore_S3::csv_processing(ceph::buffer::v15_2_0::list&amp;, long, long)</fn>
    </frame>
    <frame>
      <ip>0x7B3BD6</ip>
      <obj>/usr/bin/radosgw</obj>
      <fn>RGWGetObj_Decompress::handle_data(ceph::buffer::v15_2_0::list&amp;, long, long)</fn>
    </frame>
    <frame>
      <ip>0x9D47E7</ip>
      <obj>/usr/bin/radosgw</obj>
      <fn>get_obj_data::flush(rgw::OwningList&lt;rgw::AioResultEntry&gt;&amp;&amp;)</fn>
    </frame>
    <frame>
      <ip>0x9E552A</ip>
      <obj>/usr/bin/radosgw</obj>
      <fn>RGWRados::Object::Read::iterate(DoutPrefixProvider const*, long, long, RGWGetDataCB*, optional_yield)</fn>
    </frame>
    <frame>
      <ip>0x7FD455</ip>
      <obj>/usr/bin/radosgw</obj>
      <fn>RGWGetObj::execute(optional_yield)</fn>
    </frame>
    <frame>
      <ip>0x8F9E20</ip>
      <obj>/usr/bin/radosgw</obj>
      <fn>RGWSelectObj_ObjStore_S3::execute(optional_yield)</fn>
    </frame>
    <frame>
      <ip>0x6BC4CB</ip>
      <obj>/usr/bin/radosgw</obj>
      <fn>rgw_process_authenticated(RGWHandler_REST*, RGWOp*&amp;, RGWRequest*, req_state*, optional_yield, rgw::sal::Driver*, bool)</fn>
    </frame>
    <frame>
      <ip>0x6C054D</ip>
      <obj>/usr/bin/radosgw</obj>
      <fn>process_request(RGWProcessEnv const&amp;, RGWRequest*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, RGWRestfulIO*, optional_yield, rgw::dmclock::Scheduler*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;*, std::chrono::duration&lt;unsigned long, std::ratio&lt;1l, 1000000000l&gt; &gt;*, int*)</fn>
    </frame>
    <frame>
      <ip>0x5E60F0</ip>
      <obj>/usr/bin/radosgw</obj>
    </frame>
    <frame>
      <ip>0x62757F</ip>
      <obj>/usr/bin/radosgw</obj>
    </frame>
    <frame>
      <ip>0x12591A6</ip>
      <obj>/usr/bin/radosgw</obj>
      <fn>make_fcontext</fn>
    </frame>
  </stack>
</error>

Files


Related issues 4 (4 open — 0 closed)

Related to rgw - Bug #80706: rgw/s3select: valgrind error: UninitConditionNewGal Salomon

Actions
Copied to rgw - Backport #73786: squid: valgrind UninitCondition in RGWSelectObj_ObjStore_S3::run_s3select_on_csvNewGal Salomon

Actions
Copied to rgw - Backport #73787: tentacle: valgrind UninitCondition in RGWSelectObj_ObjStore_S3::run_s3select_on_csvNewGal Salomon

Actions
Copied to rgw - Backport #77725: umbrella: valgrind UninitCondition in RGWSelectObj_ObjStore_S3::run_s3select_on_csvNewGal Salomon

Actions

CB Updated by Casey Bodley over 2 years ago Actions #1

  • Status changed from New to Can't reproduce

CB Updated by Casey Bodley almost 2 years ago Actions #2

  • Status changed from Can't reproduce to New

from https://qa-proxy.ceph.com/teuthology/cbodley-2024-12-13_17:43:49-rgw-wip-65369-distro-default-smithi/8035717/teuthology.log on main

valgrind error: UninitCondition

RGWSelectObj_ObjStore_S3::run_s3select_on_csv(char const*, char const*, unsigned long)
RGWSelectObj_ObjStore_S3::csv_processing(ceph::buffer::v15_2_0::list&, long, long)
RGWGetObj_Decompress::handle_data(ceph::buffer::v15_2_0::list&, long, long)

JI Updated by J. Eric Ivancich almost 2 years ago Actions #3

Just wanted to make sure you aware of the status change of this one, Gal.

JI Updated by J. Eric Ivancich almost 2 years ago Actions #4

pinged Gal

JI Updated by J. Eric Ivancich almost 2 years ago Actions #5

GS Updated by Gal Salomon almost 2 years ago · Edited Actions #6

J. Eric Ivancich wrote in #note-5:

ping @Gal Salomon

Hi @J. Eric Ivancich
i had tried to re-produce that,i'm not getting that stack.

do you have an updated valgrind-log?

JI Updated by J. Eric Ivancich almost 2 years ago Actions #9

ping @Gal Salomon Just want to make sure you saw Casey's new comment above.

GS Updated by Gal Salomon almost 2 years ago Actions #10

@J. Eric Ivancich
yeah, i saw that (its jibrish)

from teuthology.log i can see its same stack as before.

Thanks.

CB Updated by Casey Bodley almost 2 years ago Actions #11

just saw this in 2 jobs of https://pulpito.ceph.com/cbodley-2025-02-28_00:57:03-rgw-wip-70013-distro-default-smithi/

Gal Salomon wrote in #note-10:

yeah, i saw that (its jibrish)

the web server is misconfigured somehow, so most logs get double-gzipped

GS Updated by Gal Salomon over 1 year ago Actions #12

i did the following
-- the conditional-jump happens upon decompress flow
-- i boot RGW with compression mode (4 different options zstd,snappy,lz4,zlib)
-- i uploaded big objects,small object, zero-size object.
-- run s3select expression on these objects
-- so far, no re-production of anything close to that

it may relate to runtime-environment / build-env(?)

investigation further more.

GS Updated by Gal Salomon over 1 year ago Actions #13

in order to investigate the valgrind detection, a code that simulate uninitialized-value added to rgw/s3select.
not clear, why it was not detected upon teuthology-run (it is detected on a local run)

https://github.com/ceph/ceph/pull/62689/files

https://pulpito.ceph.com/gsalomon-2025-04-06_12:46:48-rgw:verify-valgrind_issue_investigation-distro-default-smithi/

checking the issue.

JI Updated by J. Eric Ivancich over 1 year ago Actions #14

  • Backport changed from squid to squid tentacle

CB Updated by Casey Bodley over 1 year ago Actions #15

again in https://qa-proxy.ceph.com/teuthology/cbodley-2025-05-19_22:28:25-rgw-wip-cbodley-testing-distro-default-smithi/8289665/teuthology.log

valgrind error: UninitCondition
RGWSelectObj_ObjStore_S3::run_s3select_on_csv(char const*, char const*, unsigned long)
RGWSelectObj_ObjStore_S3::csv_processing(ceph::buffer::v15_2_0::list&, long, long)
RGWGetObj_Decompress::handle_data(ceph::buffer::v15_2_0::list&, long, long)

CB Updated by Casey Bodley over 1 year ago Actions #17

also on tentacle: https://qa-proxy.ceph.com/teuthology/benhanokh-2025-07-01_16:00:03-rgw-dedup_backport-distro-default-smithi/8363950/teuthology.log

valgrind exception message: valgrind error: UninitCondition
RGWSelectObj_ObjStore_S3::run_s3select_on_csv(char const*, char const*, unsigned long)
RGWSelectObj_ObjStore_S3::csv_processing(ceph::buffer::v15_2_0::list&, long, long)
RGWGetObj_Decompress::handle_data(ceph::buffer::v15_2_0::list&, long, long)

JI Updated by J. Eric Ivancich over 1 year ago Actions #18

Just hit this again:

failure_reason: 'valgrind error: UninitCondition

  RGWSelectObj_ObjStore_S3::run_s3select_on_csv(char const*, char const*, unsigned
  long)

  RGWSelectObj_ObjStore_S3::csv_processing(ceph::buffer::v15_2_0::list&, long, long)

  RGWGetObj_Decompress::handle_data(ceph::buffer::v15_2_0::list&, long, long)'

found here: https://qa-proxy.ceph.com/teuthology/ivancich-2025-07-21_21:58:43-rgw-wip-eric-testing-1-distro-default-smithi/8401069/teuthology.log

JI Updated by J. Eric Ivancich over 1 year ago Actions #19

In an email exchange with @Gal Salomon he wrote:

this issue is "spinning", it is not appears constantly, make it difficult to fix.
(it appeared in some of my other PR)

even when I tried to make it appear (I created Uninit Condition)
it was not detected.

it may relate to compiler flag options, so I will try to re-produce that.

JI Updated by J. Eric Ivancich about 1 year ago Actions #20

Hey @Gal Salomon , are there any updates on this?

GS Updated by Gal Salomon about 1 year ago Actions #21

J. Eric Ivancich wrote in #note-20:

Hey @Gal Salomon , are there any updates on this?

Hi Eric,
yes, I have updates, I created a centos and ubuntu versions, and ran s3test on both distro's.
The valgrind did not detect the same report.
i'm not sure why this issue does not reproduce, maybe it is missing a runtime factor, such as additional tests (which exist in teuthology and not in my tests)

I will change / add tests.

GS Updated by Gal Salomon about 1 year ago Actions #22

the attached valgrind log, was produced upon using valgrind on RGW running the S3-tests(Centos-stream), the log contains only ("Conditional jump .." reports), it catch errors in other stack, not the s3select stack.

GS Updated by Gal Salomon about 1 year ago Actions #23

Gal Salomon wrote in #note-22:

the attached valgrind log, was produced upon using valgrind on RGW running the S3-tests(Centos-stream), the log contains only ("Conditional jump .." reports), it catch errors in other stack, not the s3select stack.

attaching additional valgrind report, produce on ubuntu.

GS Updated by Gal Salomon about 1 year ago Actions #27

@J. Eric Ivancich
the recent valgrind report (https://qa-proxy.ceph.com/teuthology/teuthology-2025-10-10_20:40:24-rgw-main-distro-default-smithi/8545757/remote/smithi016/log/valgrind/)

contain alot of new reports, such as InvalidRead , and different s3select-call-stack.

for one example the push_*::builder functions which are called upon parsing the SQL statement. not while processing the input.

the engine-code did not change for sometime, and the same with the test-code.
what is triggering these new reports? is there a change in runtime environment?

GS Updated by Gal Salomon about 1 year ago Actions #28

  • Pull request ID set to 66067

CB Updated by Casey Bodley about 1 year ago Actions #29

  • Status changed from New to Fix Under Review

UB Updated by Upkeep Bot about 1 year ago Actions #30

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to a46507ac4b9fcfc5cee038da0129470fee0bd545
  • Fixed In set to v20.3.0-4084-ga46507ac4b
  • Upkeep Timestamp set to 2025-11-11T08:58:37+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #31

  • Copied to Backport #73786: squid: valgrind UninitCondition in RGWSelectObj_ObjStore_S3::run_s3select_on_csv added

UB Updated by Upkeep Bot about 1 year ago Actions #32

  • Copied to Backport #73787: tentacle: valgrind UninitCondition in RGWSelectObj_ObjStore_S3::run_s3select_on_csv added

UB Updated by Upkeep Bot about 1 year ago Actions #33

  • Tags (freeform) set to backport_processed

AE Updated by Adam Emerson 5 months ago Actions #34

  • Backport changed from squid tentacle to squid tentacle umbrella
  • Tags (freeform) deleted (backport_processed)

UB Updated by Upkeep Bot 5 months ago Actions #35

  • Copied to Backport #77725: umbrella: valgrind UninitCondition in RGWSelectObj_ObjStore_S3::run_s3select_on_csv added

UB Updated by Upkeep Bot 5 months ago Actions #36

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #37

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-11T08:58:37+00:00 to 2026-08-27T18:23:04+00:00

JI Updated by J. Eric Ivancich 2 months ago Actions #38

  • Related to Bug #80706: rgw/s3select: valgrind error: UninitCondition added

UB Updated by Upkeep Bot about 1 month ago Actions #39

  • Released In set to v21.2.0~1717
  • Upkeep Timestamp changed from 2026-08-27T18:23:04+00:00 to 2026-10-24T01:13:00+00:00

UB Updated by Upkeep Bot 29 days ago Actions #40

  • Released In changed from v21.2.0~1717 to v21.2.0~1718
  • Upkeep Timestamp changed from 2026-10-24T01:13:00+00:00 to 2026-11-04T01:07:31+00:00
Actions

Also available in: PDF Atom