On 2019-04-13 10:23 a.m., ydir...@free.fr wrote: > Package: python3-babeltrace > Version: 1.5.6-2 > Severity: important > > While investigating why I was getting a segfault while processing a CTF trace > (in which I > do a first pass extracting some info, before a second pass plotting the > data... > while keeping a ref to various events to avoid making copies of everything in > the first pass), I finally understand that even though we get individual > python handles > for all events, they get clobbered by further event parsing.
Hi, This is a known limitation of the babeltrace 1 python bindings, you'll have to either deep copy the events you want to do further processing on or iterate multiple times on the trace collection. This limitation will be fixed in the bt2 bindings and you'll be able to keep references to events. Regards, Michael