Monday, 2022-11-28

zigoCan someone help me figuring out why Swift segfault under Python 3.11 ?10:38
zigoI don't feel I can easily file a bug report because I don't have much details ...10:39
zigotimburke: ^11:34
opendevreviewMerged openstack/swift master: proxy: refactor ContainerController._GET_using_cache  https://review.opendev.org/c/openstack/swift/+/86570613:09
opendevreviewMerged openstack/swift master: proxy: add test for ContainerController._GET_using_cache  https://review.opendev.org/c/openstack/swift/+/86570717:44
timburkezigo, seems like an issue with the sqlite module -- i can get a similar segfault pretty easily. running under pytest, i at least get a python call stack: https://paste.opendev.org/show/bV9t8Ujs6Es7y2sowPgy/18:22
timburkewhich points to a pretty boring bit in swift's tests: https://github.com/openstack/swift/blob/2.30.0/test/unit/common/test_db.py#L61518:22
timburkethe next bit in the stack seems to be resolving the context manager at https://github.com/openstack/swift/blob/2.30.0/swift/common/db.py#L540-L56618:46
opendevreviewAlistair Coles proposed openstack/swift master: WIP: restructure cached updating shard ranges  https://review.opendev.org/c/openstack/swift/+/86356218:49
opendevreviewAlistair Coles proposed openstack/swift master: WIP: restructure cached listing shard ranges  https://review.opendev.org/c/openstack/swift/+/86570818:49
timburkei'm still not clear on why we don't get a frame pointing at some bit of that code, though... maybe we've already gotten through it all and dropped back to cpython to raise the StopIteration?18:56
timburkeanyway, adding some print debugging while still *within* the context manager yielded some interesting results: i can print immediately after the assignment to `rows`, i can do `rows[0]`, i can do `rows[0]['account']`, but if i try to print all of `rows[0]` or do something that would trip a KeyError, segfault!19:04
timburkeso maybe it's actually something in the dict implementation?19:06
opendevreviewASHWIN A NAIR proposed openstack/swift master: Malformed CompleteMultipartUpload request should 400  https://review.opendev.org/c/openstack/swift/+/86534819:10
timburkezigo, fwiw all my core dumps pop in pymalloc_alloc, at https://github.com/python/cpython/blob/v3.11.0/Objects/obmalloc.c#L197920:06
timburkenbytes tends to be small, in the 80-100 range20:07
timburkethis one seemed particularly odd to me: https://paste.opendev.org/show/bAlT69FH4MYXwgFZIz6n/ -- it seems to have tripped in the process of raising that StopIteration...20:13
opendevreviewMatthew Oliver proposed openstack/swift master: WIP sharder: update own_sr stats explicitly  https://review.opendev.org/c/openstack/swift/+/85228322:56
opendevreviewMatthew Oliver proposed openstack/swift master: Sharding: No stat updates before CLEAVED state  https://review.opendev.org/c/openstack/swift/+/83781122:57
opendevreviewMatthew Oliver proposed openstack/swift master: WIP: sharding: Block moving to CLEAVED if cleaved rows < expected  https://review.opendev.org/c/openstack/swift/+/84397322:57

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!