Project

General

Profile

Actions

Bug #18745

open

Python librados OmapIterator segfaults if used before op

Added by John Spray about 7 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
librados
Target version:
-
% Done:

0%

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

Description

Rough code:

with rados.ReadOpCtx(metadata_io) as rop:
    omap_iter, rval = ioctx.get_omap_vals_by_keys(rop, ("foo,))
    ioctx.operate_read_op(rop, "my_object)                        # If you omit this line ...
    result = list(omap_iter)                                      # ... then this line will segfault

I stumbled upon this when writing a script and not paying enough attention to how to use the API (using Kraken)

Actions #1

Updated by Jesse Williamson over 6 years ago

  • Assignee set to Jesse Williamson
Actions #2

Updated by Sebastian Wagner almost 5 years ago

  • Assignee deleted (Jesse Williamson)
Actions

Also available in: Atom PDF