Bug #293

API problem with bt_iter_set_pos

Added by Julien Desfossez about 8 years ago. Updated almost 8 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


Reported by Francis Deslauriers

program to trigger the bug :
git clone -b seektest git://

trace to trigger the bug :

The test program iterates over the trace, it does the following in loop until there are no more events :
- save the position of the iterator
- read 2 events
- restore the position of the iterator
- read 1 event

So each event is saved and restored once.

At the end of this trace, it seems that we cannot get past the last event of CPU 7 (103572.478927352) even though there are other events in other streams.

For the other streams, when a stream has no more events, its "current" timestamp is the timestamp of destruction of the buffer which is far in the future.

But in this particular scenario, it seems that we never get past the current event. When we save the position, we record the timestamp of this event, so everytime we restore to the next event, this one is also restored and since it has the smallest timestamp and it gets processed, endlessly...

Related issues

Related to Babeltrace - Bug #296: libbabeltrace segfault in mmap_align_addrResolved07/09/2012


Updated by Yannick Brosseau about 8 years ago

If you need another trace, I have another one that segfaults.


Updated by Julien Desfossez almost 8 years ago

  • Status changed from Confirmed to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF