Actions
Bug #18745
openPython librados OmapIterator segfaults if used before op
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